+ Reply to Thread
Results 1 to 7 of 7

Formula to find and copy information

  1. #1
    Registered User
    Join Date
    02-13-2019
    Location
    Kingston, Canada
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Formula to find and copy information

    I'm looking for a formula that will match old client codes from two different lists on different sheets, and copy the new client code available on the first one to the second one.

    Excel.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to find and copy information

    Hi, welcome to the forum

    Try using VLOOKUP()

    =VLOOKUP(A2,Sheet1!$A$2:$B$7,2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Formula to find and copy information

    at B2 sheet 2
    =INDEX(Sheet1!$B$2:$B$15,MATCH(A2,Sheet1!$A$2:$A$15,0))

  4. #4
    Registered User
    Join Date
    02-13-2019
    Location
    Kingston, Canada
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Cool Re: Formula to find and copy information

    Hey Everyone! Thanks so much for your help!

    Both of those formulas worked great on the sample I gave you, unfortunately I've hit a snag... the actual document I'm working with has some funny formatting (see below)

    Sample.png

    The old client numbers (Sheet 2 Column A) are formatted like this: ="1232321"

    I'm looking for a way to either format the column to remove the equal signs and quotes, or to change the formula so that it searches for the value of the cell.

    Thanks so much!!!!!!

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Formula to find and copy information

    What if you try (small tweak to FDibbins solution):

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to find and copy information

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  7. #7
    Registered User
    Join Date
    02-13-2019
    Location
    Kingston, Canada
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Re: Formula to find and copy information

    Thanks, I was wondering how to do that! Lucky for me all your suggestions worked great! Thank you!

+ 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. formula to copy information
    By geraldccole in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-13-2018, 11:23 AM
  2. [SOLVED] Macro HELP!!!!! Find a name in one sheet and copy information to another
    By trevor2524 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2015, 01:04 PM
  3. Formula to Find Information from Multiple Spreadsheets
    By DomSza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2015, 11:03 AM
  4. Need Formula to Copy Information from one worksheet to another.
    By Jaidekat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2014, 08:41 PM
  5. [SOLVED] Trying to find a formula that locates if information is different to another sheet
    By tonic89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-26-2014, 08:35 PM
  6. Find next empty row and copy and paste information
    By Gavin Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2009, 03:50 AM
  7. Formula to find information between 2 dates
    By Porous Metals Limited in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2005, 04:06 PM

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