+ Reply to Thread
Results 1 to 4 of 4

More than 7 if statments

  1. #1
    Registered User
    Join Date
    01-24-2008
    Posts
    2

    More than 7 if statments

    =IF(C6=8224,243,IF(C6=8239,248,IF(C6=8228,247,IF(C6=8241,260,IF(C6=8242,281,IF(C6=8245,270,IF(C6=8252,354,IF(C6=8261,288,))))))))


    I am trying to assign values based on model numbers. This formula works fine, but it won't let me add anymore than 8.


    I still need to add about 15 more model numbers any help would be great.

    thanks
    Last edited by VBA Noob; 01-24-2008 at 05:40 PM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    This link may help?

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


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =LOOKUP(C6,{8224,8228,8239,8241,8245,8242,8261,8252},{243,247,248,260,270,281,288,354})
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    01-24-2008
    Posts
    2
    Thanks that helps out alot

+ 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