Excel Wizards
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Excel Wizards

15 Posts
11 Users
0 Reactions
116 Views
Posts: 520
Free Member
Topic starter
 

I have a simple formula that I'd like to make work a bit better. It's just a column that says either Yes or No depending if a submission has met the deadline. The formula simply looks at the two dates and says either yes or no. The problem is, until the date is entered, it defaults to Yes. I would like either to show No, or nothing at all. Can anyone help?

=IF(K20<F20, "YES", "NO")

K20 is submission date
F20 is deadline


 
Posted : 04/02/2022 11:08 am
Posts: 10761
Full Member
 

Try

=if (k20>0,if(k20<F20,"Yes","No"),"")


 
Posted : 04/02/2022 11:15 am
 StuF
Posts: 2068
Free Member
 

swap the formula round, should default to NO, add another IF around it to cope with blank entries

=IF(K20>F20, “NO”, “YES”)


 
Posted : 04/02/2022 11:17 am
Posts: 520
Free Member
Topic starter
 

Try

=if (k20>0,if(k20<F20,”Yes”,”No”),””)

Thanks, but unfortunately I get a name error.


 
Posted : 04/02/2022 11:19 am
Posts: 0
Free Member
 

=IF(OR(K20="", F20=""), "", IF(K20<F20, “YES”, “NO”))


 
Posted : 04/02/2022 11:29 am
Posts: 99
Free Member
 

You can still use this with the errors, then set a conditional formatting rule to set all errors to have white text, therefore appearing blank.


 
Posted : 04/02/2022 11:31 am
Posts: 77347
Free Member
 

Thanks, but unfortunately I get a name error.

If copying and pasting, retype the quotes. ” is not the same character as "


 
Posted : 04/02/2022 11:31 am
Posts: 943
Free Member
 

=IF(ISERROR(K20<F20),"",IF(K20<F20, "YES", "NO"))


 
Posted : 04/02/2022 11:34 am
Posts: 10761
Full Member
 

You can still use this with the errors, then set a conditional formatting rule to set all errors to have white text, therefore appearing blank.

Please don't do this. If you want to handle errors then Excel has got plenty of functions to support that.


 
Posted : 04/02/2022 11:55 am
Posts: 1142
Full Member
 

As per your request! 😄
=IF(ISBLANK(K20),"No, or nothing at all",IF(K20<L20,"YES","NO"))
RM.


 
Posted : 04/02/2022 12:00 pm
Posts: 12507
Free Member
 

You can still use this with the errors, then set a conditional formatting rule to set all errors to have white text, therefore appearing blank.

There is a special place in hell for people like you.


 
Posted : 04/02/2022 12:04 pm
Posts: 520
Free Member
Topic starter
 

As per your request! 😄
=IF(ISBLANK(K20),”No, or nothing at all”,IF(K20<L20,”YES”,”NO”))
RM.

Nice try! Too many arguments, but if I remove "No," then it goes back to name error.


 
Posted : 04/02/2022 12:44 pm
Posts: 12507
Free Member
 

is the date stored as text rather than date format?


 
Posted : 04/02/2022 12:51 pm
Posts: 0
Free Member
 

There doesn't look to be anything wrong with
=IF(ISBLANK(K20),”No, or nothing at all”,IF(K20<L20,”YES”,”NO”))

I'm guessing you've missed a " when you've retyped it and the first , is not part of a text string but a delineator.

I would however strongly encourage the use of true false in place of yes no as they're useful.


 
Posted : 04/02/2022 12:52 pm
Posts: 0
Free Member
 

Ahhh, I forgot about ISBLANK 🤦‍♂️ Yeah, that.


 
Posted : 04/02/2022 12:55 pm
Posts: 1846
Full Member
 

The first reply from the Purist works in my test, as Cougar says did you type it manually?

Are the dates in columns k & f typed in or are they referencing other cells?


 
Posted : 04/02/2022 12:56 pm

6 DAYS LEFT
We are currently at 95% of our target!