Substituting a Vlookup / Range

helpme20

Board Regular
Joined
Aug 28, 2010
Messages
102
I have a substitution question.

I want to substitute a vlookup into my formula.

Here is the formula:

=IF($D4="Code not found",0,


IF(('2012 price changes'!$N$3:$N$2863)="None",0,ROUND(IF($A$2="NO",IF($E4="pkg",


ROUND((IFERROR(LOOKUP(1E+100,SEARCH(" "&$A4&","," "&list01&","),(""&('2012 price changes'!$N$3:$N$2863))),"No Code"))*0.7,3),


ROUND((IFERROR(LOOKUP(1E+100,SEARCH(" "&$A4&","," "&list01&","),(""&('2012 price changes'!$N$3:$N$2863))),"No Code"))*0.909,3)),


IF($E4="pkg",(ROUND((IFERROR(LOOKUP(1E+100,SEARCH(" "&$A4&","," "&list01&","),(""&('2012 price changes'!$N$3:$N$2863))),"No Code"))*0.7,3))/(1-$D$2),


(ROUND((IFERROR(LOOKUP(1E+100,SEARCH(" "&$A4&","," "&list01&","),(""&('2012 price changes'!$N$3:$N$2863))),"No Code"))*0.909,3))/(1-$B$2))),3)))


I want to drop a vlookup into this formula everywhere this part of the formula exists.


('2012 price changes'!$N$3:$N$2863)

The problem is, when I construct the lookup table, I can't get the range in the cell to show correctly.


I type in the same as is above, but when I hit enter, it gives me the following:

'('2012 price changes'!$n$3:$n$2863)

How do I fix this?

I want the vlookup to read, vlookup(f2,$m$5:$n$20,2,false) with it returning the range ('2012 price changes'!$N$3:$N$2863)


Also, do I need to use the indirect function somehow for the return of the range I want?

Any help is appreciated here. Thank you
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I want to drop a vlookup into this formula everywhere this part of the formula exists.


('2012 price changes'!$N$3:$N$2863)

The problem is, when I construct the lookup table, I can't get the range in the cell to show correctly.


I type in the same as is above, but when I hit enter, it gives me the following:

'('2012 price changes'!$n$3:$n$2863)

How do I fix this?
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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