Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default month text in calculation

On Tue, 22 Jul 2008 14:39:01 -0700, KUMPFfrog
wrote:

I have a drop down list in 'A1' with all the months spelled out.
I want to use the selcted value, of that cell, in a formula.

A1="august"
in 'E2, i want to perform an IF function. If A1 is or = july, return
A2*B2, if not return A2*C2.

Thanks



Try this formula in E2:

=IF(MONTH(DATEVALUE(A1&" 01"))MONTH(DATEVALUE("july" & " 01")),
A2*B2, A2*C2)

Hope this helps / Lars-Åke
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default month text in calculation

Thank you, Thank you, Thank you.
both solutions worked great!!!!

"Lars-Ã…ke Aspelin" wrote:

On Tue, 22 Jul 2008 14:39:01 -0700, KUMPFfrog
wrote:

I have a drop down list in 'A1' with all the months spelled out.
I want to use the selcted value, of that cell, in a formula.

A1="august"
in 'E2, i want to perform an IF function. If A1 is or = july, return
A2*B2, if not return A2*C2.

Thanks



Try this formula in E2:

=IF(MONTH(DATEVALUE(A1&" 01"))MONTH(DATEVALUE("july" & " 01")),
A2*B2, A2*C2)

Hope this helps / Lars-Ã…ke

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
month text in calculation T. Valko Excel Worksheet Functions 2 July 23rd 08 05:41 PM
Month Calculation Tony Excel Worksheet Functions 4 July 17th 07 12:02 PM
Month end calculation Tony Excel Worksheet Functions 12 March 24th 06 12:56 AM
Month end calculation Tony Excel Discussion (Misc queries) 2 March 23rd 06 01:24 AM
month-to-month calculation Colin2u Excel Discussion (Misc queries) 0 July 27th 05 01:32 AM


All times are GMT +1. The time now is 05:47 AM.

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"