Vlookup help

RTolentino

New Member
Joined
Jun 16, 2015
Messages
4
Hello All...new to the forum

the formula below isn't referencing the last vlookup function. When the value is over 1000 it gives me a #ref error. Any help is appreciated. Thank you

=IF(A16>0,IF($M$39<50,VLOOKUP(A16,'FY16 Pricing'!A:G,3,FALSE),IF($M$39<100,VLOOKUP(A16,'FY16 Pricing'!A:G,4,FALSE),IF($M$39<300,VLOOKUP(P16,'FY16 Pricing'!A:G,5,FALSE),IF($M$39<500,VLOOKUP(P16,'FY16 Pricing'!A:G,6,FALSE),IF($M$39<1000,VLOOKUP(A16,'FY16 Pricing'!A:G,7,FALSE),VLOOKUP(A16,'FY16 Pricing'!A:G,8,FALSE)))))),"")
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hello All...new to the forum

the formula below isn't referencing the last vlookup function. When the value is over 1000 it gives me a #ref error. Any help is appreciated. Thank you

=IF(A16>0,IF($M$39<50,VLOOKUP(A16,'FY16 Pricing'!A:G,3,FALSE),IF($M$39<100,VLOOKUP(A16,'FY16 Pricing'!A:G,4,FALSE),IF($M$39<300,VLOOKUP(P16,'FY16 Pricing'!A:G,5,FALSE),IF($M$39<500,VLOOKUP(P16,'FY16 Pricing'!A:G,6,FALSE),IF($M$39<1000,VLOOKUP(A16,'FY16 Pricing'!A:G,7,FALSE),VLOOKUP(A16,'FY16 Pricing'!A:G,8,FALSE)))))),"")

Welcome to Mr. Excel

The range A:G has 7 columns. The last part of your formula (when M39 >=1000) uses 8 as col_index_num (see in red).
Maybe you have to use range A:H.

M.
 
Upvote 0

Forum statistics

Threads
1,203,123
Messages
6,053,638
Members
444,675
Latest member
FedElecQaEng

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