ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   month text in calculation (https://www.excelbanter.com/excel-worksheet-functions/195895-re-month-text-calculation.html)

T. Valko

month text in calculation
 
Try this:

=IF(MONTH(A1&1)=7,A2*B2,A2*C2)

--
Biff
Microsoft Excel MVP


"KUMPFfrog" wrote in message
...
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




KUMPFfrog

month text in calculation
 
Thank you, Thank you, Thank you.
both solutions worked great!!!!

"T. Valko" wrote:

Try this:

=IF(MONTH(A1&1)=7,A2*B2,A2*C2)

--
Biff
Microsoft Excel MVP


"KUMPFfrog" wrote in message
...
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





T. Valko

month text in calculation
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"KUMPFfrog" wrote in message
...
Thank you, Thank you, Thank you.
both solutions worked great!!!!

"T. Valko" wrote:

Try this:

=IF(MONTH(A1&1)=7,A2*B2,A2*C2)

--
Biff
Microsoft Excel MVP


"KUMPFfrog" wrote in message
...
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








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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com