+ Reply to Thread
Results 1 to 6 of 6

Thread: vlookup excel using the OR statement

  1. #1
    Registered User
    Join Date
    08-06-2010
    Location
    London England
    MS-Off Ver
    Excel 2007
    Posts
    8

    vlookup excel using the OR statement

    Hi

    I have a vlookup which is as follows:- =VLOOKUP("Detailed Electronic Drawings",B10:K94,2,FALSE)

    However I now wish to include an "OR" statement of "Detailed Mechanical Drawings" which is also located in the same B10:K94 defined area, unfortunately I am fairly new to this and can't seem to work out how?

    Any help is most gratefully appreciated

    Many Thanks
    Neil

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,592

    Re: vlookup excel using the OR statement

    Perhaps something on these lines

    =IF(ISNA(VLOOKUP("Detailed Electronic Drawings",B10:K94,2,FALSE)),VLOOKUP("General Electronic Drawings",B10:K94,2,FALSE), "")

    However as sample workbook would be of great assistance in solving this for you.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: vlookup excel using the OR statement

    Given 2007 you could utilise IFERROR

    =IFERROR(VLOOKUP("Detailed Electronic Drawings",B10:K94,2,FALSE),VLOOKUP("Detailed Mechanical Drawings",B10:K94,2,FALSE))
    quite a few superfluous columns in the VLOOKUP ranges mind you...

  4. #4
    Registered User
    Join Date
    08-06-2010
    Location
    London England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: vlookup excel using the OR statement

    Thanks for your comments, unfortunately both responses have the same issue, they only work with the first part of the lookup.

    I have attached a stripped down version of the spreadsheet if that helps.

    Kind Regards
    Neil
    Attached Files Attached Files

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

    Re: vlookup excel using the OR statement

    Sorry I can't follow the logic of your question.

    K94 in your sample seems a rather random cell row, is this range, B10:K94, correct?

    What do you mean by this?
    they only work with the first part of the lookup
    What is the next part of the lookup?
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  6. #6
    Registered User
    Join Date
    08-06-2010
    Location
    London England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: vlookup excel using the OR statement

    Hi Marcol,
    Sorry I was in a rush and didn't really explain myself.

    Firstly the vlookup will be placed in for this question lets say cell C255 and lets say I want this to lookup "Detailed Electronic Drawings" or "Detailed Mechanical Drawings" on row 23 & 24

    Now a bit of background info, this is a stripped down old test spreadsheet and does not fully represent the latest version, this is the reason for B10:K94 not tallying up in the attached.

    The updated version is way to big to upload.

    Now back to rows 23 & 24, if you click in say D23 and select "y" in the dropdown, you will notice C23 changes to yes. Now I want to be able to vlookup these rows 23 & 24 and if either of them have yes, then the vlookup cell to update.

    Neither of the two options provided does this?

    Many thanks in advance
    Neil

+ 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.2.0