+ Reply to Thread
Results 1 to 4 of 4

Concatenated sorting

Hybrid View

  1. #1
    Registered User
    Join Date
    08-18-2007
    Posts
    62

    Concatenated sorting

    I have a daily report that I need to find and concatenate 3 cells to show the reason of the Criteria X, Y, and Z in the report table. I made a workbook with an example of my problem. I need to find in Sheet 1 column A1 today’s date (this table will have several days data), then from that point of the range move to the columns “X”, “Y”, “Z” and find what are the reasons for “X”, “Y”, and “Z” in this example I put Name, Initial, and Last name. I need to copy this data to Sheet 2 and insert the 3 cells values concatenate them in one cell, all the values (names) that match criteria X, Y and Z in to separate tables in the same sheet.. In the example will start in cell Sheet 2 cell B4 and insert all the full name of all the Name, Initial and Last name that were entered in the columns mark “X”, and do the same for “Y” and “Z”.

    The key here is that the function use to find today date will replicate the data sorting every day and out put the same report daily.

    I know that will be easy if the full name be entered in one cell at the data entry time, but I need them separate at that point.



    Any input how to do this will be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Seems like it would be MUCH easier to simply add a column to the end of the data concatenating the names and then use autofilter to display the current day, and departments as you wish.

    See example spreadsheet
    Attached Files Attached Files
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Registered User
    Join Date
    08-18-2007
    Posts
    62

    Exclamation

    Exec thanks for you reply .

    I’m amaze how something that looks so complex can be so simple. I inserted another column and concanetaned all the colums I wanted togheter in the same sheet... filtered it..and Wow! no wounder you guys rule this Newsgroup.

    Excelenator (or any of you thankful gurus), now how can now transfer this filtered criteria of “X”, “Y” and “Z” to another sheet only of the current day?

    Thanks again for the replay.

    P.S.


    I want to extend my gratitude and admiration to every body in this Newsgroup, specially all those that take their time and talent to answer all our "want it to be like you guys" questions!

    Excelenator!
    broro183!
    Bjornar!
    mikerickson !
    royUK!
    rylo!
    corinereyes!
    BigBas !
    Greg M!
    solnajeff!
    Leith Ross!
    Steven_Daniel!
    Alltmor!
    daddylonglegs!
    DominicB!
    NBVC!
    VBA Noob!


    Thank you all....Moderator please let me thank them.

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    You're very welcome! Have a look at the file that I posted to my previous post. You can autofilter the list by selecting Data\Filter\Auto Filter. That will give you the drop downs on the column headers by which you can select what ever day you want along with what ever department you want. Then you can just select the filtered list and copy and paste it to the new sheet.

+ 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