IF forumla on cell that sometimes blank, sometimes a date

JohnnyPicnic

New Member
Joined
Feb 8, 2021
Messages
16
Office Version
  1. 2019
Platform
  1. Windows
Hi all,

I'm attempting to perform and IF statement against a cell that is sometimes blank and sometimes contains a date. The expected result is:
blank = leave blank
greater than 30 days = Data↑
between 15-30 days = Data↓

my formula =IF(TODAY()-D7>30, "Data↑", IF(AND(TODAY()-D7>=15, TODAY()-D7<=30), "Data↓",""))

I can't get to a formula that leaves the cell blank.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about
Excel Formula:
=IF(D7="","",IF(TODAY()-D7>30, "Data↑", IF(AND(TODAY()-D7>=15, TODAY()-D7<=30), "Data↓","")))
 
Upvote 0
Solution
How about
Excel Formula:
=IF(D7="","",IF(TODAY()-D7>30, "Data↑", IF(AND(TODAY()-D7>=15, TODAY()-D7<=30), "Data↓","")))
Thank you! I had tried something similar but I think I missed space or comma somewhere.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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