Please Correct the Formula

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
=SUMIF(INDIRECT(C1&"!$AE:$AE"),$A7,INDIRECT(C1&"!$Y:$Y"))

thanks
 
Thank you Aladin,

When I put this formula,

'=SUMPRODUCT((INDIRECT("'"&C1&"'!$A1:$A14919")=A2)*(INDIRECT("'"&C1&"'!$AD1:$AD14919)=B2)*(INDIRECT("'"&C1&"'!$Y1:$y)14919))

it says "The formula you typed contains an error"

and highlights the last quotes.

Thanks

Either:

=SUMPRODUCT((INDIRECT("'"&C1&"'!A:A")=A2)*(INDIRECT("'"&C1&"'!AD:AD")=B2)*(INDIRECT("'"&C1&"'!Y:Y")))

Or:

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!A:A")=A2),--(INDIRECT("'"&C1&"'!AD:AD")=B2),INDIRECT("'"&C1&"'!Y:Y"))

will work on Excel 2007 and later.

Othwerwise, you need to replace the whole column references.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Thank you Aladin,

I use 2007 at home, but at work I am using 2003. So I need to use specific range column reference?
You replied at 3:50am.
sahur.
Thanks

Sohail
 
Upvote 0
Thank you Aladin,

I use 2007 at home, but at work I am using 2003. So I need to use specific range column reference?
You replied at 3:50am.
sahur.
Thanks

Sohail

2007:

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!A:A")=A2),--(INDIRECT("'"&C1&"'!AD:AD")=B2),INDIRECT("'"&C1&"'!Y:Y"))

Both 2003 and 2007:

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!A2:A1000")=A2),--(INDIRECT("'"&C1&"'!AD2:AD1000")=B2),INDIRECT("'"&C1&"'!Y2:Y1000"))

Adjust the ranges to suit.
 
Upvote 0
Thanks you very much Aladin,

JAk

Sohail Rizki
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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