Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default average(if not working properly

Hi All,

I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far as
my knowledge goes, i do not see anything wrong with the formula but why is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.

Help required.

Thanks
Gaurav


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default average(if not working properly

Use this:
=IF(A10:A15=A6,AVERAGE(B10:B15),"")
Ctrl+Shift+Enter


To see how Excel handles calculations, functions, etc. click on Tools
Formula Auditing Evaluate Formula


Regards,
Ryan---

--
RyGuy


"Gaurav" wrote:

Hi All,

I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far as
my knowledge goes, i do not see anything wrong with the formula but why is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.

Help required.

Thanks
Gaurav



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default average(if not working properly

it gives me a blank.


"ryguy7272" wrote in message
...
Use this:
=IF(A10:A15=A6,AVERAGE(B10:B15),"")
Ctrl+Shift+Enter


To see how Excel handles calculations, functions, etc. click on Tools
Formula Auditing Evaluate Formula


Regards,
Ryan---

--
RyGuy


"Gaurav" wrote:

Hi All,

I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far
as
my knowledge goes, i do not see anything wrong with the formula but why
is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i
calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.

Help required.

Thanks
Gaurav





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default average(if not working properly


Your formula only averages numbers in Column B where
the adjacent value in Column A is equal to the value in Cell A6.
'--

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gaurav"
wrote in message
Hi All,
I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far as
my knowledge goes, i do not see anything wrong with the formula but why is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.
Help required.
Thanks
Gaurav


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default average(if not working properly

Yes Jim, but it is not giving me the correct figure.


"Jim Cone" wrote in message
...

Your formula only averages numbers in Column B where
the adjacent value in Column A is equal to the value in Cell A6.
'--

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gaurav"
wrote in message
Hi All,
I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far
as
my knowledge goes, i do not see anything wrong with the formula but why is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i
calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.
Help required.
Thanks
Gaurav






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default average(if not working properly

I think you have to play with the range a little; change the
references...when I did it it I changes the range from your example of 5066
rows to a tiny 15 rows (just to make it a little easier to work with).
=IF(A10:A5066=A6,AVERAGE(B10:B5066),"")

Try it again.

Regards,
Ryan--

--
RyGuy


"Gaurav" wrote:

Yes Jim, but it is not giving me the correct figure.


"Jim Cone" wrote in message
...

Your formula only averages numbers in Column B where
the adjacent value in Column A is equal to the value in Cell A6.
'--

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gaurav"
wrote in message
Hi All,
I have this formula {=AVERAGE(IF($A$10:$A$5066=A6,B$10:B$5066))}. As far
as
my knowledge goes, i do not see anything wrong with the formula but why is
calculating a different average than the normal
=AVERAGE(number1,number2,number3....) formula?

as per the current figures I have the result as 230.21 but when i
calculate
the same manually with the normal average formula, it gives me 278.17. I
figured its not working properly when i entered 1 in one of the cells and
the average went up instead of going down.
Help required.
Thanks
Gaurav





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default average(if not working properly


Try checking the results with this formula...
=SUMIF(A10:A5066,A6,B10:B5066)/COUNTIF(A10:A5066,A6)
(not an array formula)

'--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gaurav"
wrote in message
Yes Jim, but it is not giving me the correct figure.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default average(if not working properly

okay....this is weird...this formula is giving me a different figure now.
why is this happening??


"Jim Cone" wrote in message
...

Try checking the results with this formula...
=SUMIF(A10:A5066,A6,B10:B5066)/COUNTIF(A10:A5066,A6)
(not an array formula)

'--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gaurav"
wrote in message
Yes Jim, but it is not giving me the correct figure.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filters not working properly Alan Dunne Excel Discussion (Misc queries) 2 February 15th 07 06:24 PM
Autofilter not working properly Raza Excel Worksheet Functions 9 December 30th 06 01:48 AM
But not working properly Rao Ratan Singh Excel Discussion (Misc queries) 2 September 14th 06 08:45 AM
Vlookup not working properly Jaime Excel Worksheet Functions 3 June 21st 06 09:56 PM
datasort not working properly ludditefreak Excel Discussion (Misc queries) 1 March 8th 06 03:00 PM


All times are GMT +1. The time now is 01:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"