Vlookup

superfb

Active Member
Joined
Oct 5, 2011
Messages
251
Office Version
  1. 2007
Platform
  1. Windows
Hi guys,

i was wondering, if its possible to alter the elements in the vlookup formula based on a cell

vlookup formula
='[Total Table 45.5 Car Rental Place - Gross 2021.xls]All'!$C$6

Is it possible to change the year via if i have a cell, so if in cell A3 i change it to 2015 will this part of the formula will automatically change to ............Gross 2021.xls]

Be interesting to get some idea is possible?

thanks
 
You've a dangling double quote in the middle. Try
Excel Formula:
=INDIRECT("'["&Q2&F3&".xls]All'!$D$6")
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You've a dangling double quote in the middle. Try
Excel Formula:
=INDIRECT("'["&Q2&F3&".xls]All'!$D$6")
the works great....i have another thought....i want to do a vlookup based on text values......but for whatever reason it doesnt get picked up (most likely due to formatting issues?) is there a way to do this? would i need to use find and clean potentially?

it would be handy to use a vlookup but i have two variables like the above indirect formula which is linked to the folder name that the end user can change, and the year

Excel Formula:
=VLOOKUP(A1,'[Table 4.6a   Bonuses - Excluding overtime 2021.xls]Full-Time'!$A:$Q,3,0)

The two variables are in blue and yellow. Basically the name of S/S and the year in which the end user can enter that in - i hope that makes some sort of sense?

With the first spreadsheet where i am entering the vlookup, if i use upper.....it still isnt being picked up - i used the formula code and they are both 65? so it should be picked up? (unless it sees it as a text? with the green thing on the top right corner) thanks
 
Last edited:
Upvote 0
Excel Formula:
=VLOOKUP(E83,INDIRECT("'["&$Q$3&"]Full-Time'!$A:$Q"),4,FALSE)

I have tried this as a tester - but i am getting a #REF! ERROR!
 
Upvote 0
You're missing the ".xls". Try
Excel Formula:
=VLOOKUP(E83,INDIRECT("'["&$Q$3&".xls]Full-Time'!$A:$Q"),4,FALSE)
 
Upvote 0
You've a dangling double quote in the middle. Try
Excel Formula:
=INDIRECT("'["&Q2&F3&".xls]All'!$D$6")
Hiya,

apologise the spreadsheet has a abit of a revamp....

The list of file names are in the another tab called"Main Menu" how can i link this Indirect formula to another tab in the workbook, then make the cell reference to another file? thanks


Excel Formula:
=INDIRECT("'["'&'Main Menu'!$Q$1&"]All'!$D$6")

I have to admit when the formulas are calculating it takes forever due to the 4 thread issue? Is there anything i can do to speed things up instead of changing calculation from auto to manual?
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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