Excel Query- IF formula

rache47

New Member
Joined
Apr 29, 2024
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hi, If I have a Date in Column O I want it to return a Yes if there is no date in Column O I want it to return a No- what's the best IF formula to use please, Thanks for your help.
I tried this one =IF(ISNUMBER(O4),"YES", IF(O4="","","NO")) but it returned all Yes
 
Just be aware that it results in a #VALUE error for any text entry.

If that was an issue, you could do this:
=IF(N(A1),"YES","NO")

This will return the numerical value of A1 and return all text values as 0.
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If that was an issue, you could do this:
=IF(N(A1),"YES","NO")

This will return the numerical value of A1 and return all text values as 0.
Or the formula posted in reply 4!
;)

That is one of the great things about Excel - there are often many solutions that will work for the same problem!
:)
 
Upvote 0
Yes, the only advantage my formula has though it would allow a 0 in the cell and not be counted as a date.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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