Need help with pulling a value from another workbook based on parameters

vik2slick

New Member
Joined
Dec 28, 2017
Messages
23
I'm trying to automate some billing and need to pull Quantities from another workbook based on the Customer Ref. Number (CRN) and Product (Billing Report Field 1) based on the Workbook and Tab Name.

I tried the below Sumproduct formula but I realize this won't work. Appreciate any help offered.

'=SUMPRODUCT(($A5=INDIRECT("'"&O5&P5&Q5&R5&L5&"'!"&"$A$2:$B$20000")*($M5=INDIRECT("'"&O5&P5&Q5&R5&L5&"'!"&"$H$1:$AP$1")*(INDIRECT("'"&O5&P5&Q5&R5&L5&"'!"&"$H$2:$F$20000")))))

Below is a sample screenshot of the fields I'm working with.

1691185831770.png
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Why are you keeping your base data in separate workbooks? If you have all your data in one place you can do reporting and analysis easily.
 
Upvote 0

Forum statistics

Threads
1,215,958
Messages
6,127,937
Members
449,412
Latest member
sdescharme

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