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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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