Use Vlookup with Formula Cells.

sadnblue

New Member
Joined
Dec 10, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Greetings,
Basic Question. How to ref a cell in vlookup (Vlookup Value) and get results.

E.g. I've Formula to get my Sheet name in A1,

Using this formula to get sheet name >> =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

Now I want Vlookup to lookup A1 & then carry on with the process but my formula fails as A1 is not a binary Value I guess?
how to treat A1 as a Number or Text?
 
Well that means that reason no 1 applies.

You need to convert the value returned by the formula to a numeric value, you can do that in various ways, here's one.
Code:
=VALUE(MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255))
Note, this is only really going to work if all the Employee codes are numeric.
 
Upvote 0
Solution

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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