#1
|
|||
|
|||
Help with nested If statements
Can someone please tell me what is wrong with this nested If statement?
=IF(TODAY()-A70>90,2,3),IF(F70<>"","1","") What I am trying to do is show a result of either "2" or "3" depending if date in cell A70 is less than/greater than 90 days from todays date And if cell F70 is not left blank to show a result of "1" |
#2
|
||||
|
||||
Does the test for F70 take precedence over the date test? Assuming so, your formula would be:
=IF(F70<>"",1,IF(TODAY()-A70>90,2,3)) |
#3
|
|||
|
|||
I think I got this wrong as I need the result as 1 if cell F70 is NOT blank and includes a date or text. The result you gave me shows cell result 1 Id cell F70 is blank - how do I change this part?
|
#4
|
|||
|
|||
Quote:
Debaser's formula Code:
=IF(F70<>"",1,IF(TODAY()-A70>90,2,3)) 2. when cell F70 is empty, returns the value of expression Code:
IF(TODAY()-A70>90,2,3) Check cell F70. e.g. enter into some free cell the formula Code:
=F70 |
#5
|
|||
|
|||
I can't somehow edit my post (Edit window opens, but the post is not there).
The formula to check cell F70 will be better Code:
=LEN(F70) |
#6
|
|||
|
|||
I am none the wiser.
So column A has a manually entered date. Column D will identify Priority. If date in column A is greater than 90 days old from todays date then column D should state 2. If the date in column A is less than 90 days old then column D should state 3. Column F shows a deadline and what I want to do is, if column F shows a deadline date, then column D must show 1 as this will be high priority. Any help what formula I should use? |
#7
|
||||
|
||||
The formula I gave you works like this:
If F70 has anything in it, it returns 1. Otherwise, if A70 is more than 90 days old, it returns 2, but if A70 is more recent, it returns 3. |
#8
|
|||
|
|||
Thank you it worked. I missed a comma. Thank you
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conditional checkbox mailmerge: coding "or" statements within IF statements | mtracy16 | Mail Merge | 3 | 05-22-2018 02:03 PM |
Nested If Statements in Formula Field to Produce the Diffrnc in Years Between Today's & Entered Date | mshu31 | Word | 1 | 02-09-2017 02:04 PM |
Error in If statements | Warren99 | Excel | 8 | 05-29-2016 01:59 PM |
Help with if then statements | brent chadwick | Word VBA | 35 | 07-25-2015 02:41 PM |
Using IF statements | stuwoolf | Excel | 2 | 01-10-2015 01:58 PM |