Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Average non contiguous row

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Average non contiguous row

First, these are non-contiguous columns not rows: second, are they alternate
D,F,H ,J etc?

"Scott Kieta" wrote:

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Average non contiguous row

You are right these are columns, and yes these are alternate columns. The
main goal is to make sure the formula omits those zero values when doing the
average calculation.

"Toppers" wrote:

First, these are non-contiguous columns not rows: second, are they alternate
D,F,H ,J etc?

"Scott Kieta" wrote:

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Average non contiguous row

try:

=AVERAGE(IF(MOD(COLUMN($D$3:$M$3),2)=0,IF($D$3:$M$ 30,$D$3:$M$3)))

Change ranges to suit

Enter with Ctrl+shift +Enter (array formula)

"Scott Kieta" wrote:

You are right these are columns, and yes these are alternate columns. The
main goal is to make sure the formula omits those zero values when doing the
average calculation.

"Toppers" wrote:

First, these are non-contiguous columns not rows: second, are they alternate
D,F,H ,J etc?

"Scott Kieta" wrote:

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Average non contiguous row

This works, excellent, thank you for your help. I have never used the MOD or
COLUMN functions before, if you don't mind can you give a short response on
those uses?

Thank You

"Toppers" wrote:

try:

=AVERAGE(IF(MOD(COLUMN($D$3:$M$3),2)=0,IF($D$3:$M$ 30,$D$3:$M$3)))

Change ranges to suit

Enter with Ctrl+shift +Enter (array formula)

"Scott Kieta" wrote:

You are right these are columns, and yes these are alternate columns. The
main goal is to make sure the formula omits those zero values when doing the
average calculation.

"Toppers" wrote:

First, these are non-contiguous columns not rows: second, are they alternate
D,F,H ,J etc?

"Scott Kieta" wrote:

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Average non contiguous row

COLUMN returns the column number so column D=4, E=5 etc.

The MOD function returns a remainder after the division by the divisor, in
this case 2. So all EVEN colums will have a remainder of 0 (if we divide by
2) whereas ODD columns will have a remainder of 1.

HTH

"Scott Kieta" wrote:

This works, excellent, thank you for your help. I have never used the MOD or
COLUMN functions before, if you don't mind can you give a short response on
those uses?

Thank You

"Toppers" wrote:

try:

=AVERAGE(IF(MOD(COLUMN($D$3:$M$3),2)=0,IF($D$3:$M$ 30,$D$3:$M$3)))

Change ranges to suit

Enter with Ctrl+shift +Enter (array formula)

"Scott Kieta" wrote:

You are right these are columns, and yes these are alternate columns. The
main goal is to make sure the formula omits those zero values when doing the
average calculation.

"Toppers" wrote:

First, these are non-contiguous columns not rows: second, are they alternate
D,F,H ,J etc?

"Scott Kieta" wrote:

I was looking to do an average in non contigious rows using time but ignoring
zeros, so I used formula:
=Average(if((D17,F17<0),(D17,F17),"")) but comes up #VALUE and when
utilizing CTRL+SHIFT+ENTER value returned is same D17=0:09 (custom cell
h:mm) and F17=0 (custom cell: h:mm), Is there a formula to complete this for
non contigiuos row?

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
Contiguous Line Count Jim Thomlinson Excel Discussion (Misc queries) 0 November 29th 06 09:38 PM
average values in non-contiguous cells, ignoring 0 values RWormdahl Excel Worksheet Functions 3 October 30th 06 01:06 AM
contiguous reference jjeff Excel Discussion (Misc queries) 4 August 10th 06 10:07 PM
SUMIF non-contiguous range Lady_Olara Excel Worksheet Functions 13 January 10th 06 09:33 PM
Average Non-Contiguous numbers Teri Excel Worksheet Functions 1 January 20th 05 08:33 PM


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