+ Reply to Thread
Results 1 to 5 of 5

Copy specific data from one sheet to another sheet if certain criteria

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Houston TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copy specific data from one sheet to another sheet if certain criteria

    I am trying to copy data from one worksheet to another.

    Specifically in the attachment, if Sheet "B" contains "x" in Column A, then in Sheet "A" propogate columns B + C with data from C + D in Sheet "B".

    I'm a novice with Excel macros and unable to generate the necessary code using other examples of similar macros.

    Any help is greatly appreciated, thanks!
    Attached Files Attached Files
    Last edited by jscorsone; 05-13-2010 at 02:15 PM. Reason: Resolved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy specific data from one sheet to another sheet if certain criteria

    Does it have to be done with macros?

    Maybe you just need the Vlookup() function? This looks up a value in a cell and finds it in a table, returning items from specified columns in same table and same row as match.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Houston TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy specific data from one sheet to another sheet if certain criteria

    No, that was just my impression, doesn't have to been done with macros.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy specific data from one sheet to another sheet if certain criteria

    IN B2 try:

    =IF($A2="","",VLOOKUP(TEXT(A2,"@"),SheetB!$A:$D,3,0))

    and in C2:

    =if($A2="","",VLOOKUP(TEXT(A2,"@"),SheetB!$A:$D,4,0))

    these can be copied down to accomodate values entered in A3, A4, etc...

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Houston TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy specific data from one sheet to another sheet if certain criteria

    That's the ticket.

    I can't thank you enough for your timely assistance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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