+ Reply to Thread
Results 1 to 9 of 9

Update Sheet A from Sheet B When a Match is Found

  1. #1
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Question Update Sheet A from Sheet B When a Match is Found

    Dear Gurus:

    Please take a look of the following tasks and see if you can make a code to automatize the process.

    Pseudo Code:

    *This code should update the sheet Quote Summary from Sales Summary Only

    1, Start from Row 2 on Quote Summary Sheet,
    If F2=0 or blank, then try to find the value of A2 in Quote Summary from column A in Sales Summary
    If a match is found in cell Ai in Sales Summary sheet, then update F2 in Quote Summary with the value in Di in Sales Summary sheet.
    If no match is found, just leave it and start next cycle.

    2, Repeat for all of the rows in the sheet Quote Summary

    Process Sample 5-Update Sheet A from Sheet B.xlsm

    Thank you,

    Chris

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Update Sheet A from Sheet B When a Match is Found

    It means there is no duplicate in Column "A" in sheet "Sales Summary"
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Update Sheet A from Sheet B When a Match is Found

    Hi PCI:

    Not sure what is the context of this reply but no duplicates is supposed to be in column A in sheet sales summary.

    Thanks,

    Chris

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Update Sheet A from Sheet B When a Match is Found

    See next code
    Please Login or Register  to view this content.
    Last edited by PCI; 11-04-2014 at 04:45 PM.

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Update Sheet A from Sheet B When a Match is Found

    Take care I made a change in the code
    Please Login or Register  to view this content.
    But it's not enough because cells are not empty there is a space.
    What do you want to do:
    Remove the space to have real empty cells in your data
    or change the code by
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Update Sheet A from Sheet B When a Match is Found

    let's do all case
    See attached

  7. #7
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Update Sheet A from Sheet B When a Match is Found

    Thanks for pointing it out!

    What about take all three condition into consideration?

    Like this:

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Update Sheet A from Sheet B When a Match is Found

    Yes of course, see the previous file attached

  9. #9
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Update Sheet A from Sheet B When a Match is Found

    Great Code!

    Thanks you PCI.

    Btw, please take a look of this thread:

    http://www.excelforum.com/excel-prog...ml#post3889310

    Its should be an extremely simply code for your but please make sure it only applies the sheet "Quote Summary"

    Thank you,

    Chris

+ 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. Lookup Value from Sheet 4 in Sheet 2, if found copy Sheet 2 Active Row to Sheet 5
    By lgosso23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2013, 02:51 PM
  2. Replies: 7
    Last Post: 12-03-2012, 03:10 AM
  3. VBA Colour cells in 4th sheet if match found in Sheet1,2 or 3
    By zx142985 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 06:33 AM
  4. Replies: 3
    Last Post: 07-22-2011, 02:22 AM
  5. Coping cells to another sheet when a match is found
    By E3iron in forum Excel General
    Replies: 2
    Last Post: 10-01-2010, 03:28 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