If Then Using Todays Date +/- 30 Days

1313

New Member
Joined
Dec 8, 2011
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi - I am trying to create a formula that states the following:

If date in cell K3 is less than 30 days from today's date (I can put today's date in cell A3 if needed), then cell M3 = Yes

I cannot figure this one out... can anyone help? :confused:

THANK YOU!!!! :)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
=if(K3-today()<30,"yes","no")
 
Upvote 0
THANK YOU!!! :):):):)

One more question.... as I am creating a list that will be populated as items come up, the cells in K will be blank (of course, until a date is entered). However, when I populate the M column cells with the formula you provided, the all say "yes".

Is there a way to have them blank, until the K column cells are populated?

thanks again.... priceless information for me!!
 
Upvote 0
=if(K3="","",if(K3-today()<30,"yes","no"))

Browsing the board for similar topics will yield very usesful information.
 
Upvote 0

Forum statistics

Threads
1,215,198
Messages
6,123,589
Members
449,109
Latest member
Sebas8956

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