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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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