#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default New to Formuals

I would like to set up my excel sheet to auto calculate. The problem I have
multiple factors to column B
B C D
1 Product code A 100 ?
2 Product code B 50 ?
3 Product code C 25 ?

I want to be able to have a formula in cell D that will look to see if it's
any of the product codes something like if B1=product code A then (c1*20), or
if B1=product code b then (c1*50)

Thanks in advanced!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default New to Formuals

How many products are there? If there's only a few you can use a formula
like this:

=C1*IF(B1="A",20,IF(B1="B",50,IF(B1="C",75,0)))

If you have more than a few then you should create a 2 column table like
this:

...........J..........K
1.......A.........20
2.......B.........50
3.......C.........75
4.......D.........65
etc

Then use a formula like this:

=C1*VLOOKUP(B1,J$1:K$4,2,0)

Biff

"Tanya" wrote in message
...
I would like to set up my excel sheet to auto calculate. The problem I
have
multiple factors to column B
B C D
1 Product code A 100 ?
2 Product code B 50 ?
3 Product code C 25 ?

I want to be able to have a formula in cell D that will look to see if
it's
any of the product codes something like if B1=product code A then (c1*20),
or
if B1=product code b then (c1*50)

Thanks in advanced!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default New to Formuals

First, set up a lookup table in say cols G & H,
eg in G1:H1 down you'd have:
Product code A 20
Product code B 50
Product code C 80
etc

Then you could use in D1:
=C1*VLOOKUP(B1,G:H,2,0)
and copy D1 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tanya" wrote:
I would like to set up my excel sheet to auto calculate. The problem I have
multiple factors to column B
B C D
1 Product code A 100 ?
2 Product code B 50 ?
3 Product code C 25 ?

I want to be able to have a formula in cell D that will look to see if it's
any of the product codes something like if B1=product code A then (c1*20), or
if B1=product code b then (c1*50)

Thanks in advanced!

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
ROUNDING AND 2 FORMUALS IN ONE CELL Teethless mama Excel Worksheet Functions 0 November 30th 06 05:59 AM
ROUNDING AND 2 FORMUALS IN ONE CELL Teethless mama Excel Worksheet Functions 0 November 29th 06 11:20 PM
ROUNDING AND 2 FORMUALS IN ONE CELL Joe Excel Worksheet Functions 0 November 29th 06 11:06 PM
formuals in comments in excel u9946675 Excel Discussion (Misc queries) 1 October 26th 06 11:59 AM
excel conditional formuals Hazel Calderon Excel Worksheet Functions 1 September 27th 06 10:21 PM


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