Cannot work out how to get data from a different workbook & tabs using indirect & vlookup

AustSportingPix

New Member
Joined
Oct 5, 2020
Messages
42
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
I posted this on reddit, but no one has been able to help, so trying here.

Used to be a member years ago

This is the current formula I'm using, however I want it to change based on which race track theyre racing at.

=VLOOKUP([@Horse],[Race_tracks.xlsx]Sandown!$A:$G,2,0)



My plan is cell D4 will have what race track they're racing at, currently the template is set up to Sandown.

The formula works well being up the result for just Sandown, but as they race at Caulfield, Felmington, Moonee Valley and so on I will need it to change each day.

I've watched a couple of youtube videos, they seem to explain how to get it working across multiple tabs, but I need it working across tabs within another workbook.

Can it be solved?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
It can be done, but using INDIRECT the source workbook (Race_tracks.xlsx) must be open for the formula to work.

Where A2 contains the workbook name, e.g. Race_tracks.xlsx and B2 contains the sheet name, e.g. Sandown

=VLOOKUP([@Horse],INDIRECT("'["&A2&"]"&B2&"'!A:B"),2,0)
 
Upvote 0

Forum statistics

Threads
1,214,572
Messages
6,120,306
Members
448,955
Latest member
Dreamz high

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