3D array SUMIF

B

BimboUK

I know SUMIF doesn't work for 3D.

I have multiple worksheets say named 1 to 25

I wish to add column D if column A matches the correct
date(Reconciliation!$A10).

=SUMIF('sheet1:Sheet25'!$A$4:$A$500,Reconciliation!$A10,'Sheet1:Sheet25'!$D$4:$D$500)

I am not too clever and don't have too much time to teach myself the more
complex things excel can do. Is there is a simple way around this problem
other than listing all 25 sheets.

I have multiple uses of this type of formula if I could just find an answer
to SUMIFing 3D arrays.

When answering please assume you are talking to a novice!
 
J

Jacob Skaria

Try the below....Make sure you have all the sheets from 1 to 25...The
sheetnames shoould ** not ** have a space in between like 'Sheet 25'

=SUMPRODUCT(SUMIF(INDIRECT("'"&"sheet"&ROW(INDIRECT("1:25"))&"'!A:A"),
Reconciliation!$A10,INDIRECT("'"&"sheet"&ROW(INDIRECT("1:25"))&"'!D:D")))

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top