Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hip
 
Posts: n/a
Default IF & AND statements


I can't quite get it right.

Let me lay it out:

A1--------A2-----A3------A4
Team 1--score--score--team 2
B1--------B2-----B3-------B4
Team 1--score--score--team 2
-------------------------------------c6
-----------------------------------winner

The idea is that you enter the score between 2 teams in A2 & A3 with
the winner being placed in C6. Easy enough.

However this is for soccer and it could go into penalties. That's why
we have Row B in there.

I can't come up with a formula that will say something to the effect
of:

if team 1 wins they go into c6, if team 2 wins they go into c 6, if
it's a tie then refer to row B and do the same thing.


--
hip
------------------------------------------------------------------------
hip's Profile: http://www.excelforum.com/member.php...o&userid=31954
View this thread: http://www.excelforum.com/showthread...hreadid=549033

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian P
 
Posts: n/a
Default IF & AND statements

Try:

=IF(B1=C1,IF(C2B2,D2,A2),IF(B1C1,A1,D1))

Ian

"hip" wrote:


I can't quite get it right.

Let me lay it out:

A1--------A2-----A3------A4
Team 1--score--score--team 2
B1--------B2-----B3-------B4
Team 1--score--score--team 2
-------------------------------------c6
-----------------------------------winner

The idea is that you enter the score between 2 teams in A2 & A3 with
the winner being placed in C6. Easy enough.

However this is for soccer and it could go into penalties. That's why
we have Row B in there.

I can't come up with a formula that will say something to the effect
of:

if team 1 wins they go into c6, if team 2 wins they go into c 6, if
it's a tie then refer to row B and do the same thing.


--
hip
------------------------------------------------------------------------
hip's Profile: http://www.excelforum.com/member.php...o&userid=31954
View this thread: http://www.excelforum.com/showthread...hreadid=549033


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default IF & AND statements

=IF(A2+B2A3+A3,A1,A4)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hip" wrote in message
...

I can't quite get it right.

Let me lay it out:

A1--------A2-----A3------A4
Team 1--score--score--team 2
B1--------B2-----B3-------B4
Team 1--score--score--team 2
-------------------------------------c6
-----------------------------------winner

The idea is that you enter the score between 2 teams in A2 & A3 with
the winner being placed in C6. Easy enough.

However this is for soccer and it could go into penalties. That's why
we have Row B in there.

I can't come up with a formula that will say something to the effect
of:

if team 1 wins they go into c6, if team 2 wins they go into c 6, if
it's a tie then refer to row B and do the same thing.


--
hip
------------------------------------------------------------------------
hip's Profile:

http://www.excelforum.com/member.php...o&userid=31954
View this thread: http://www.excelforum.com/showthread...hreadid=549033



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian P
 
Posts: n/a
Default IF & AND statements

Much more elegant Bob! (even with the typo!!)

"Bob Phillips" wrote:

=IF(A2+B2A3+A3,A1,A4)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hip" wrote in message
...

I can't quite get it right.

Let me lay it out:

A1--------A2-----A3------A4
Team 1--score--score--team 2
B1--------B2-----B3-------B4
Team 1--score--score--team 2
-------------------------------------c6
-----------------------------------winner

The idea is that you enter the score between 2 teams in A2 & A3 with
the winner being placed in C6. Easy enough.

However this is for soccer and it could go into penalties. That's why
we have Row B in there.

I can't come up with a formula that will say something to the effect
of:

if team 1 wins they go into c6, if team 2 wins they go into c 6, if
it's a tie then refer to row B and do the same thing.


--
hip
------------------------------------------------------------------------
hip's Profile:

http://www.excelforum.com/member.php...o&userid=31954
View this thread: http://www.excelforum.com/showthread...hreadid=549033




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default IF & AND statements

I laid it out incorrectly at forts, by columns not rows, and only just
spotted it as I was posting. That's my excuse anyway <G

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ian P" wrote in message
...
Much more elegant Bob! (even with the typo!!)

"Bob Phillips" wrote:

=IF(A2+B2A3+A3,A1,A4)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hip" wrote in

message
...

I can't quite get it right.

Let me lay it out:

A1--------A2-----A3------A4
Team 1--score--score--team 2
B1--------B2-----B3-------B4
Team 1--score--score--team 2
-------------------------------------c6
-----------------------------------winner

The idea is that you enter the score between 2 teams in A2 & A3 with
the winner being placed in C6. Easy enough.

However this is for soccer and it could go into penalties. That's why
we have Row B in there.

I can't come up with a formula that will say something to the effect
of:

if team 1 wins they go into c6, if team 2 wins they go into c 6, if
it's a tie then refer to row B and do the same thing.


--
hip


------------------------------------------------------------------------
hip's Profile:

http://www.excelforum.com/member.php...o&userid=31954
View this thread:

http://www.excelforum.com/showthread...hreadid=549033








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hip
 
Posts: n/a
Default IF & AND statements


It worked, thanks Bob and Ian!


--
hip
------------------------------------------------------------------------
hip's Profile: http://www.excelforum.com/member.php...o&userid=31954
View this thread: http://www.excelforum.com/showthread...hreadid=549033

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
Creating my own user defined function help statements Craig Excel Worksheet Functions 2 February 22nd 06 04:51 PM
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Linking two IF statements together trixma Excel Discussion (Misc queries) 2 September 29th 05 06:07 AM
Logical ELSE statements Ruth Excel Discussion (Misc queries) 2 June 23rd 05 03:23 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 07:17 AM.

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"