Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to exclude a cell(s) from a range w/o mult. ranges on any fcn

In an excel function, is it possible to exclude a cell or cells from a range.

Example:

=Average(A5:A20), but exclude a few cells, say A10 and A15

I am aware of one way: =Average(A5:A9,A11:A14,A16:A20)

but is there a possible way to exclude cells in a range within the fuction,
such as =Average(A5:A20,not A10, not A15)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to exclude a cell(s) from a range w/o mult. ranges on any fcn

=(SUM(A5:A20)-SUM(A10:A15))/(COUNT(A5:A20)-COUNT(A10:A15))


"civileng" wrote:

In an excel function, is it possible to exclude a cell or cells from a range.

Example:

=Average(A5:A20), but exclude a few cells, say A10 and A15

I am aware of one way: =Average(A5:A9,A11:A14,A16:A20)

but is there a possible way to exclude cells in a range within the fuction,
such as =Average(A5:A20,not A10, not A15)

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to exclude a cell(s) from a range w/o mult. ranges on any fcn

I think the OP wanted to exclude only A10 and A15, not the ones between.
Might be worth trying
=(SUM(A5:A20)-SUM(A10,A15))/(COUNT(A5:A20)-COUNT(A10,A15)) ?
--
David Biddulph

"Teethless mama" wrote in message
...
=(SUM(A5:A20)-SUM(A10:A15))/(COUNT(A5:A20)-COUNT(A10:A15))


"civileng" wrote:

In an excel function, is it possible to exclude a cell or cells from a
range.

Example:

=Average(A5:A20), but exclude a few cells, say A10 and A15

I am aware of one way: =Average(A5:A9,A11:A14,A16:A20)

but is there a possible way to exclude cells in a range within the
fuction,
such as =Average(A5:A20,not A10, not A15)

Thanks



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
mult. w/sheets need identical view when opening (range, mag, cell) Peter Setting up and Configuration of Excel 2 February 12th 07 12:28 AM
Sum a range but exclude and negative values lister_d_000169 Excel Worksheet Functions 2 June 1st 06 02:49 PM
Need to exclude certain cells in a range Bob Smith Excel Worksheet Functions 3 May 5th 06 05:25 PM
Exclude Header from Range? nastech Excel Discussion (Misc queries) 4 December 30th 05 02:49 PM
Pivot Table: Mult Consolidation Ranges MRT Excel Discussion (Misc queries) 2 July 12th 05 04:20 AM


All times are GMT +1. The time now is 05:48 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"