Multiple formulas

Melody2

New Member
Joined
Dec 29, 2005
Messages
4
I want to have one formula in a cell that does multiple functions. I need it to look at a column with a code, vlookup on a secondary sheet for the payment rate for that code. If the payment rate figure is below $1000.00 multiply by 3. If the figure is above $1000.00 multiply by 2, and finally if the figure is above $2000.00 multiply by 1.5. Can this be done with one formula that can be copied down an entire column? I hope I am explaining this properly. I would appreciate any help you could give.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
=IF(VLOOKUP(A2,Sheet2!A:B,2,FALSE)>=2000,B2*1.5,IF(VLOOKUP(A2,Sheet2!A:B,2,FALSE)>=1000,B2*2,B2*3))

Start with the biggest lookup ($2000) first, then work backwards.
 
Upvote 0
I understand the basic setup of this formula, which look as if it will work for me. But I think I am brain dead from the holidays. What is the B2 cell referencing? I tried entering this in and referencing my secondary sheet, but the result was zero. sorry to bother you again.


=IF(VLOOKUP(A2,Sheet2!A:B,2,FALSE)>=2000,B2*1.5,IF(VLOOKUP(A2,Sheet2!A:B,2,FALSE)>=1000,B2*2,B2*3))
 
Upvote 0
Sorry, A2 (in this example) is the cell showing the code. B2 is the cell showing the value to be multiplied by 1.5, 2 or 3.

Sheet2 has the codes in column A and the payment rates in column B.

Hope that helps.
 
Upvote 0
Another possibility:

=LOOKUP(LOOKUP(A2,Sheet2!$A:$B),{0,3;1000,2;2000,1.5})*B2
 
Upvote 0

Forum statistics

Threads
1,215,810
Messages
6,127,016
Members
449,351
Latest member
Sylvine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top