Vlookup Formula Help

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
769
Hi All,

I have this problem I'm trying to get a vlookup formula for. Please see the example below. I tried to manipulate a previous formula I had, but there was too man changes to consider.

If mileage and discount are entered, the result is based on Vlookup and mileage <>300

Excel Workbook
TUVWXYZ
129**********>300
130********0%75.0%71.0%
131********33%75.0%71.0%
132********34%75.0%71.0%
133MileageDiscountComm.**35%75.0%71.0%
134156048.0%76.5%**36%75.0%71.0%
135********37%75.0%71.0%
136********38%75.0%71.0%
137********39%75.0%71.0%
138********40%75.0%71.0%
139********41%76.0%72.0%
140********42%77.0%73.0%
141********43%78.0%74.0%
142********44%79.0%75.0%
143********45%79.5%75.5%
144********46%79.5%75.5%
145********47%80.0%76.0%
146********48%80.5%76.5%
147********49%81.0%77.0%
148********50%81.5%77.5%
Dim IN


Thank you, Dan
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
maybe someone has a more elegant way of doing it but this seems to work

Excel 2012
TUVWXYZ
129<300>300
1300%75.00%71.00%
13133%75.00%71.00%
13234%75.00%71.00%
133MileageDiscountComm.35%75.00%71.00%
134156048.00%76.5%36%75.00%71.00%
13537%75.00%71.00%
13638%75.00%71.00%
13739%75.00%71.00%
13840%75.00%71.00%
13941%76.00%72.00%
14042%77.00%73.00%
14143%78.00%74.00%
14244%79.00%75.00%
14345%79.50%75.50%
14446%79.50%75.50%
14547%80.00%76.00%
14648%80.50%76.50%
14749%81.00%77.00%
14850%81.50%77.50%

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet8

Worksheet Formulas
CellFormula
V134=IF(T134<300,LOOKUP(U134,X130:Y148),LOOKUP(U134,X130:Z148))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Another option would be:

=IF(T134<300,INDEX($Y$130:$Y$148,MATCH(U134,$X$130:$X$148,0),INDEX($Z$130:$Z$148,MATCH(U134,$X$130:$X$148,0)
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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