If statement with date

BCsehi

New Member
Joined
Jan 20, 2011
Messages
31
I have dates in col A. In col B, I want to write an IF statement that says:
=if(A1<2/11/13,Jan,Feb). I know that this is not a valid formula and I get a NAME error. Can someone help me write the statement correctly? Thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Based on what it looks like you are trying to do, perhaps:

=IF(MONTH(A2-10)=1,"Jan","Feb")

or

=IF(A2<("2/11/13"+0),"Jan","Feb")
 
Upvote 0
If you want to continue that format for every month:

=TEXT(MONTH(A2-10)*29,"mmm")
 
Upvote 0
I have dates in col A. In col B, I want to write an IF statement that says:
=if(A1<2/11/13,Jan,Feb). I know that this is not a valid formula and I get a NAME error. Can someone help me write the statement correctly? Thanks!
You could try this (note the use of quote marks... the 1* is to convert the date text into a real date)...

=IF(A1<1*"2/11/14","Jan","Feb")
 
Upvote 0
I copied your formula (changed the 2/11/14 to 2/11/13), and copied the formula down and I get Feb for all dates even those with 1/23/13 dates???
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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