Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2016, 08:45 AM
Samick Samick is offline if  X and Y and Z then ? Windows 8 if  X and Y and Z then ? Office 2013
Novice
if  X and Y and Z then ?
 
Join Date: May 2016
Posts: 2
Samick is on a distinguished road
Default if X and Y and Z then ?

Hi,


I'm trying to get something that does the following:

If A1 contains text "ACTIVE" and B1 contains a date greater than two years ago and C1 contains "0" then D1 equals "Move"

Cheers for any help you can give...
Reply With Quote
  #2  
Old 05-25-2016, 09:01 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline if  X and Y and Z then ? Windows 7 64bit if  X and Y and Z then ? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,784
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
contains a date greater than two years ago
I understand this as a date between today and today minus two years (if not replace the > with a <)

I suppose subtracting 24 months from the present date will doto return the dat from

Thus, in D1
Code:
= if(and(isnumber(search("active",a1)),c1=0,b1>edate(today(),-24)),"Move","")
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 05-25-2016, 09:06 AM
Samick Samick is offline if  X and Y and Z then ? Windows 8 if  X and Y and Z then ? Office 2013
Novice
if  X and Y and Z then ?
 
Join Date: May 2016
Posts: 2
Samick is on a distinguished road
Default

Outstanding stuff, that nailed it, cheers!
Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft