+ Reply to Thread
Results 1 to 6 of 6

IF formula problem

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    1

    IF formula problem

    Hi all. I'm relatively inexperienced in Excel so apologies if this is simple and the solution is obvious, anyways... I'm setting up a basic sheet for a predict the match attendance competition on a football (English) forum. Scoring is basic, spot on =100 points, within 5=50, 10=25, 20=20, 30=15, 40=10, within 50=5, more than 50 away = big fat zero.

    An example of 4 cells, C2 to C5...
    C2 - The actual match attendance
    C3 - Player's prediction
    C4 - Difference between prediction and attendance
    C5 - Score for that prediction based on the difference

    so for C4 to always show a positive number for difference, and to only display a number if a prediction has been made I have entered
    =IF(C3="",,ABS(C2-C3))

    and in C5 to give the correct score when the attendance and prediction have been entered into C2 and C3 I have
    =IF(C4<1,"100",IF(C4<6,"50",IF(C4<11,"25",IF(C4<21,"20",IF(C4<31,"15",IF(C4<41,"10",IF(C4<51,"5",IF(C4>50,"0"))))))))

    This works when required data is entered into C2 and C3, but my issue is that when no prediction and attendance have been entered in C2 and C3, then C5 displays 100 for a spot on prediction because C4 is '0'.

    So... How do I make it so that C5 only displays a score when a prediction has been made, as I have done with C4??? By trying to do the same as I have in C4 with =IF(C3="",, at the start it throws up an error.

    Any help would be much appreciated, thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: IF formula problem

    Hi
    The issue you have is that you can only have a maximum of seven nested IF statements in a single formula and you have reached that.
    Tony

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: IF formula problem

    Hi,

    have you thought about maybe using compound logical 'IF' - that is, use 'AND' or 'OR' e.g. =IF(OR(E2>3,AND(D2="Actual",C2>=10)),1000,0) I know this example has nothing to do with your numbers of cell references but it may help you so you don't use so many nested IF statements

    Cheers

  4. #4
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: IF formula problem

    i wish to point out the if nest function is for 7 ifs is only applicable to ms office 2003. For higher version, i think that it supports 64 ifs

  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: IF formula problem

    I have just read on another thread this response in reference to Nested IFs.

    For ways around the limit have a look at

    http://www.cpearson.com/excel/nested.htm

  6. #6
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: IF formula problem

    Thanks for the correction - I had forgotten about the increase in 2007/2010.
    Tony

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  2. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  3. Formula problem
    By angie69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2012, 10:13 AM
  4. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  5. [SOLVED] Formula Problem
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1