Vlookup with if < >

Baishamao

New Member
Joined
Sep 13, 2009
Messages
19
Hello, I am sorry to be so thick about this, but how I can I make my Vlookup choose an alternative column based on less than or greater than?

I need to have column 6 pricing if quantities in column 5 are less than 25, and column 7 if more than 25 to 100, and column 8 if 100 or more.

I have been trying to introduce an additional if statement but I am not succeeding. Any help would be a boon.

kind thanks in anticipation of you Excel-Boffins. :)


=IF(ISERROR(VLOOKUP(B13,Sheet2!$A$1:$L$10000,6,FALSE)),"",(VLOOKUP(B13,Sheet2!$A$1:$L$10000,6,FALSE))
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Adding a helper column to Sheet2 would be the easiest, but if that isn't possible
=VLOOKUP(B13, Sheet2!$A$1:$L$10000, IF(VLOOKUP(B13,Sheet2!$A$1:$L$1000,5,False),{0,25,100,10000}<25, 6, IF(VLOOKUP(B13,Sheet2!$A$1:$L$1000,5,False),{0,25,100,10000}<100, 7, 8), False)
 
Upvote 0
same principle as if you were only dealing with one sheet...

=IF(F3<25,G3,IF(F3<100,H3,IF(F3>100,I3,"")))
 
Upvote 0
Try this
=VLOOKUP(B22,Sheet2!$A$1:$L$1000,LOOKUP(VLOOKUP(B22,Sheet2!$A$1:L$1000,5,FALSE),{0,25,100},{6,7,8}),FALSE)
 
Upvote 0
It still hates me - I am going to try and do an help column on sheet 2 to define the value and do a pick up from there .... I hope.

But you are ever so nice for trying for me.

xx
 
Upvote 0
If you can post some examples of the data or structure of Sheet 1 and Sheet 2, it may be easier to visualize what you are after.

Happy to help.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,572
Members
452,927
Latest member
whitfieldcraig

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