Simple IF Statement Help!

frank265

New Member
Joined
Feb 5, 2013
Messages
33
Office Version
  1. 365
Platform
  1. MacOS
Hi All, this is probably really basic but I'm completely new to IF statements and I haven't managed to find anything online that explains this simple task which I'm trying to do...

Basically I have a bunch of dates in a column in a spreadsheet - let's say they're in column A. Column B is blank and what I'm trying to do is see if the date in Column A falls between two dates. Let's say they're Jan 1st 2014 and 31st Dec 2014. If they fall within that time frame I would like to place a Y in Column B. If not, I would like to place an N.

Any suggestions for the best way to achieve this?

Thanks so much for reading!!

Frank
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Put the earlier date in E1 and the later date in F1 and then you can use this. Drag down.


=IF(AND(A2>=$E$1,A2<=$F$1),"Y","N")
 
Upvote 0
Great, that's perfect - thanks so much for the quick reply Mike!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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