+ Reply to Thread
Results 1 to 6 of 6

Taking data from specific tab by using a reference text cell

  1. #1
    Registered User
    Join Date
    06-18-2019
    Location
    Cluj-Napoca
    MS-Off Ver
    365
    Posts
    4

    Taking data from specific tab by using a reference text cell

    Hi,



    I have an excel file that is an invoice where i need to bring data from another excel file but it can be from different tabs and also the columns position may differ, only the column header will be the same.

    The invoice number looks like this for example: T9CO-FB-7-0101-MD1-01/CW13232. The mid part(0101-MD1-01) is also the name of the tab where the information from the other excel files should be extracted from. I made a formula that returns me in a cell, the exact name of the tab, from the Invoice number. So i need something that can go and find the tab by using my formula as a reference, and also look for the column where the data should come from, by the headers name, and bring me the Total Price using the reference Tag number(which will be manually completed in the invoice file).



    By now i had this:


    Please Login or Register  to view this content.
    But it doesn't seem to work.
    Please help
    Thanks !
    Last edited by rumpelstiltskin; 06-19-2019 at 02:40 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,632

    Re: Taking data from specific tab by using a reference text cell

    Hi and welcome
    perhaps tell us what does not work, and where it goes wrong ?
    Maybe posting a sample sheet/wbk ( no pics please) would help our VBA specialists ? ( click Go advanced - Manage attachments)

  3. #3
    Registered User
    Join Date
    06-18-2019
    Location
    Cluj-Napoca
    MS-Off Ver
    365
    Posts
    4

    Re: Taking data from specific tab by using a reference text cell

    This is the invoice. Unfortunately I can't upload the source file as it is company data.

    Well I'm not that good with VBA. It just returns me "#Value" or "#N/A".
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-18-2019
    Location
    Cluj-Napoca
    MS-Off Ver
    365
    Posts
    4

    Re: Taking data from specific tab by using a reference text cell

    Help, please?

  5. #5
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Taking data from specific tab by using a reference text cell

    Your code missing some dots
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-18-2019
    Location
    Cluj-Napoca
    MS-Off Ver
    365
    Posts
    4

    Re: Taking data from specific tab by using a reference text cell

    I managed to make it work :D Thanks a lot .

+ 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] MATCH formula -- cell reference vs specific text?
    By Kanuck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2016, 06:52 PM
  2. Taking rows containing specific text and moving to specific tab.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-11-2016, 11:53 AM
  3. How to reference text in specific cell in an If statement
    By Anp99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2015, 06:40 PM
  4. VBA- Relative Cell Reference taking one value and pasting to all cells in a column
    By mrblue1123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-20-2013, 09:49 AM
  5. Replies: 5
    Last Post: 09-24-2012, 05:40 PM
  6. [SOLVED] Formula to find specific text in a cell from a reference table?
    By larrens in forum Excel General
    Replies: 14
    Last Post: 03-26-2012, 11:41 AM
  7. Cell reference cell then append specific text using vb
    By sweetrevelation in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2009, 12:46 AM

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