+ Reply to Thread
Results 1 to 10 of 10

Return Info from different tab, from second set of matched data

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Return Info from different tab, from second set of matched data

    I'm working on a Bill of Materials master file and trying to set up a Cover Sheet that will allow us to Input the BOM# and return the information we want to see.
    I Have the formula set up for identifying the right tab, and bringing back the different information we want (Batter, filling, crust, topping), but some items have 2 fillings, or 2 toppings. I can not get the formula to return me the information from the second filling or topping.


    See next post by me for the files
    Last edited by SSwwet2018; 01-24-2019 at 05:52 PM. Reason: update

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Return Info from different tab, from second set of matched data

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Re: Return Info from different tab, from second set of matched data

    Ahh, thank you.
    here is the sample file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Re: Return Info from different tab, from second set of matched data

    Bump, anyone have some insight on how to do this?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Return Info from different tab, from second set of matched data

    Sorry - I did look at the time, but couldn't make head nor tail of what you are trying to do.

  6. #6
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Re: Return Info from different tab, from second set of matched data

    Trying to get my formula to return me the second match, instead of the first.

    Right now it will give me the first Filling

    I need Filling 2, to return me the second filling data from the other tab

  7. #7
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Re: Return Info from different tab, from second set of matched data

    Solved it!!!!!!!!!!!!!!!!!!!!!!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Return Info from different tab, from second set of matched data

    Great! Please, for the benefit of others and edification of all, tell us how you did it.

  9. #9
    Registered User
    Join Date
    01-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    6

    Re: Return Info from different tab, from second set of matched data

    A normal Vlookup with indirect works for the first match
    The second match had to use an Index instead.

    =IFERROR(INDEX(INDIRECT("'"&$A$1&"'!$B:$B"),SMALL(IF(LEFT($B$12,2)=LEFT(INDIRECT("'"&$A$1&"'!$A:$A"),2),ROW(INDIRECT("'"&$A$1&"'!$A:$A"))-ROW($A$1)+1),2)),"-")

    This is the actual formula used. Broken down...

    By using the Indirect function you can replace the 'TAB' in all the formulas so that your input into A1, becomes the Tab name. - solved the way to pull from different tabs without changes the formula or using find and replace.
    Due to the information i had to work with i was only able to match the first 2 characters of the data i was using (filling was f-###, and the second filling was f-###) - By using the Left(B2,2)=Left(indirect....) gave the information to search for.
    The small(if(),Row-Row, 2) was used to pull the nth "2nd" match into the index as the row # to look into.

    Indirect("'"&$A$1&"'!$B:$B") = The tab and column you want the data to pull from.


    This may be a bit confusing, but I built up to the final formula. Started with all data on the same tab, to get basic functionality working.
    Moved my data to a different tab, and adjust to have formula pull from another tab
    Replace ('Tab'!Column) with the indirect function to have the formula do the work of matching tab.
    Last edited by SSwwet2018; 01-24-2019 at 05:53 PM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Return Info from different tab, from second set of matched data

    Thanks so much!

+ 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] Lookup Data in a table to return info
    By Toxicca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2015, 11:58 AM
  2. [SOLVED] compare list B with list A, return cell data on row where B matched A
    By master-richie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-04-2015, 01:59 AM
  3. Replies: 3
    Last Post: 03-23-2014, 03:24 PM
  4. Return row of data to a another sheet where a value is matched
    By adambriggs in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2013, 10:41 AM
  5. [SOLVED] Return the name matched to the highest value
    By gneff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 08:54 PM
  6. Replies: 4
    Last Post: 12-04-2012, 04:45 PM
  7. Sorted info now needs an IF statement to return info to main page
    By Drew Davis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2011, 11:41 AM

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