Referencing cells from another workbook after running query.

asmith5rgv

Board Regular
Joined
Apr 6, 2006
Messages
69
Good morning all. I have a XL query that goes out to our accounting software and pulls these columns:

Job1# Job Descr $ Invoiced
Job2# Job Descr $ Invoiced
Job3# Job Descr $ Invoiced


Each of the Jobs has it's own workbook that also has the $ Invoiced amount in it.

As a checking procedure I want to to run the query and have the XL sheet also go to that Job's workbook and pull the cell that has the $ invoiced amount in it to make sure my accounting software has the latest data which would look like this:.

--------This data from Query----- -----This from Workbook-----
Job1# Job Descr $ Invoiced $ Invoiced from Workbook

If I just use "=" next to the row and point to the Workbook then when the query is updated and new jobs come on or old ones go off the reference will not tie to the query row anymore.

I need some type of lookup or maybe the indirect function? ( I am not real clear on how the indirect function actually works.)

Any help is greatly appreciated.

Rgds.,
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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