Is there a way to get an average using count for SumProduct?

Pmayhew

New Member
Joined
Oct 27, 2010
Messages
9
Hi All,
I have a formula which does a good job of providing a annual rent for a tenant. The only problem is that if the year has more than 2 rent numbers, it sums them. I cannot figure out how to use count to get the average for the year. Any assistance would be greatly appreciated!
-Trish
=IF(W14="","",SUMPRODUCT(--($N$17:$N$1000=$V14),--(RIGHT($R$17:$R$1000,4)=$W$8),$S$17:$S$1000))

V14 = unique identifier on summary table
N17 = unique identifier for tenant in massive list. Each tenant has one uniqure number but it is listed several times
R17 - starts the list of dates:
Jan-2011
Dec-2011
etc several for each tenant
W8 = year 2011
S17 = are the coresponding dollar amounts for the corresponding date in R17
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi All,
I have a formula which does a good job of providing a annual rent for a tenant. The only problem is that if the year has more than 2 rent numbers, it sums them. I cannot figure out how to use count to get the average for the year. Any assistance would be greatly appreciated!
-Trish
=IF(W14="","",SUMPRODUCT(--($N$17:$N$1000=$V14),--(RIGHT($R$17:$R$1000,4)=$W$8),$S$17:$S$1000))

V14 = unique identifier on summary table
N17 = unique identifier for tenant in massive list. Each tenant has one uniqure number but it is listed several times
R17 - starts the list of dates:
Jan-2011
Dec-2011
etc several for each tenant
W8 = year 2011
S17 = are the coresponding dollar amounts for the corresponding date in R17
What version of Excel are you using?

R17 - starts the list of dates:
Jan-2011
Dec-2011
Are these TEXT strings or true Excel dates formatted to display as mmm-yyyy ?
 
Upvote 0
Hi,
I am using 2002 and it is actually Text (an Argus data dump). Hope that helps.
Ok, try this array formula**:

=IF(W14="","",AVERAGE(IF($N$17:$N$1000=$V14,IF(RIGHT($R$17:$R$1000,4)=$W$8&"",$S$17:$S$1000))))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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