Sheet Name + VLookUp

VeryBasic

New Member
Joined
Jun 8, 2015
Messages
4
Hi I have used the following to copy a sheet name into cell
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,1000)

Now I want to use the cell data (sheet name) to perform a Vlookup and return information. I keep getting an error because the cell data (sheet name) is not being recognized. How can I make the sheet name recognizable for the VLookup

Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Your current formula will arrive active sheet name as result.

What is the use of using the active sheet name in your vlookup() formula?

Since you can refer it without specifying the active sheet name.
 
Upvote 0
Hi Thanks for your reply and good question. I am coordinating an auction - on the day peopel will write their bid onto an individual bid sheet for each item. I have a master list with a item number, product description, value etc. I then need to create the "bid sheet" for each individual item. I thought that if I rename the sheet to the item number and then that will use Vlookup to find and the other details into the relevant cell. If there is a better way happy to hear it.

The idea was to copy the Bid sheet and rename the sheet to the next item number which will then enter the relevant info for that item
 
Last edited:
Upvote 0

Excel 2010
AB
1Item NumName
22001a
32002b
42003c
Master



Excel 2010
AB
1Item NumName
22001a
2001
Cell Formulas
RangeFormula
A2=MID(CELL("filename"),FIND("]",CELL("filename"))+1,1000)
B2=VLOOKUP(--A2,Master!A:B,2,FALSE)
 
Last edited:
Upvote 0
It works - however when I go back to the Master list and then back to the Bid sheet the Mid Cell formula changes and refers to the Master Sheet name and not the item sheet name?? How do I lock the Mid Cell formula so it will only read the sheet name and not change?
 
Upvote 0
Because cell() function is volatile which will get the last change cell sheet name as result.

To avoid this conflict you have to pass the same sheet reference in the next argument of cell function like this...

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,1000)
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

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