+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Nesting IF Statement

  1. #1
    Registered User
    Join Date
    06-29-2011
    Location
    NZ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Nesting IF Statement

    Hi
    I am trying to do a nested if statement that shows the following:
    value under 12 = 1097
    value between 12 & 24 = 643
    value 24 & 36 = 97
    value above 36 = 0

    this is the formula I tried.
    =IF(G23<12,1097,IF(G23<24>12,643,IF(G23<36>24,97,IF(G23>36,0))))

    The first two arguments work but the second two return an incorrect value ie if the value is 12 = 1097 and is correct, 23 = 643 and is correct, 34 = 643 and is incorrect, 38 = 643 and is incorrect.

    Does anyone have any ideas why?

    thanks

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Nesting IF Statement

    try:
    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Nesting IF Statement

    Hi anitad and welcome to the forum.

    Try this
    Please Login or Register  to view this content.
    I don't think excel knows how to deal with this type of notation
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    06-29-2011
    Location
    NZ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Re: Nesting IF Statement

    thanks that works perfectly.

    Really appreciate your help

+ 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