+ Reply to Thread
Results 1 to 12 of 12

Merge name against unique group and get max value for group

  1. #1
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Merge name against unique group and get max value for group

    Dear All,

    For merging value against group I have posted question in forum and MickG has given me vba code as solution. Please refere link
    Now I have value in column "C" and "D". I need vba code to get maximum value for each group.

    Kindly refer attached file.

    Regards,

    PN
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Merge name against unique group and get max value for group

    NON VBA solution.

    With a pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Merge name against unique group and get max value for group

    VBA

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    Dear Jindon and oeldere,

    Thanks for your kind reply. oeldere I am not used to with Pivot table.
    Jindon your solution is perfectly working. Thank you very much .

    Regards,

    PN

  5. #5
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    Dear jindon,

    I need to run this from any worksheet in work book.

    Suppose I have this data in WS3 workbook.

    What would be modification I need to do so that I can run this macros from any worksheet in the workbook.

    Regards,
    PN

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

    Re: Merge name against unique group and get max value for group

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    yes man This is working. Thank you for your kind help. I tried but failed to modify last two lines.

    End With
    .[h1].Resize(i, UBound(a, 2)).Value = a
    End With
    Now if value in Column "C" and "D" have formula how could I get the result.

    Regards,

    PN

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

    Re: Merge name against unique group and get max value for group

    I don't understand what you are asking.

    Post a workbook with before/after.

  9. #9
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    Sorry for trouble. Actually I have set calculation mode to manual resulting in error. Mistake on my part.

    Regards,

    PN

  10. #10
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    Again I made mistake in represent the problem.

    I need for each group i.e Column "A" max value from Column "C" and Column "D". File attached herewith.


    Regards,

    PN
    Attached Files Attached Files

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

    Re: Merge name against unique group and get max value for group

    change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    01-17-2015
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    85

    Re: Merge name against unique group and get max value for group

    Hey now I got the result. You people are worth the word "GURU".
    I thank you for your guidance and Patience.

    Regards,
    PN

+ 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: 02-10-2014, 10:26 PM
  2. Replies: 2
    Last Post: 01-18-2013, 12:45 PM
  3. Customised ribbon - displaying a group based on pressing a button in another group
    By micklloyd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-15-2012, 03:55 PM
  4. How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2005, 09:05 PM
  5. How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 PM
  6. How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2005, 05:05 AM
  7. [SOLVED] How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By jaking in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By jaking in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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