#1   Report Post  
Bunnybabe
 
Posts: n/a
Default Excel Formula's

I'm trying to create a formula, where

If a cell = a month, then depending on which month there will be a
calculation.
This is as far as I got and it's wrong
eg.
=if(B2="January",1*2.083)*OR(b2="February",2*2.083 )*OR(b2="March",3*2.083)*OR(b2="April",4*2.083)... ........I need this for 12 months
I can only get a formula that does the first part, and nothing else.
HELP ME PLEASE!!!!

  #2   Report Post  
CLR
 
Posts: n/a
Default

Excel will not allow a 12 element IF statement...........use the VLOOKUP
feature.........put all of the month numbers in a column out of the way (X)
and in the column to the right of it(Y), put the corresponding formulas you
wish to invoke,
then use
=VLOOKUP(B2,X:Y,2,FALSE)

Vaya con Dios,
Chuck, CABGx3




"Bunnybabe" wrote in message
...
I'm trying to create a formula, where

If a cell = a month, then depending on which month there will be a
calculation.
This is as far as I got and it's wrong
eg.

=if(B2="January",1*2.083)*OR(b2="February",2*2.083 )*OR(b2="March",3*2.083)*O
R(b2="April",4*2.083)...........I need this for 12 months
I can only get a formula that does the first part, and nothing else.
HELP ME PLEASE!!!!



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

If B2 is a real date, you can simply use

=MONTH(B2)*2.083

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bunnybabe" wrote in message
...
I'm trying to create a formula, where

If a cell = a month, then depending on which month there will be a
calculation.
This is as far as I got and it's wrong
eg.

=if(B2="January",1*2.083)*OR(b2="February",2*2.083 )*OR(b2="March",3*2.083)*O
R(b2="April",4*2.083)...........I need this for 12 months
I can only get a formula that does the first part, and nothing else.
HELP ME PLEASE!!!!



  #4   Report Post  
ΊΌΦέΘΛ
 
Posts: n/a
Default

=match(B2,{"Jan","Feb","Mar","Apr","May","Jun","Ju l","Aug","Sep","Oct","Nov"
,"Dec"},0)*2.083



  #5   Report Post  
ΊΌΦέΘΛ
 
Posts: n/a
Default

=MATCH(B2,{"Jan","Feb","Mar","Apr","May","Jun","Ju l","Aug","Sep","Oct","Nov"
,"Dec"},0)*2.083




  #6   Report Post  
Dana DeLouis
 
Posts: n/a
Default

If the month is text, and not a date, then perhaps another option might be:
=MONTH(DATEVALUE(A1 & 1))*2.083

However, the abbreviated spelling of a month would also work (i.e. "April"
or "Apr")
HTH
--
Dana DeLouis
Win XP & Office 2003


"Bunnybabe" wrote in message
...
I'm trying to create a formula, where

If a cell = a month, then depending on which month there will be a
calculation.
This is as far as I got and it's wrong
eg.
=if(B2="January",1*2.083)*OR(b2="February",2*2.083 )*OR(b2="March",3*2.083)*OR(b2="April",4*2.083)... ........I
need this for 12 months
I can only get a formula that does the first part, and nothing else.
HELP ME PLEASE!!!!



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
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
Suddenly cannot calculate functions or formulas in Excel Leon Hairie Excel Worksheet Functions 1 March 1st 05 04:26 PM
How do I save a copy of an excel file without the formulas? Saving Excel File without Formula Excel Worksheet Functions 1 February 14th 05 08:55 PM
IF/AND formulas within excel mark.ew Excel Discussion (Misc queries) 5 January 4th 05 07:12 PM
Problems with Excel formulas when 2002 upgraded to XP Kathi McGraw Excel Worksheet Functions 0 November 16th 04 05:27 PM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"