Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default Greater than Less than question!

I'm trying to automate a score sheet for volleyball. With the teams playing
a max of 3 games, I would like to place the scores into there own cells and
compute a winner by a greater than less than formula.

Say the scores are as follows:

Team 1 Team 2
25 18
17 25
14 16

W 1 2
L 2 1

I want that formula to calculate that Team 2 has 2 wins and 1 loss while
Team 1 has 1 win and 2 losses. Can this be done by using only cells (no
"condition" such as greater than 25 since the third game will only go to 15)?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Greater than Less than question!

Assuming Data are in B2:C4
W for Team 1
=IF((B2-C2)0,1,0)+IF((B3-C3)0,1,0)+IF((B4-C4)0,1,0)

L for Team 1
=IF((B3-C3)<0,1,0)+IF((B4-C4)<0,1,0)+IF((B5-C5)<0,1,0)

you can alter the formula for the rest .

Best regards,
Edward


"Robert" wrote:

I'm trying to automate a score sheet for volleyball. With the teams playing
a max of 3 games, I would like to place the scores into there own cells and
compute a winner by a greater than less than formula.

Say the scores are as follows:

Team 1 Team 2
25 18
17 25
14 16

W 1 2
L 2 1

I want that formula to calculate that Team 2 has 2 wins and 1 loss while
Team 1 has 1 win and 2 losses. Can this be done by using only cells (no
"condition" such as greater than 25 since the third game will only go to 15)?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default Greater than Less than question!

Edward I can't thank you enough. It worked!

Here are the formulas used:

=IF((D10-F10)0,1,0)+IF((D11-F11)0,1,0)+IF((D12-F12)0,1,0)
=IF((D10-F10)<0,1,0)+IF((D11-F11)<0,1,0)+IF((D12-F12)<0,1,0)

=IF((F10-D10)0,1,0)+IF((F11-D11)0,1,0)+IF((F12-D12)0,1,0)
=IF((F10-D10)<0,1,0)+IF((F11-D11)<0,1,0)+IF((F12-D12)<0,1,0)

I then wanted to get matches won so I did the following:

=IF((D17-F17)0,1,0)
=IF((D18-F18)0,1,0)

Thanks once again.

Robert

"Edward" wrote:

Assuming Data are in B2:C4
W for Team 1
=IF((B2-C2)0,1,0)+IF((B3-C3)0,1,0)+IF((B4-C4)0,1,0)

L for Team 1
=IF((B3-C3)<0,1,0)+IF((B4-C4)<0,1,0)+IF((B5-C5)<0,1,0)

you can alter the formula for the rest .

Best regards,
Edward


"Robert" wrote:

I'm trying to automate a score sheet for volleyball. With the teams playing
a max of 3 games, I would like to place the scores into there own cells and
compute a winner by a greater than less than formula.

Say the scores are as follows:

Team 1 Team 2
25 18
17 25
14 16

W 1 2
L 2 1

I want that formula to calculate that Team 2 has 2 wins and 1 loss while
Team 1 has 1 win and 2 losses. Can this be done by using only cells (no
"condition" such as greater than 25 since the third game will only go to 15)?

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
If formula: if A1 is greater than B1 and A1 is greater than zero.. Jason Excel Discussion (Misc queries) 2 April 5th 10 06:11 PM
Greater Than/Less Than Question (IF statement?) Bill Excel Worksheet Functions 2 February 16th 08 03:28 PM
Less Than Greater Than Date Question Paperback Writer Excel Discussion (Misc queries) 1 January 22nd 07 07:47 PM
CountIf Greater Than/Find Greater Than Sisilla[_2_] Excel Programming 12 October 6th 06 08:04 PM
Greater Than Less Than Question Paperback Writer Excel Worksheet Functions 5 February 9th 06 03:50 PM


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