sum or indirect...formula problem

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
Hi all,

Having some trouble with my formula. Im trying to use indirect to go through the worksheets and give me a total count of invoices and $ amount.

=SUMIF(INDIRECT("'"&A7&"'!'Invoice Count (Combined)'!$A$2:$A$15000"),Sheet5!$B$6,INDEX(INDIRECT("'"&Sheet5!A7&"'!'Invoice Count (Combined)'!$AW$2:$AW$15000"),0,MATCH($C$5,INDIRECT("'"&A7&"'!'Invoice Count (Combined)'!$D$2:$D$15000"),0)))

getting a REF error.

A7 = Invoice Count (Combined) ....name of worksheet

'Invoice Count (Combined)'!$A$2:$A$15000 ...range where country i.e. CA, US etc

B6 = Country i.e. CA, US

'Invoice Count (Combined)'!$AW$2:$AW$15000 ....column where it contains the data i want to obtain, with AW1 being the header

C5 = Purge (type of invoice - i want by, other than country)

'Invoice Count (Combined)'!$D$2:$D$15000 ...type of invoice i.e. purge, offsite etc.


so im trying to get by country i.e CA, by criteria i.e. purge, the value in sheet Invoice Count (Combined) in cell AW.

can someone pls help me with my logic

thx u so much
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If you are using Excel 2007 or higher maybe

=SUMIFS(INDIRECT("'"&A7&"'!AW2:AW15000"),INDIRECT("'"&A7&"'!A2:A15000"),B6,INDIRECT("'"&A7&"'!D2:D15000"),C5)

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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