Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Formula for product based on criteria?

I have a worksheet that looks roughly like the following:
A B C L M
N O
1 Jan Feb March........... to Dec Wage Base
Liability at: XXXXX
2 joe 3 7 88 ........... $100
$______

I am trying to figure out a formula for cell N2 so that if the user types a
"Jan" into cell O1 they will get the product of cell A2*M2. If they type
"Feb" into cell O1 they will get the product of B2*M2...and so on through to
Dec.

Is this possible or do I just need to do 12 "If"'s in the formula? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Formula for product based on criteria?

Sorry when I wrote this all the columns lined up but once it posted it got
all squished and confusing. Columns A to L are Jan to Dec. there are numbers
under each month. I am looking for a formula where I can type a month into
cell O1 and get the product of the number under that month times the Wage
base (M2). Hope that clears it up a bit.

cell N2 would be - =if(O1=Jan,A2*M2, if(O1=Feb,B2*M2) but I need it to
change for every month

"Klee" wrote:

I have a worksheet that looks roughly like the following:
A B C L M
N O
1 Jan Feb March........... to Dec Wage Base
Liability at: XXXXX
2 joe 3 7 88 ........... $100
$______

I am trying to figure out a formula for cell N2 so that if the user types a
"Jan" into cell O1 they will get the product of cell A2*M2. If they type
"Feb" into cell O1 they will get the product of B2*M2...and so on through to
Dec.

Is this possible or do I just need to do 12 "If"'s in the formula? Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula for product based on criteria?

Try this:

=HLOOKUP(O1,A1:L2,2,0)*M2

--
Biff
Microsoft Excel MVP


"Klee" wrote in message
...
I have a worksheet that looks roughly like the following:
A B C L M
N O
1 Jan Feb March........... to Dec Wage Base
Liability at: XXXXX
2 joe 3 7 88 ........... $100
$______

I am trying to figure out a formula for cell N2 so that if the user types
a
"Jan" into cell O1 they will get the product of cell A2*M2. If they type
"Feb" into cell O1 they will get the product of B2*M2...and so on through
to
Dec.

Is this possible or do I just need to do 12 "If"'s in the formula? Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Formula for product based on criteria?

This is great thanks very much. Exactly what I needed.

"T. Valko" wrote:

Try this:

=HLOOKUP(O1,A1:L2,2,0)*M2

--
Biff
Microsoft Excel MVP


"Klee" wrote in message
...
I have a worksheet that looks roughly like the following:
A B C L M
N O
1 Jan Feb March........... to Dec Wage Base
Liability at: XXXXX
2 joe 3 7 88 ........... $100
$______

I am trying to figure out a formula for cell N2 so that if the user types
a
"Jan" into cell O1 they will get the product of cell A2*M2. If they type
"Feb" into cell O1 they will get the product of B2*M2...and so on through
to
Dec.

Is this possible or do I just need to do 12 "If"'s in the formula? Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula for product based on criteria?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Klee" wrote in message
...
This is great thanks very much. Exactly what I needed.

"T. Valko" wrote:

Try this:

=HLOOKUP(O1,A1:L2,2,0)*M2

--
Biff
Microsoft Excel MVP


"Klee" wrote in message
...
I have a worksheet that looks roughly like the following:
A B C L M
N O
1 Jan Feb March........... to Dec Wage Base
Liability at: XXXXX
2 joe 3 7 88 ........... $100
$______

I am trying to figure out a formula for cell N2 so that if the user
types
a
"Jan" into cell O1 they will get the product of cell A2*M2. If they
type
"Feb" into cell O1 they will get the product of B2*M2...and so on
through
to
Dec.

Is this possible or do I just need to do 12 "If"'s in the formula?
Thanks








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
product between two dates and with criteria Stuart Excel Worksheet Functions 4 April 2nd 07 11:02 PM
Executing a formula based on criteria being met confused teacher Excel Worksheet Functions 2 August 17th 06 06:56 AM
Product of 2 arrays based on criteria Ben010 Excel Discussion (Misc queries) 4 March 20th 06 07:50 PM
conditional formula - based on 2 separate criteria andrewo-s Excel Worksheet Functions 10 March 14th 05 03:35 AM
Need formula based on criteria. Me New Users to Excel 1 February 5th 05 05:47 PM


All times are GMT +1. The time now is 12:44 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"