Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Criteria average ignoring blanks

Hi

Further to my post from yesterday I now have another question

Coulmn A is a list of locations
Coulmn B is a figure

Sometimes Column B is empty as location was not online and no data
received

I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.

How do I do this in Excel 2000?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Criteria average ignoring blanks

Puk,

=AVERAGE(B2:B200) (or whatever).

The AVERAGE function ignores empty cells, but averages a zero as zero, which, I think, is
what you want.
--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"flumpuk" wrote in message
oups.com...
Hi

Further to my post from yesterday I now have another question

Coulmn A is a list of locations
Coulmn B is a figure

Sometimes Column B is empty as location was not online and no data
received

I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.

How do I do this in Excel 2000?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Criteria average ignoring blanks

On 16 Oct, 22:59, "Earl Kiosterud" wrote:
Puk,

=AVERAGE(B2:B200) (or whatever).

The AVERAGE function ignores empty cells, but averages a zero as zero, which, I think, is
what you want.
--
Regards from Virginia Beach,

Earl Kiosterudwww.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"flumpuk" wrote in message

oups.com...



Hi


Further to my post from yesterday I now have another question


Coulmn A is a list of locations
Coulmn B is a figure


Sometimes Column B is empty as location was not online and no data
received


I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.


How do I do this in Excel 2000?- Hide quoted text -


- Show quoted text -


What I want to do is average colum B but only when a set location is
in its adjacant column A

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Criteria average ignoring blanks

On 16 Oct, 22:59, "Earl Kiosterud" wrote:
Puk,

=AVERAGE(B2:B200) (or whatever).

The AVERAGE function ignores empty cells, but averages a zero as zero, which, I think, is
what you want.
--
Regards from Virginia Beach,

Earl Kiosterudwww.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"flumpuk" wrote in message

oups.com...



Hi


Further to my post from yesterday I now have another question


Coulmn A is a list of locations
Coulmn B is a figure


Sometimes Column B is empty as location was not online and no data
received


I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.


How do I do this in Excel 2000?- Hide quoted text -


- Show quoted text -


WHat I want to do is average column B but only when a set location is
in Column A. Something like =AVERAGE ((B:B)IF a1 = "Location")

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Criteria average ignoring blanks

Try this *array* formula:

=AVERAGE(IF((A1:A100="Location")*(B1:B100<""),B1: B100))
--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, you must use CSE when
revising the formula.

Array formulas *cannot* use entire column references (A:A, B:B).

Also, you could assign a cell to contain the criteria for Column A.
Say you enter
Location
in C1, then the formula would be:

=AVERAGE(IF((A1:A100=C1)*(B1:B100<""),B1:B100))

Where you could change the criteria without having to change the formula
itself.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"flumpuk" wrote in message
oups.com...
On 16 Oct, 22:59, "Earl Kiosterud" wrote:
Puk,

=AVERAGE(B2:B200) (or whatever).

The AVERAGE function ignores empty cells, but averages a zero as zero,
which, I think, is
what you want.
--
Regards from Virginia Beach,

Earl Kiosterudwww.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"flumpuk"
wrote in message

oups.com...



Hi


Further to my post from yesterday I now have another question


Coulmn A is a list of locations
Coulmn B is a figure


Sometimes Column B is empty as location was not online and no data
received


I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.


How do I do this in Excel 2000?- Hide quoted text -


- Show quoted text -


WHat I want to do is average column B but only when a set location is
in Column A. Something like =AVERAGE ((B:B)IF a1 = "Location")





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Criteria average ignoring blanks

=SUMIF($A$2:$A$8, "Location",
Sheet2!$B$2:$B$8)/SUMPRODUCT(--($A$2:$A$8="Location"),
--(Sheet2!$B$2:$B$8<0))

"flumpuk" wrote:

Hi

Further to my post from yesterday I now have another question

Coulmn A is a list of locations
Coulmn B is a figure

Sometimes Column B is empty as location was not online and no data
received

I need to average out the numbers in column B when a set location is
in column A. I need to disregard column B if it is blank . A zero is a
valid value in this Column.

How do I do this in Excel 2000?


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
Ignoring blanks from Column(s) Michael Excel Worksheet Functions 3 December 3rd 06 08:58 PM
Ignoring blanks and consolidating stevemyers Excel Discussion (Misc queries) 1 June 28th 06 07:39 PM
Ignoring blanks exsam21 Excel Discussion (Misc queries) 2 January 18th 06 05:19 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
Conditional Average Ignoring Blanks Dirk Friedrichs via OfficeKB.com Excel Worksheet Functions 2 May 6th 05 03:49 PM


All times are GMT +1. The time now is 06:42 PM.

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

About Us

"It's about Microsoft Excel"