+ Reply to Thread
Results 1 to 16 of 16

Find Cell Value that is Same in Column and Paste That Row

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Question Find Cell Value that is Same in Column and Paste That Row

    Hello Everyone!

    My first time on this forum so excuse my noobiness.

    I need to create a macro that automatically checks to see if the current cell value has any other corresponding values in a different column on another sheet and if it does, copy the row that row to the current cell value.

    EX:
    In Filtered Data sheet, A1 which has value of say 100.
    Macro goes to Raw Data sheet and goes down Column C looking for values of 100.
    If corresponding cell is found that entire row is copied to Row 1 of the Filtered Data sheet.

    Appreciate any and all help!
    Last edited by alex337; 07-17-2013 at 04:42 AM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Cell Value that is Same in Column and Paste That Row

    alex337,
    Welcome to the forum!
    Please attach an excel book sample. To attach a sample, go to advance then attachment.

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Find Cell Value that is Same in Column and Paste That Row

    hi
    i have posted a similar question here. Still waiting for an answer. Keep your eye on that thread also
    http://www.excelforum.com/excel-prog...ding-cell.html

  4. #4
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Okay here is an example excel file.

    Upkeep Database sheet includes all animals and their respective costs for various factors.
    My Upkeep sheet includes only some of the animals that I own.

    What the macro has to do here is look at the animals I own (My Upkeep sheet) and copy the upkeep costs from the Upkeep Database.

    I know the excel file here is very simple :P the one I am dealing with includes thousands of "animals" which explains my needs for a macro LOL
    Attached Files Attached Files

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Find Cell Value that is Same in Column and Paste That Row

    A simple Advance Filter, with criteria Range as "Your Upkeep sheet!a1:a" & n will work best...

    I think, no need to jump in the VBA Well..

    try and if required record it..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Cell Value that is Same in Column and Paste That Row

    Try the attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-01-2013
    Location
    mumbai
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Find Cell Value that is Same in Column and Paste That Row

    Hi, Same issue look like mine, Mapping the Text Using macro. Still am not able to resolve this issue

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Cell Value that is Same in Column and Paste That Row

    amiable,
    Please start your own thread as per form's rule.

  9. #9
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Quote Originally Posted by AB33 View Post
    Try the attached.
    Worked perfectly thank you very much! *sigh* I should really start taking some course in bioinformatics, proteins are haunting in my sleep.

  10. #10
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Okay if I wanted to make it more advanced (such as having multiple My Upkeep sheets) how should I adjust the macro without having to change "My Upkeep" sheet everytime in macro editor?
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Cell Value that is Same in Column and Paste That Row

    What do you do with the snacks? Are they venomous?

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Cell Value that is Same in Column and Paste That Row

    If you are trying to compare the database sheet with many multiple My Upkeep sheets, you need a completely different code.

  13. #13
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Hehehe I just overdose on caffeine. *grabs another cup of coffee*

  14. #14
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Find Cell Value that is Same in Column and Paste That Row

    OP wants to use them in Your VBA.. to give a real feeling for this game

  15. #15
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Quote Originally Posted by AB33 View Post
    If you are trying to compare the database sheet with many multiple My Upkeep sheets, you need a completely different code.
    Oh noes...well it doesn't matter I can just adjust the macro as I go as I only have 10 data sheets. You already help shave of several days off my research Original data revolves around comparing protein levels with various other tissue cells and the module you helped me was the final part in the comparisons! I can't thank you enough lol.

  16. #16
    Registered User
    Join Date
    07-17-2013
    Location
    Seoul
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Find Cell Value that is Same in Column and Paste That Row

    Quote Originally Posted by Debraj Roy View Post
    OP wants to use them in Your VBA.. to give a real feeling for this game
    LOL that just brightened my day Gods Excel Macros are harder than python Q.Q

+ 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] How to find the largest value in column T then paste into Cell
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2012, 06:28 PM
  2. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  3. Replies: 0
    Last Post: 09-06-2012, 04:06 AM
  4. Loop to find cell, paste to new column. Turn 1 column into many.
    By d0tc0m in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2011, 09:51 AM
  5. find last non blank cell in a column and copy paste in next row
    By prasad_tavva in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2007, 09:41 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