+ Reply to Thread
Results 1 to 6 of 6

Error in IF function - miscategorising results

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Error in IF function - miscategorising results

    Hi all - I am using the IF statement below to categorise values as above 2k, 1-2k, 500-1k, 100 to 500 and less than 100.

    However, it is miscategorising the results (saying 1964.39 is in the '500-1k' category for example (see atatched)) so I have obviously done something wrong.

    Can someone correct my rookie error?

    =IF(A1>=2000,"£2k+",IF(A1>2000,"£1-2k",IF(A1>1000,"£500-£1k",IF(A1>500,"£100-500",IF(A1<100,"Under£100")))))

    Ta

    Glayva
    Attached Files Attached Files
    Last edited by Glayva; 09-12-2012 at 08:50 AM. Reason: solved

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Error in IF function - miscategorising results

    You can adapt this LOOKUP function.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Kevin UK; 09-12-2012 at 08:05 AM. Reason: Miss read it, yet again!

  3. #3
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Error in IF function - miscategorising results

    Try this..

    =IF(A1>=2000,"£2k+",IF(A1>1000,"£1-2k",IF(A1>500,"£500-£1k",IF(A1>100,"£100-500",IF(A1<100,"Under£100")))))

  4. #4
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Error in IF function - miscategorising results

    @KevinUK Ta but wouldn't this only work if the value is A1 was either 0,100,500,1000 or 200, not figures between / above these?

  5. #5
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Error in IF function - miscategorising results

    Quote Originally Posted by [email protected] View Post
    Try this..

    =IF(A1>=2000,"£2k+",IF(A1>1000,"£1-2k",IF(A1>500,"£500-£1k",IF(A1>100,"£100-500",IF(A1<100,"Under£100")))))
    Thansk - this fixed it!

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Error in IF function - miscategorising results

    Sould be OK.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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