+ Reply to Thread
Results 1 to 8 of 8

help needed to write a vlookup, match or combination of both formula

  1. #1
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    help needed to write a vlookup, match or combination of both formula

    Hi there I have the following issue I need some help with

    I have a list in column A sheet4
    A table in Sheet3 B2:C11
    Another table in Sheet2 B2:C11

    I currently have the following formula in S2 "=IF(Q2="","",VLOOKUP(Q2,Sheet2!$B$2:$C$11,2,TRUE))" that work well. Now I need to modify it or re-write it for the below conditions.

    What I am looking to do is write a formula in S2

    I want to lookup a value in L2 against a list in column A sheet4.

    If a match is found then lookup Q2 in the table in sheet3 B2:C11 column C

    If a match is not found then lookup Q2 in table in sheet2 B2:C11 column C

    Any assistance will be greatly appreciated.

    Thanks in advance

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: help needed to write a vlookup, match or combination of both formula

    Can you post a spreadsheet. it'd be easier than tryng to reconstruct what you've already done...

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: help needed to write a vlookup, match or combination of both formula

    Glenn Kennedy
    Please find a sample data attached
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: help needed to write a vlookup, match or combination of both formula

    S2=IF(Q2="","",IF(ISNUMBER(MATCH(L2,Sheet4!$A$1:$A$27,0)),VLOOKUP($Q2,Table33[[DURATION]:[CODE]],2,1),VLOOKUP($Q2,Table3[[DURATION]:[CODE]],2,1)))
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: help needed to write a vlookup, match or combination of both formula

    Hi there. Back again. take a look at this.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: help needed to write a vlookup, match or combination of both formula

    Thanks a million nflsales - that did the trick

  7. #7
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: help needed to write a vlookup, match or combination of both formula

    thanks as well Glenn Kennedy - both options works well

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: help needed to write a vlookup, match or combination of both formula

    You're welcome & thanks for the Reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup or Index Match Formula Needed
    By artiststevens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2015, 01:09 AM
  2. Macro code needed for combination of (If,Countif,vlookup)
    By Dharmadme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2014, 03:58 PM
  3. [SOLVED] Vlookup,Match,Indirect combination formula
    By deepanc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2013, 07:02 PM
  4. Formula needed for referencing column values. IF, MATCH, VLookup?
    By Oil Depot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2013, 04:52 PM
  5. Nested VLookup, Match Formula Help Needed
    By jealkon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 02:18 PM

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