Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Current Month Sr Accountant[_2_] Excel Discussion (Misc queries) 1 September 5th 07 03:10 AM
Subtract a future month from the current month to get remaining m. Fletch Excel Worksheet Functions 1 July 26th 07 04:29 PM
Retrieve data for previous 3, 6, 12 month given current month GB Excel Worksheet Functions 4 July 19th 07 11:58 PM
Calculate the first day of the month for the current month? April S. Excel Discussion (Misc queries) 5 July 27th 05 08:53 PM
Current Month Howard Excel Worksheet Functions 6 March 17th 05 05:35 PM


All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"