A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

use current month in ad If satament



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 09:05 PM posted to microsoft.public.excel.newusers
gls858
external usenet poster
 
Posts: 473
Default use current month in ad If satament

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
  #2  
Old April 28th, 2010, 09:34 PM posted to microsoft.public.excel.newusers
Dave Peterson
external usenet poster
 
Posts: 19,791
Default use current month in ad If satament

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")



gls858 wrote:

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


--

Dave Peterson
  #3  
Old April 28th, 2010, 09:52 PM posted to microsoft.public.excel.newusers
gls858
external usenet poster
 
Posts: 473
Default use current month in ad If satament

Dave Peterson wrote:
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")



gls858 wrote:
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



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

gls858
  #4  
Old April 28th, 2010, 10:09 PM posted to microsoft.public.excel.newusers
gls858
external usenet poster
 
Posts: 473
Default use current month in ad If satament

Dave Peterson wrote:
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")



gls858 wrote:
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



Worked perfectly Thanks Dave!

gls858
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.