Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default League Table follow up

Hi
Although this is posted as a new thread it is really a supplementary
question a reply fro0m Mike H.
I show again an extract from my worksheet and the formula to get the draws
from the fixtures.

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6=$D$1:$D$6))+S UMPRODUCT(($B$1:$B$6=E1)*($D$1:$D$6=$C$1:$C$6))

My question is that this formula works fine for games that have already been
played & results entered in Columns C&D, however also assumes that unplayed
games where no results have been entered are also draws and so can you
suggest a simple amendment to the formula to disregard games where no result
has been entered.

Col A Col B Col C Col D Col E Col F
Team A Team B 3 2 Team A
Team B
Team C Team D 2 1 Team C
Team A Team C 0 0 Team D
Team D Team B 1 2
Team D Team A 2 1
Team B Team C
Many thanks for your help & appologies for not spotting this at the time.
Al

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default League Table follow up

Hi,

I think we can assume that if there is no score in one of the columns then
the match hasn't been played so there will be no score in the second so in
reality can probably get away with just checking one column (C in this case)

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6<"")*($C$1:$C $6=$D$1:$D$6))+SUMPRODUCT(($B$1:$B$6=E1)*($C$1:$C$ 6<"")*($D$1:$D$6=$C$1:$C$6))

Blank cells will not now evaluate as a draw. The formula has line wrapped in
this post, it's all one line.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"gramps" wrote:

Hi
Although this is posted as a new thread it is really a supplementary
question a reply fro0m Mike H.
I show again an extract from my worksheet and the formula to get the draws
from the fixtures.

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6=$D$1:$D$6))+S UMPRODUCT(($B$1:$B$6=E1)*($D$1:$D$6=$C$1:$C$6))

My question is that this formula works fine for games that have already been
played & results entered in Columns C&D, however also assumes that unplayed
games where no results have been entered are also draws and so can you
suggest a simple amendment to the formula to disregard games where no result
has been entered.

Col A Col B Col C Col D Col E Col F
Team A Team B 3 2 Team A
Team B
Team C Team D 2 1 Team C
Team A Team C 0 0 Team D
Team D Team B 1 2
Team D Team A 2 1
Team B Team C
Many thanks for your help & appologies for not spotting this at the time.
Al

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default League Table follow up

Hi,
try

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6=$D$1:$D$6)*($ C$1:$C$6<"")*($D$1:$D$6<""))+SUMPRODUCT(($B$1:$B $6=E1)*($D$1:$D$6=$C$1:$C$6)*($C$1:$C$6<"")*($D$1 :$D$6<""))


"gramps" wrote:

Hi
Although this is posted as a new thread it is really a supplementary
question a reply fro0m Mike H.
I show again an extract from my worksheet and the formula to get the draws
from the fixtures.

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6=$D$1:$D$6))+S UMPRODUCT(($B$1:$B$6=E1)*($D$1:$D$6=$C$1:$C$6))

My question is that this formula works fine for games that have already been
played & results entered in Columns C&D, however also assumes that unplayed
games where no results have been entered are also draws and so can you
suggest a simple amendment to the formula to disregard games where no result
has been entered.

Col A Col B Col C Col D Col E Col F
Team A Team B 3 2 Team A
Team B
Team C Team D 2 1 Team C
Team A Team C 0 0 Team D
Team D Team B 1 2
Team D Team A 2 1
Team B Team C
Many thanks for your help & appologies for not spotting this at the time.
Al

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default League Table follow up

Thanx guys works a treat
Al

"gramps" wrote:

Hi
Although this is posted as a new thread it is really a supplementary
question a reply fro0m Mike H.
I show again an extract from my worksheet and the formula to get the draws
from the fixtures.

=SUMPRODUCT(($A$1:A$6=E1)*($C$1:$C$6=$D$1:$D$6))+S UMPRODUCT(($B$1:$B$6=E1)*($D$1:$D$6=$C$1:$C$6))

My question is that this formula works fine for games that have already been
played & results entered in Columns C&D, however also assumes that unplayed
games where no results have been entered are also draws and so can you
suggest a simple amendment to the formula to disregard games where no result
has been entered.

Col A Col B Col C Col D Col E Col F
Team A Team B 3 2 Team A
Team B
Team C Team D 2 1 Team C
Team A Team C 0 0 Team D
Team D Team B 1 2
Team D Team A 2 1
Team B Team C
Many thanks for your help & appologies for not spotting this at the time.
Al

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
League table gramps Excel Discussion (Misc queries) 3 January 28th 10 02:54 PM
league table? jon s New Users to Excel 2 October 15th 08 05:23 PM
league table [email protected] Excel Worksheet Functions 2 September 22nd 07 02:16 PM
league table birdoo2 Excel Discussion (Misc queries) 1 June 19th 06 11:28 AM
League Table kathleen.smith10 Excel Worksheet Functions 2 March 28th 05 01:00 PM


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