+ Reply to Thread
Results 1 to 8 of 8

copies the corresponding column if text match the table

  1. #1
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    copies the corresponding column if text match the table

    i need a formula that can lookup a text in table menu , then copy the column data to new sheet.
    Please refer the attachment.
    thanks very much.
    Attached Files Attached Files

  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,223

    Re: copies the corresponding column if text match the table

    Are you still using Excel 2019?
    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
    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,223

    Re: copies the corresponding column if text match the table

    If you have 2021 or 365, remove all expected results and paste this into B6:

    =LET(f,FILTER(Sheet1!B3:D7,Sheet1!B2:D2=B3),IF(f=0,"",f))

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,469

    Re: copies the corresponding column if text match the table

    worksheet or Tab name : worker 1

    Cell B6 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: copies the corresponding column if text match the table

    Thanks you wk9128 very much, the formula is according worksheet B3 to lookup the data, not the tab name. if sheet1 data is blank , it also will copy blank to sheet worker 1. that means copy exactly to it.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,469

    Re: copies the corresponding column if text match the table

    First define a name, the name is xx , and the placement formula is =REPLACE(GET.DOCUMENT(1),1,FIND("]",GET.DOCUMENT(1)),)&T(NOW())


    worksheet or Tab name : worker 1

    Cell B6 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AliGW; 04-24-2024 at 01:06 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  7. #7
    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,223

    Re: copies the corresponding column if text match the table

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,469

    Re: copies the corresponding column if text match the table

    choy9 You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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. Replies: 1
    Last Post: 04-27-2023, 01:38 PM
  2. VBA Code Button that runs through Date list Table and Copies onto another table
    By Bisky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2018, 10:26 AM
  3. Macro, to match criteria in one column and copies results into a new tab
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2013, 08:57 AM
  4. [SOLVED] a formula that copies and pastes different text options in the same column
    By nicki_rae22 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-01-2013, 04:50 AM
  5. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  6. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  7. help. Search based on text input in a column selects a row and copies data.
    By ridermarangoni in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 10:53 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