IF statement using dates

BACcampbell

New Member
Joined
Feb 22, 2013
Messages
3
I'm trying to create an IF statement that looks at whether a cell populates a specific month to input a different cells data. I need the cell to look at only the beginning of the date as thats the month.
Heres what I currently have IF(LEFT(I10,1)=1,H10,"")

I10 has my date (cell formatted at date), first character on the left should be 1 for january on this particular cell. If it is January, I want this cell to fill in with the data in cell H10, If it is not January I want the cell to stay blank.

It keeps giving me the false data, instead of the true. I've tried numerous little things. (Adding month In front of Left. Deleting the character reference in left.)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

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