+ Reply to Thread
Results 1 to 3 of 3

Problem with Nested If statement

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Problem with Nested If statement

    Hi,

    I am having difficulties getting my nested If statement to work. I have been through it countless times and cannot for the life of me work out what is wrong.

    What I want to do is pretty easy and I have done it before.

    I have a whole lot of numbers in D2, I would like to categorise them as such; < 1000m, 1000- 2000 m, 2000-3000 m, 3000-4000 m, 4000- 5000m and > 5000 m.

    I have used this formular but it keeps returning an error

    =IF(D2<1000, "< 1000 m",IF(D2<2000, “1000-2000 m”,IF(D2<3000,”2000-3000 m”,IF(D2<4000,”3000-4000 m”,IF(D2<5000,”4000-5000 m”,IF(D2>=5000,”>5000 m”,”No”))))))

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem with Nested If statement

    Perhaps.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Problem with Nested If statement

    Thanks very much for your help Norie.

    Worked perfectly

+ 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. Nested IF statement problem with < and >
    By rnomis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-24-2014, 04:59 PM
  2. Nested IF statement problem
    By Deuce9er in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-03-2013, 11:52 AM
  3. Problem with nested if statement
    By concatch in forum Excel General
    Replies: 4
    Last Post: 03-06-2012, 12:52 PM
  4. Nested IF Statement problem
    By Badvgood in forum Excel General
    Replies: 11
    Last Post: 03-03-2010, 11:23 AM
  5. Nested if statement problem!
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2005, 08:15 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