Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Problem using the IF function

I am currently setting up a league table and fixture list for a football league. I have been able to set up my spreadsheet to calculate wins and losses however I am unable to calculate draws!!
Using the IF function I can detect if the score of the game was a draw, HOWEVER if there is NO DATA of any kind in the cells being examined a draw will still be counted.

eg:
A1 NO DATA ENTERED/BLANK
B1 NO DATA ENTERED/BLANK
C1 =IF(A1-B1=0,1,0)

This returns 1point even though I have no results for this match inputted. Can anyone help with this problem?
  #2   Report Post  
Junior Member
 
Posts: 3
Default

Try this

=IF(AND(A1="",B1=""),"",IF(A1-B10,1,0))

It will give blank if blank
1 if a1 bigger than b1
0 if b1 bigger than a1

Hope that helps.
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
function problem Scp Excel Worksheet Functions 1 August 14th 09 07:27 PM
Problem with IF function FrozenRope Excel Worksheet Functions 3 November 25th 08 01:08 AM
MAX / MIN function problem [email protected] Excel Discussion (Misc queries) 4 April 13th 08 02:20 AM
Problem with IRR function Keith Excel Worksheet Functions 2 May 21st 07 01:40 PM
FV Function Problem TerryG Excel Worksheet Functions 3 June 13th 05 09:26 PM


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