IF

K

Karen6175

I need to create a formula for the following scenario ... any help would be
appreciated!

If value in cell is 3, then multiply another cell by .376, If 4, multiply by
..668, and so on. For instance:

A1 = 3
B1 = 4.5
Formula Cell C1 should return 1.69
OR
A1 = 4
B1 = 4.5
Formula Cell C1 should return 3.01


Can this be done?
 
J

John C

If you are going to have many different multipliers, you could set up a
table. I like to set up tables on a separate tab named Tables.
In A1 type Value, in B1 type Multiplier.
In A2 type 3, in B2 type .376
In A3 type 4, in B3 type .668
etc.
Highlight selected Table area, and name it Tbl_Multiplier (or something to
that effect) go to menu Insert|Name|Define.

Then, on your original sheet, say you have A1=3, B1=4.5, type the following
into cell C1
=ISERROR(VLOOKUP(A1,Tbl_Multiplier,2,FALSE),"",VLOOKUP(A1,Tbl_Multiplier,2,FALSE)*B1)
 
M

Mike H

Karen,

Don't know what you mean by '..and so on' but try this

=B1*CHOOSE(A1,1,1,0.376,0.668)

Mike
 
G

Gord Dibben

Don't know how far "and so on" reaches but here's an example.

=LOOKUP(A1,{3,4,5,6,7},{0.376,0.668,0.999,1.376,1.668})*B1


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top