+ Reply to Thread
Results 1 to 6 of 6

Copy cell down when match

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    NEW JERSEY
    MS-Off Ver
    2019
    Posts
    74

    Copy cell down when match

    I have a spreadsheet and would like to automatically copy the phone number from the "G" cell when the new record in the "D" cell is entered.
    I am attaching a sample of the sheet.
    IE: In cell D6 (the new record) the name is B. Jones. It is already in cell D3.
    I need the phone number in cell G3 to be automatically down to cell G6.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy cell down when match

    Well, problem is, a cell can only have a value or a formula, not both. So, you'd need to use a VBA Worksheet Change Event handler to monitor column D and, if a new entry matches an existing entry, copy the details down. Not hard if you're ok with VBA but not all people/organisations are.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    NEW JERSEY
    MS-Off Ver
    2019
    Posts
    74

    Re: Copy cell down when match

    Where can I find an example of the VBA code?
    Thanks

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy cell down when match

    Like this:

    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy cell down when match

    Is this now resolved?

  6. #6
    Registered User
    Join Date
    03-08-2019
    Location
    NEW JERSEY
    MS-Off Ver
    2019
    Posts
    74

    Re: Copy cell down when match

    Yes - thanks

+ 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] Loop through and copy text from one cell to a cell in another column based on date match
    By James Keuning in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-24-2021, 12:22 AM
  2. If cell contains value, match with previous path and copy all data from rows that match
    By luajambeiro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2020, 02:58 PM
  3. Replies: 1
    Last Post: 10-06-2017, 05:02 PM
  4. [SOLVED] Match a cell value in another sheet and copy values below the cell (Index Match)
    By naga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-17-2017, 03:14 AM
  5. Copy cell contents between tabs provided cell references match (VLOOKUP?)
    By jparnell8839 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2014, 09:05 AM
  6. Match and copy cell value to the row where it find the match
    By excelboy23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 03:30 AM
  7. [SOLVED] Match one cell with another, if match found copy adjacent cells
    By Xiophoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2013, 05:50 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