A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If Function



 
 
Thread Tools Display Modes
  #1  
Old September 25th, 2008, 08:10 PM posted to microsoft.public.excel.worksheet.functions
trnivens
external usenet poster
 
Posts: 2
Default If Function

I have a spreadsheet for our office football pool. I put in everyone's picks
and if the team they pick matches the winner they get a point and then it
totals those points. My problem is, that before the games are played, the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team, if
the games haven't been played yet and the cells for D2 &F2 are empty it will
put in the team in cell F2. I would like for it to be blank unless I have a
score entered. How would I accomplish this?
  #2  
Old September 25th, 2008, 08:29 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default If Function

=IF(COUNT(D2,F2)=2,IF(D2F2,A2,C2),"")

Are you sure that you don't need another condition for a drawn game?
--
David Biddulph

"trnivens" wrote in message
...
I have a spreadsheet for our office football pool. I put in everyone's
picks
and if the team they pick matches the winner they get a point and then it
totals those points. My problem is, that before the games are played, the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team, if
the games haven't been played yet and the cells for D2 &F2 are empty it
will
put in the team in cell F2. I would like for it to be blank unless I have
a
score entered. How would I accomplish this?



  #3  
Old September 25th, 2008, 08:31 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default If Function

Try,

=IF(COUNT(D2,F2)2,"",IF(D2F2,A2,C2))

Mike

Mike

"trnivens" wrote:

I have a spreadsheet for our office football pool. I put in everyone's picks
and if the team they pick matches the winner they get a point and then it
totals those points. My problem is, that before the games are played, the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team, if
the games haven't been played yet and the cells for D2 &F2 are empty it will
put in the team in cell F2. I would like for it to be blank unless I have a
score entered. How would I accomplish this?

  #4  
Old September 25th, 2008, 08:57 PM posted to microsoft.public.excel.worksheet.functions
trnivens
external usenet poster
 
Posts: 2
Default If Function

That worked, I kept trying to put in 2 IF functions, I didn't think about
count function.

THANKS!!

"Mike H" wrote:

Try,

=IF(COUNT(D2,F2)2,"",IF(D2F2,A2,C2))

Mike

Mike

"trnivens" wrote:

I have a spreadsheet for our office football pool. I put in everyone's picks
and if the team they pick matches the winner they get a point and then it
totals those points. My problem is, that before the games are played, the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team, if
the games haven't been played yet and the cells for D2 &F2 are empty it will
put in the team in cell F2. I would like for it to be blank unless I have a
score entered. How would I accomplish this?

  #5  
Old September 25th, 2008, 09:20 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default If Function

Depends upon what type of "football" we're talking about. In American
professional football (NFL), there have been only 3 ties since 1990. Probably
not worth added programming.

What is called soccer here (and football almost everywhere else) is a completely
different story...

David Biddulph wrote:
=IF(COUNT(D2,F2)=2,IF(D2F2,A2,C2),"")

Are you sure that you don't need another condition for a drawn game?
--
David Biddulph

"trnivens" wrote in message
...
I have a spreadsheet for our office football pool. I put in everyone's
picks
and if the team they pick matches the winner they get a point and then it
totals those points. My problem is, that before the games are played, the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team, if
the games haven't been played yet and the cells for D2 &F2 are empty it
will
put in the team in cell F2. I would like for it to be blank unless I have
a
score entered. How would I accomplish this?



  #6  
Old September 25th, 2008, 10:13 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default If Function

Ah! Two nations divided by a common language. :-)
--
David Biddulph

"Glenn" wrote in message
...
Depends upon what type of "football" we're talking about. In American
professional football (NFL), there have been only 3 ties since 1990.
Probably not worth added programming.

What is called soccer here (and football almost everywhere else) is a
completely different story...

David Biddulph wrote:
=IF(COUNT(D2,F2)=2,IF(D2F2,A2,C2),"")

Are you sure that you don't need another condition for a drawn game?
--
David Biddulph

"trnivens" wrote in message
...
I have a spreadsheet for our office football pool. I put in everyone's
picks
and if the team they pick matches the winner they get a point and then
it
totals those points. My problem is, that before the games are played,
the
spreadsheet puts a winner in the column based off my formula:
=IF(D2F2,A2,C2), D2 being the first team and F2 being the second team,
if
the games haven't been played yet and the cells for D2 &F2 are empty it
will
put in the team in cell F2. I would like for it to be blank unless I
have a
score entered. How would I accomplish this?



 




Thread Tools
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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.