Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > Horse Race Betting Systems
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th June 2006, 10:43 AM
Twodogs Twodogs is offline
Member
 
Join Date: Jan 1970
Posts: 221
Question Excel help please??

Good Morning,

I am trying something new and I am unsure it can be be done but worth asking all the same.

What I have is 3 columns with numbers from 0 to 24. What I want to do is in a fourth column have columns 1 to 3 added together and devided by 3 to get a average. But when one of the columns has a 0 I don't want to include it in the calculation. So if there are only two columns with numbers 1 to 24 I would like to only devide by 2 rather than 3. Hope that makes sense. Can it be done??

Thanks
Twodogs
Reply With Quote
  #2  
Old 13th June 2006, 11:39 AM
jfc jfc is offline
Member
 
Join Date: Jan 1970
Location: Sydney
Posts: 402
Default

=sum(A1:C1)/countif(A1:C1, ">0")
Reply With Quote
  #3  
Old 13th June 2006, 12:03 PM
Twodogs Twodogs is offline
Member
 
Join Date: Jan 1970
Posts: 221
Thumbs up

Thanks JFC

Works a treat!! You beauty

Twodogs
Reply With Quote
  #4  
Old 13th June 2006, 12:33 PM
jfc jfc is offline
Member
 
Join Date: Jan 1970
Location: Sydney
Posts: 402
Default

Quote:
Originally Posted by Twodogs
Thanks JFC

Works a treat!! You beauty

Twodogs


=TwoDogs/Two

Another handy tip for circumventing the evil 3-letter word "***".
Reply With Quote
  #5  
Old 13th June 2006, 03:31 PM
Twodogs Twodogs is offline
Member
 
Join Date: Jan 1970
Posts: 221
Question

Following on the same track as above still 3 columns but I want to only add the 2 highest columns together then average them. Can that be done easily? Obviously there still could be a 0 in one or more columns.

Twodogs
Reply With Quote
  #6  
Old 13th June 2006, 03:40 PM
jfc jfc is offline
Member
 
Join Date: Jan 1970
Location: Sydney
Posts: 402
Default

Quote:
Originally Posted by Twodogs
Following on the same track as above still 3 columns but I want to only add the 2 highest columns together then average them. Can that be done easily? Obviously there still could be a 0 in one or more columns.

Twodogs


=sum(a1:c1)-min(a1:c1)

or

=max(a1:c1)+median(a1:c1)
Reply With Quote
  #7  
Old 13th June 2006, 04:23 PM
Twodogs Twodogs is offline
Member
 
Join Date: Jan 1970
Posts: 221
Question

Sorry JFC

It doesn't work. Problem is I can have just one column with a figure above 0 and the other two are 0. The example below is the sort of data I have in the three columns. Just want add the two highest columns and devide by 2.

46, 0, 0
48,46,42
54,42,36

Twodogs

Last edited by Twodogs : 13th June 2006 at 04:34 PM.
Reply With Quote
  #8  
Old 13th June 2006, 04:40 PM
jfc jfc is offline
Member
 
Join Date: Jan 1970
Location: Sydney
Posts: 402
Default

Quote:
Originally Posted by Twodogs
Sorry JFC

It doesn't work. Problem is I can have just one column with a figure above 0 and the other two are 0. The example below is the sort of data I have in the three columns. Just want add the two highest columns and devide by 2.

46, 0, 0
48,46,42
54,42,36

Twodogs


=if( median(a1:c1)>0,(sum(a1:c1)-min(a1:c1))/2,max(a1:c1))

Try asking the right question.

Is this your school homework?
Reply With Quote
  #9  
Old 13th June 2006, 04:47 PM
Twodogs Twodogs is offline
Member
 
Join Date: Jan 1970
Posts: 221
Default

Thanks JFC

Sorry I will put my old head in the correct gear when I ask questions in the future as I do understand if you don't make it clear what you need it can be very hard to help out. I apprecate your time today JFC.

Twodogs
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 04:44 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655