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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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