Sorry Bob
Was not thinking about it in that respect.
Gord
On Tue, 21 Jun 2011 19:27:42 -0700 (PDT), Bob <(E-Mail Removed)> wrote:
>On Jun 21, 9:36*pm, Gord Dibben <phnor...@shaw.ca> wrote:
>> AVERAGE function ignores blank cells, text cells and cells with formulas that
>> return ""
>>
>> What do you have in the unused months that AVERAGE will not ignore?
>>
>> Gord Dibben * * MS Excel MVP
>>
>>
>>
>> On Tue, 21 Jun 2011 17:48:42 -0700 (PDT), Bob <bobandrich...@comcast.net> wrote:
>> >I have a spreadsheet with the months January thru December(B3:M3). I'd
>> >like the average usage but my months are only from January thru June
>> >for now. How to you write the formula to include all months and still
>> >only average the ones that have been used so far. =AVERAGE(B3:M3)
>> >averages all months. I need it to average January to the current
>> >month. Thanks in Advance!- Hide quoted text -
>>
>> - Show quoted text -
>
>If I use =Average(B3:M3) Which is January thru December it will divide
>by 12 which is fine if I'm in the month of December. But... If I'm in
>the month of June I only want it to divide by 6, If I'm in the month
>of July I want it to divide by 7 and so on.... I think this might
>work?
>=IF(N3=0,"",SUM(B3,C3,D3,E3,F3,G3,H3,I3,J3,K3,L3,M3)/
>SUM(COUNTIF(INDIRECT({"B3","C3","D3","E3","F3","G3","H3","I3","J3","K3","L3","M3"}),">0")))
>Not sure yet! Thanks for your help!!!
|