+ Reply to Thread
Results 1 to 4 of 4

Help with multiple if function

  1. #1
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Help with multiple if function

    Hi,

    I want to write a formula that says, if cell T1 falls in the range of 0-336, then write 1, if it falls between 337-503, then write 2, 504--671,3,672-839,4,840-950,5,951-1118,6,1119-1229,7,1230-1398,8,1399-1454,9,over1455,10

    Is there a formula that can do this?

    any help would be appreciated. thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Help with multiple if function

    Here, try this:

    =LOOKUP(A1,{0,337,504,672,840,951,1119,1230,1399,1455},{1,2,3,4,5,6,7,8,9,10})

  3. #3
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Help with multiple if function

    Thanks mate, just changed a1 to t1 and it works perfectly.

    thank you again

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Help with multiple if function

    Only as a matter of interest. This can be handy to use under some conditions.

    You can split the ifs into two (or more) cells
    Say in B1 and C1
    In B1
    Please Login or Register  to view this content.
    In C1
    Please Login or Register  to view this content.

    Go with zbor in this case

+ 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