+ Reply to Thread
Results 1 to 8 of 8

Find and Sort out the rows with particular value

  1. #1
    Registered User
    Join Date
    05-13-2015
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    52

    Find and Sort out the rows with particular value

    Dear All,

    Please have a look into the file attached with this thread. In the "Input Sheet", I have a table of values. In column "G", one can find comma separated values (not exactly comma separated, there might be additional spaces too in between). So, I need to find out all the rows consisting of a "particular value (shown in red font as an example)" from the "G" column of "Input Sheet" and they should be printed in the "Output Sheet" in the given format. This process has to be repeated for all 'distinct' comma separated values in column "G". If I start doing it manually, I knew it would be taxing, so I wanna reduce the effort with any macro. Any reply would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find and Sort out the rows with particular value

    I can't open your attachment?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Find and Sort out the rows with particular value

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-13-2015
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    52

    Re: Find and Sort out the rows with particular value

    Dear Jindon,

    Thank you so much for your immediate response. But what I have intended is not only for the "red font" items in "Input Sheet", but this sorting shall be done for every individual entry in the "G" column. And the rows shall be printed for every individual entry. Hope I made my point clear.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Find and Sort out the rows with particular value

    Please Login or Register  to view this content.
    Last edited by jindon; 06-01-2017 at 10:12 AM.

  6. #6
    Registered User
    Join Date
    05-13-2015
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    52

    Re: Find and Sort out the rows with particular value

    Dear Mr.Jindon,

    Thank you so much for your help. But I found some issue after exceuting your code in a new file. I am attaching here by the file "GTG Building", where I have inputs in "Input Sheet" and the output of the executed code is in "Output Sheet". If you take a close look of a row which I have highlighted in "Red" font, that particular row is filtered under "31MBA005/3", but there is no such value in "G" column of that row. I am not sure if there are minor glitches as such in the other filtered values or not. I would like to request you to please go through this issue and help me out with the corrected vba, if any mistake is found. Awaiting reply.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Find and Sort out the rows with particular value

    See if this is how you wanted.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-13-2015
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    52

    Re: Find and Sort out the rows with particular value

    Dear Jindon,

    Hopefull this solves the problem. You are a saviour. Thank you so much for prompt reply. Sorry to bother you, as I have some more work to be done with the same file.
    I have generated the output wiht the vba code that you have written. Now, in the output sheet, adjacent to every "Yellow" cell, I want to have a "Blue" cell, where I can have an option to enter any value. I have shown an example in the attached file. I have entered "600" in the blue cell. Then I have to generate the cross sectional area in Column "O" (in Orange colour), taking the value in column "K" as the diameter. I have written the formula for the same within the cell for your perusal. This process has to be carried out for all the diameters (rows) that comes under that particular "Yellow" cell. Now, column "P" shall have a merged cell, which gives the (total sum of area of all the cells under column "O")/(value in the blue colour cell) in a single merged cell, which is shown in "Green" Colour. You will have a clear idea once you go through the "Output" Sheet. This process has to be repeated for all rows under individual "Yellow" cell. Appreciate your reply, if any doubts are there.
    Thanks
    Attached Files Attached Files

+ 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: 1
    Last Post: 05-27-2016, 06:54 PM
  2. Replies: 2
    Last Post: 05-27-2016, 03:59 AM
  3. Sort Rows and copy sort results to new worksheet?
    By Apache_sim in forum Excel General
    Replies: 0
    Last Post: 06-30-2015, 03:17 AM
  4. [SOLVED] Find column location by header and then sort rows below it be ascending order
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2015, 11:58 AM
  5. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  6. Select 1st 2d range, sort, find 2nd, sort, etc
    By finny388 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-24-2011, 03:12 PM
  7. sort alphabetically and numerically, then sort rows
    By luke20allen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2008, 07:00 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