Formula help on VlookUp using worksheet name

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
I have the following formula on a worksheet called "Master"

If works find but I need to exclude the worksheet name of "Master"

What Im experiencing is that the Value of B2 may appear on worksheets "Master" and another worksheet

The formula as is returns "Master", but I want it to exclude referencing "Master" and then return the value shown in B1 from any other worksheet in the workbook.


=SUBSTITUTE(CELL("filename",B2),LEFT(CELL("filename",B2),FIND("]",CELL("filename",B2),1)),"")
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
how many sheets do you have and is the value you are looking for only on one sheet ?
 

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
I have 15 sheets including the "Master" one.....and yes the value that Im looking for will only appear on one other sheet to the "Master" sheet
 

Watch MrExcel Video

Forum statistics

Threads
1,123,487
Messages
5,601,970
Members
414,487
Latest member
inxlsplot

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
Top