Nested IF/AND not running

tojomojo

New Member
Joined
Feb 8, 2019
Messages
31
I am trying to compare a date against NOW() and AND it with a statys field (Complete or In progress), depending on the result a priority field is populated.

What am I doing wrong with the statement???

=IF(((AND(NOW()<>E5,F5="Complete")), "NONE", "HIGH"), IF((AND(NOW()<E5,F5="In progress")), "NONE", "HIGH"))

Thanks!!!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
IF condition, true value, false value

Your second formula will never be executed since the first IF will return NONE if true and HIGH if FALSE.
There's no other posssibilty so the second IF will never get executed.

The forum has displayed your post incorrectly.
Edit your post and place spaces around any < or > characters.
 
Last edited:
Upvote 0
How would I rewrite it to make it do what I need from the explanation. Jst cant see how to restructure....obviously a bit new to this.....Its the ANDS that are confusing me I THINK
 
Upvote 0
Sorry here is the code added correctly

Code:
IF((AND(NOW() <> E4,F4="Complete")), "NONE", "HIGH"), IF((AND(NOW() < E4,F4="In progress")), "NONE", "HIGH"))[CODE]
 
Last edited:
Upvote 0
Also, be careful using the NOW() function.
It will almost never = E4.

The NOW() function returns the current date and time.
Even if you have the result formatted to only show the date, Excel will still evaluate the result taking into account the exact time.

If you want to evaluate E4 against the current date (and I'm not sure that's what you want) try replacing NOW() with TODAY()
 
Upvote 0
Maybe
=IF(OR(AND(TODAY()<>E4,F4="Complete"),AND(TODAY()< E4,F4="In progress")),"NONE","HIGH")
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top