+ Reply to Thread
Results 1 to 9 of 9

Search Column A Concatenate Row and place in New Worksheet

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Search Column A Concatenate Row and place in New Worksheet

    Hi,

    Can anyone help me with this VBA code:

    I have attached a sample.

    Here is what I am hoping to accomplish:
    In Column A, anytime a specific "text" appears, I want to concatenate the information in the row, and place it into worksheet Data-list under a specific heading.

    Please forgive me if this question is not clear. I hope the sample page is easier to understand. Here is the link to the sample: https://drive.google.com/file/d/0B3y...it?usp=sharing

    The formula I would use (not vba) is =IF(A3="FN",B3,""), then I just copy it all the way down. However there are 27K cells, which is why I want a VBA Code
    Attached Files Attached Files
    Last edited by awolfa; 05-30-2014 at 11:35 PM. Reason: File Attachment

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Search Column A Concatenate Row and place in New Worksheet

    The link doesn't work. Upload your workbook here. I guessed on a lot of stuff so try this. It will put the concatentated stuff in column A of the Data-list sheet:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search Column A Concatenate Row and place in New Worksheet

    Hi - I added the file as an attachment.

    Thank You,
    Ami
    Attached Files Attached Files
    Last edited by awolfa; 05-30-2014 at 11:37 PM. Reason: File Attachment

  4. #4
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search Column A Concatenate Row and place in New Worksheet

    Thank you stnkynts. The FN transfers over with concatenate, but this is definitely close to what I am needing, so your guessing was dang spot close. Did my sample worksheet make more sense?

    Kind Regards,
    Ami

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Search Column A Concatenate Row and place in New Worksheet

    The only difference I can see is that my code would need to paste the concatenated stuff in column B instead of A and some sheet name changes:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search Column A Concatenate Row and place in New Worksheet

    Thank you very much.

    How might I include multiple searchers? For example if I want to search for "F" and place that in column C and "ADR" place in Column D?

    Code question: is rcon and rcell the same?

  7. #7
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search Column A Concatenate Row and place in New Worksheet

    Stnkynts,

    Here is what is pasting into Column B in the Datalist WKsheet

    FN Asha Manday

    How do I remove the FN because so it reports only the concatenate data without the search criteria?

    For example it would only read: Asha Manday
    Last edited by awolfa; 05-31-2014 at 11:25 AM.

  8. #8
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Search Column A Concatenate Row and place in New Worksheet

    How do I remove the FN because so it reports only the concatenate data without the search criteria?
    Like this I would think:
    Please Login or Register  to view this content.
    How might I include multiple searchers? For example if I want to search for "F" and place that in column C and "ADR" place in Column D?
    Well, we could set up an array but if you only have a few search parameters it would be quickest to just copy and paste the autofilter code then change the criteria1 and the output. See below:

    Please Login or Register  to view this content.
    Code question: is rcon and rcell the same?
    No.

  9. #9
    Registered User
    Join Date
    03-01-2014
    Location
    Okemos, MI
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search Column A Concatenate Row and place in New Worksheet

    Thank you very much for the help.

    Since I am not confident with arrays, I will stick to copying and pasting The Code you gave me to remove the search criteria worked like a charm.

    Sincere Appreciation!

+ 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. Replies: 4
    Last Post: 05-06-2014, 11:41 AM
  2. [SOLVED] Concatenate with leading zeros and decimal place
    By shreksbro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2013, 12:22 AM
  3. Search a Column for a specific Value and Place in Another sheet
    By basketball2524 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2013, 10:19 PM
  4. Userform to search textbox value to place other textbox values in worksheet
    By mattyh555 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2012, 11:38 AM
  5. if concatenate the same place only 1 entry
    By busybeemg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2010, 11:58 AM

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