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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,215,799
Messages
6,126,975
Members
449,351
Latest member
Sylvine

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