+ Reply to Thread
Results 1 to 8 of 8

Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Smile Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    I have two sheets of raw data on one workbook. The goal is to match the "Rep Name" in sheet one: "Master", Column E, Rows 3-138 to "Delivery Name" in sheet two "Tracking Numbers", Column H, Rows 2-22. If there is a match, then I would like the cell to return the "Tracking Number" found in sheet two"Tracking Numbers", Column I, Rows 2-22 and place it into sheet one "Master", Column N, Rows 2-22. If there is no match, then I would like the field to be left blank.

    I've eliminated duplicate names on the "Master" sheet so it should be looking 1:1. Sheet two "Tracking Numbers" is attached to a query that pulls data from Dynamics AX 2009, so the number of rows will change in the future depending on the number of tracking numbers. For the purposes of figuring this problem out, the connection to the database has been disconnected.


    I believe I need a combination of MATCH, IF and VLOOKUP.


    Here's how I verbally work through what I need:
    IF the rep name = delivery name, then return the tracking number.

    If rep name does not equal delivery name, then return blank space.

    This is the formula I worked out, but I'm missing something somewhere (obviously):IF((MATCH(E23,'Tracking Numbers'!$H$2:$H$22,8)),VLOOKUP(E23,'Tracking Numbers'!$H$2:$H$22,9,FALSE),0),'Tracking Numbers'!$I$2:$I$22," "))

    Any input and assistance is greatly appreciated. I think I have the equation correct in my brain, but I can't get the formulas to mimic my logic.

    Thank you in advance!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    perhaps it would be easier to help you if you uploaded a sample workbook, showing what data you are working with, a few examples of what your expected outcome would be, and how you would arrive at that (remove any confidential info if necessary).

    Add a File - click 'Go Advanced' (next to 'Post Quick Reply'), scroll down until you see 'Manage Attachments', click that and select 'Add Files' (top right corner). click 'Select files', find your file, click the file, click 'Upload',when it shows up in the bottom area, click 'Done" bottom right. click 'Submit Reply'

    Also, your "=IF(Match(....),..." part of the equation doesn't return a 'TRUE'/'FALSE' answer to work with...make the match '=' some condition, then you'll get a True/false for the if to work with.

    Hope that helps
    Last edited by dredwolf; 11-16-2012 at 10:45 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    11-16-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    I hope the attachment works--

    Simplifying the equation:

    If MasterA = TrackingNumbersA, then take data from TrackingNumbersB and show in MasterB.

    If MasterA does not equatl TrackingNumbersA, show blank or NA in MasterB.

    Let me know if there is any more info I can provide, and thank you in advance!
    Attached Files Attached Files

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    I ALSO need some expected output in sample...I just did a quick eyeball scan for names and seem to see most (if not all), NOT in the list, so an expected result would definitely help

  5. #5
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    Dylan,

    Not entirely sure I understood your last post... Will the attached help? Just copy the formula in cell B2 (on the "Master" tab) down the length of the data in col. A.

    If I'm on the wrong track let me know and I'll give it another go.

    Steve
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-16-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    Okay, I did a VLOOKUP formula to get the results (except I'd prefer the #NA to be blank, but I think I have the IF formula for that written elsewhere).

    I guess were I'm getting confused is the actual spreadsheet contains a lot more data, which I usually hide, so maybe I just extract the data I need, paste the info to a new spreadsheet, and do a simple VLOOKUP??

    Maybe I'm overthinking the whole thing?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-16-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    Are you a wizard of some kind? It works! I think I was over complicating it in my mind because the original spreadsheets has more information than necessary to complete the task at hand. I should just keep it simple, (stupid)!

    I'm going to test it on the master spreadsheet and see if I can apply it.

    Thank you!

  8. #8
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Nesting Excel formulas- VLOOKUP, IF,MATCH = confused

    Excellent! If you have any questions about the "Table" in the 'Tracking Numbers' sheet and how it is used in the formula - hit me back.

+ 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