Average If excel 2003

proctk

Well-known Member
Joined
Dec 24, 2004
Messages
840
Hi how could I change this formula to do average if

=SUMPRODUCT(SUMIF(INDIRECT("'"&T6:T57&"'!B:B"),G3,INDIRECT("'"&T6:T57&"'!P:P")))

If tried a couple things and googled without luck.

Thank you!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi how could I change this formula to do average if

=SUMPRODUCT(SUMIF(INDIRECT("'"&T6:T57&"'!B:B"),G3,INDIRECT("'"&T6:T57&"'!P:P")))

If tried a couple things and googled without luck.

Thank you!
Like this...

=SUMPRODUCT(SUMIF(INDIRECT("'"&T6:T57&"'!B:B"),G3,INDIRECT("'"&T6:T57&"'!P:P")))/SUMPRODUCT(COUNTIF(INDIRECT("'"&T6:T57&"'!B:B"),G3))
 
Upvote 0
Thank you for this. It does not do quite what I want it to. The spreadsheet has 52 tabs, one for each day of the week. As the week pasts I fill in the template. So the spreadsheet will always countif 52. I only want it to use the weeks that I have completed the template.

Example date squence

05-Nov-10
12-Nov-10
19-Nov-10
26-Nov-10
03-Dec-10
10-Dec-10


Thank you once again!
 
Upvote 0
Thank you for this. It does not do quite what I want it to. The spreadsheet has 52 tabs, one for each day of the week. As the week pasts I fill in the template. So the spreadsheet will always countif 52. I only want it to use the weeks that I have completed the template.

Example date squence

05-Nov-10
12-Nov-10
19-Nov-10
26-Nov-10
03-Dec-10
10-Dec-10


Thank you once again!
Sorry, I don't understand.

:confused:
 
Upvote 0
I'll try again.

The spreadsheet has 52 tabs and each tab has the information completed in column B:B which is used in the countif formula. So the formula you helped with will aways count 52.

I only want to count the spreadsheets where say values are found in column C. of is c is not blank then count.

Hope this helps.
 
Upvote 0
Gotta agree with Biff

If this gives a correct SUM
=SUMPRODUCT(SUMIF(INDIRECT("'"&T6:T57&"'!B:B"),G3,INDIRECT("'"&T6:T57&"'!P:P")))

Then this will give you the count
=SUMPRODUCT(COUNTIF(INDIRECT("'"&T6:T57&"'!B:B"),G3))


Average is defined as SUM devided by COUNT
So Biff's formula will return the average.
 
Upvote 0
okay

who can we change this so it looks for a value not = to 0

i.e.
=SUMPRODUCT(COUNTIF(INDIRECT("'"&T6:T57&"'!C:C"<>0),G3))
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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