+ Reply to Thread
Results 1 to 6 of 6

Another way instead of using IF function for more than 7

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Unhappy Another way instead of using IF function for more than 7

    Hi,

    I have 2 column of information. Column A and B with 200 sets of data.

    =IF(D14=A27,Sheet1!B27, IF(D14=A28,Sheet1!B28, IF(D14=A29,Sheet1!B29, IF(D14=A30,Sheet1!B30))))

    Above is the current formula I have but the IF function can only be up to 7. Is there another way to do this so that I can do that with 200 sets of data?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,988

    Re: Another way instead of using IF function for more than 7

    Maybe:

    =IFERROR(VLOOKUP(D14, $A$1:$B$200, 2, FALSE),"")

    or
    =IFERROR(VLOOKUP(D14, $A$27:$B$226, 2, FALSE),"")



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-23-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Another way instead of using IF function for more than 7

    In 2013:
    =ifna(vlookup(d14,a:b,2,),"")

  4. #4
    Registered User
    Join Date
    10-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Another way instead of using IF function for more than 7

    Thank You!! you guys are amazing!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Another way instead of using IF function for more than 7

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
    For the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Another way instead of using IF function for more than 7

    Thanks vlady! I was gonna do that but I had to attend to something else suddenly. :D

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,988

    Re: Another way instead of using IF function for more than 7

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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