If a value is between two values...

TripletDad

Board Regular
Joined
Oct 19, 2010
Messages
121
This should be simple, but I'm struggling.

If today's date is between two predetermined dates, how can I return a "Yes" answer?

B1: 9/8/2011
B2: 9/14/2011

Then C2 should say "Yes" because today is between B1 & B2...
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
formula = IF(AND(TODAY()>b1,TODAY()<C1)
,"YES","NO")
 
Last edited:
Upvote 0
Steve,

I'm sorry - this doesn't seem to work.

... it's missing a parenthasis...
... how does the formula know to stop at B2?
 
Upvote 0
I just dont know why it does not allow me to paste the formula
PHP:
formula = IF(AND(TODAY()>b1,TODAY()<b2),"YES","NO")
 
Upvote 0
@Pedie

The forum editor thinks the greater than > and less than < characters are HTML code. If you precede them with a space, it seems to work.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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