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

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?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default IF

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),"",VLO OKUP(A1,Tbl_Multiplier,2,FALSE)*B1)
--
John C


"Karen6175" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF

Karen,

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

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

Mike

"Karen6175" wrote:

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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default IF

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

On Wed, 23 Jul 2008 06:33:03 -0700, Karen6175
wrote:

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?


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



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