use current month in ad If satament

G

gls858

I have a cell A1 with a drop down to select month. In another cell on
another sheet I want to compare the current month to the value in A1.

If (current month = A1, value, value)
I've found a lot of date functions but the solution evades me. Can
someone please help me? All I really need is how to get the month to use
to compare I think I have the rest of the formla figured out.

TIA
gls858
 
D

Dave Peterson

I'm not sure what you're really using -- dates or the month names?

I'm guessing names like January, February, ..., December.

=if(text(today(),"mmmm")=A1,"same name","not same name")

If you used abbreviations: Jan, Feb, ..., Dec

=if(text(today(),"mmm")=A1,"same name","not same name")
 
G

gls858

Dave said:
I'm not sure what you're really using -- dates or the month names?

I'm guessing names like January, February, ..., December.

=if(text(today(),"mmmm")=A1,"same name","not same name")

If you used abbreviations: Jan, Feb, ..., Dec

=if(text(today(),"mmm")=A1,"same name","not same name")

Thanks Dave. I'll give ti a try. I appreciate the help.

gls858
 
G

gls858

Dave said:
I'm not sure what you're really using -- dates or the month names?

I'm guessing names like January, February, ..., December.

=if(text(today(),"mmmm")=A1,"same name","not same name")

If you used abbreviations: Jan, Feb, ..., Dec

=if(text(today(),"mmm")=A1,"same name","not same name")

Worked perfectly Thanks Dave!

gls858
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top