IF statements using dates

KVR1980

New Member
Joined
Mar 16, 2021
Messages
10
Office Version
  1. 2010
Platform
  1. Windows
Hello, looking for some help to get the below IF formula working. In cell A3 I was hoping the cell would return "Future" because C3 isn't populated, but it looks like even though C3 is empty its reading it as 01/01/1900. Does anyone know how to get around this, thanks in advance?

1727726274657.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
That is because a blank is the same as 0, and dates are actually stored as numbers in Excel (the number of days since 1/0/1900 - change any date to General format and you can see this).
So, do a check like:
Excel Formula:
=IF(C3=0,"Live",...
 
Upvote 0
Thanks for that logic it makes sense. However Im struggling to write the formula because if cell C3 is blank then the returned value could either be 'Future' if the date in cell B3 is >today or 'Live' if B3 <today.
 
Upvote 0
Is this right for you?
Excel Formula:
=IF(C16=0;"Future";IF(C16<TODAY();"Historial";"Live"))
 
Upvote 1
Is this what you are looking for?
Excel Formula:
=IF(AND(C3<TODAY(),C3>0),"Historical",IF(B3>TODAY(),"Future","Live"))
 
Upvote 1
Solution
This is exactly what I was looking for, thanks so much Joe.
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,222,620
Messages
6,167,086
Members
452,094
Latest member
Roberto Saveru

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