+ Reply to Thread
Results 1 to 44 of 44

Finding max value of each group and paste to another cell

  1. #1
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Finding max value of each group and paste to another cell

    Dear masters,

    I have One Excel sheet. that contains groups and each group contains set of data. so i want to extract each group of data with respect of specified column max value and paste to another cell with corresponding remaining cell values. please find attachment for clarity. kindly make suitable formula for getting required data from input data.


    Thanks in advance.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-09-2016 at 09:25 AM.

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

    Re: Finding max value of each group and paste to another cell

    with a pivot table and match.
    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 Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Dear sir,
    thank you very much sir, i am not familiar with pivot table tasks. what procedure you followed please explain. because i have no.of rows in my sheet. so how to increase rows if required?

    Thanking you sir.

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

    Re: Finding max value of each group and paste to another cell

    I made a pivot table of the data.

    If you want to learn pivot table, google pivot table and you will find a lot of hits.

  5. #5
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Ok Thank you sir. instead of pivot table any alternative formula entering procedure?

    and how to edit you prepared sheet, i want to increase the rows and edit the labels which prepared by you?

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

    Re: Finding max value of each group and paste to another cell

    maybe other forummembers will solve it with formula, I solved it with pivot table.

  7. #7
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    ok sir, because you are pasted beams numbers in "A" Column. it is not possible, because 100's of rows are in Actual excel sheet. but you did great job. i appreciate you. i look forward to solution from our forum members.

  8. #8
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Finding maximum values of each set of group data and extract Max values from each set

    Dear All Masters,

    I have One Excel sheet. that contains groups and each group contains set of data. so i want to extract each group of data with respect of specified column max value and paste to another cell with corresponding remaining cell values. please find attachment for clarity. kindly make suitable formula for getting required data from input data.


    Thanking you all Excel Masters.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-09-2016 at 10:03 AM.

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

    Re: Finding max value of each group and paste to another cell

    you can use this macro to fill most of the data (not the last values).

    Please Login or Register  to view this content.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding maximum values of each set of group data and extract Max values from each set

    If I understand correctly then the attached file should give you the results you want. The formulas that look up the desired values are in the form:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Excellent sir, Sir please guide me, if i want to increase Rows for pivot table what is the procedure because i had above 8000 rows. but you provided up to A27:F27 rows (Total 27 rows). this only problem. remaining all your task is amazing. kindly suggest.

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

    Re: Finding maximum values of each set of group data and extract Max values from each set

    It is NOT allowed to add the same question twice on the forum.

    5. Don't duplicate threads. If you have posted the question in one forum, do not post it again in another forum. You are duplicating efforts. If you feel the thread is in the wrong forum and needs to be moved to another forum, PM a mod / admin to do it for you.


    http://www.excelforum.com/showthread...t=#post4451940

  13. #13
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding maximum values of each set of group data and extract Max values from each set

    Quote Originally Posted by JeteMc View Post
    If I understand correctly then the attached file should give you the results you want. The formulas that look up the desired values are in the form:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Thank you for providing formula, how you get O3, O4, O5, O6, 07 (-1.45,-10.23, -3.99, -15.11, 2.1) ? Because these values should be produced by formula. kindly make the modification.

    Thanking you sir.
    Last edited by pvsvprasad; 08-09-2016 at 10:32 AM.

  14. #14
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding maximum values of each set of group data and extract Max values from each set

    Quote Originally Posted by oeldere View Post
    It is NOT allowed to add the same question twice on the forum.

    5. Don't duplicate threads. If you have posted the question in one forum, do not post it again in another forum. You are duplicating efforts. If you feel the thread is in the wrong forum and needs to be moved to another forum, PM a mod / admin to do it for you.


    http://www.excelforum.com/showthread...t=#post4451940
    Dear sir,

    I want Formula based version instead of pivot table version.

    Kindly provide Formulas based Version.

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Finding maximum values of each set of group data and extract Max values from each set

    Please do NOT post duplicate threads. I will merge this with your other thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Finding maximum values of each set of group data and extract Max values from each set

    Dear sir,

    I want Formula based version instead of pivot table version.

    Kindly provide Formulas based Version.
    Also in that case it is usefull to stick in the same treat.

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Finding max value of each group and paste to another cell

    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile says 2003, but your file indicates at least 2007

  18. #18
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Yes, i had modified my profile. now it is 2007. thank you for reminder because i am rarely used forums.

  19. #19
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Finding max value of each group and paste to another cell

    Dear sir,

    Please find attachment. there is showing wrong value in one cell. please correct the your pivot table formula.

    Thanks in advance.

    Best regards,
    Prasad.
    Attached Files Attached Files

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

    Re: Finding max value of each group and paste to another cell

    @pvsvprasad

    Since ypu get answers from several members, it is alway good to add to whom you are replying.

  21. #21
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by oeldere View Post
    @pvsvprasad

    Since ypu get answers from several members, it is alway good to add to whom you are replying.
    Dear sir,
    That sheet is providing by you. kindly check. because old thread is not visible.

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

    Re: Finding max value of each group and paste to another cell

    Please Login or Register  to view this content.
    I took the MIN values and that is -2.00 instead of 2.10 (as you stated).

    Why should it be 2.10, In that cause the other answers would be wrong.

  23. #23
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Dear sir,
    2.10 is Bigger than -2.00. so kindly modify the code.

    my set is

    2.10
    -0.16
    -1.50
    -1.80
    -2.00


    So 2.10 is Bigger than -2.00

  24. #24
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding maximum values of each set of group data and extract Max values from each set

    Quote Originally Posted by pvsvprasad View Post
    ...how you get O3, O4, O5, O6, 07 (-1.45,-10.23, -3.99, -15.11, 2.1) ? Because these values should be produced by formula.
    Assuming that 'Beam No.'s' will be filled in manually this formula will find the 'Max Y':
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  25. #25
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Finding maximum values of each set of group data and extract Max values from each set

    dear sir,Nice execution and amazing formulas.

    Now Column is missing to develop automatically. i want to develop the M,N,O,P Columns by formulas. kindly make a correction for me.
    Attached Images Attached Images

  26. #26
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding max value of each group and paste to another cell

    The array entered formula* for the beam numbers includes a reference to a helper column (L), which may be hidden for aesthetic purposes:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let me know if you have any questions.

  27. #27
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Finding max value of each group and paste to another cell

    You can try the attached file (All with formulas).

    Attached Files Attached Files
    Last edited by sanram; 08-09-2016 at 02:20 PM.

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

    Re: Finding max value of each group and paste to another cell

    2.10 is Bigger than -2.00. so kindly modify the code.

    my set is

    2.10
    -0.16
    -1.50
    -1.80
    -2.00


    So 2.10 is Bigger than -2.00


    0,65
    -0,31
    -0,88
    -0,28
    -1,45

    Then I think that the max of this data 0.65 is and not -1,45 (as you stated).

  29. #29
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by sanram View Post
    You can try the attached file (All with formulas).

    Thank you very much sir, if i want to increase to more rows, what is the procedure? any idea? because if i have hundreds of rows what i do? kindly help me.
    Last edited by pvsvprasad; 08-10-2016 at 12:52 AM.

  30. #30
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Smile Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by oeldere View Post
    0,65
    -0,31
    -0,88
    -0,28
    -1,45

    Then I think that the max of this data 0.65 is and not -1,45 (as you stated).
    Yes Sir exactly, i want to look up maximum of specified column i.e F Column and paste with relative remaining columns. kindly modify the your code.
    Last edited by pvsvprasad; 08-10-2016 at 12:54 AM.

  31. #31
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by JeteMc View Post
    The array entered formula* for the beam numbers includes a reference to a helper column (L), which may be hidden for aesthetic purposes:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let me know if you have any questions.
    Thank you Very much sir,Your code is now worked well.

    Kindly provide your code for A3 to F503 (Range) . because i dont know to edit your code. please help me.
    Last edited by pvsvprasad; 08-10-2016 at 01:06 AM.

  32. #32
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by pvsvprasad View Post
    Kindly provide your code for A3 to F503 (Range) .
    1) Copy the formula in L27, the helper column, down to L503.
    2) Change the $27 in each of the formulas for columns M:P to $503
    3) Re-activate the array entered formulas in columns M and O by pressing Ctrl, Shift, and Enter simultaneously.
    Let me know if you have any questions.

  33. #33
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Thank you for developing the code sir.

    I am failed to catch your point. if possible kindly send the Excel file.

    Thanking you sir.

  34. #34
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding max value of each group and paste to another cell

    File with formulas updated as described in post #32.
    Let me know if you have any questions.

  35. #35
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Finding max value of each group and paste to another cell

    Thank you very much sir.

    iam adding some rows at A28 to A30,

    But not developing results at M8 to P8,

    What is the problem? kindly check and debug please.

    Because in future if i want to add rows at A to K , I want produce the results at M to P rows
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-11-2016 at 02:01 AM.

  36. #36
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Finding max value of each group and paste to another cell

    Please find modified A28 Column file.
    Attached Files Attached Files

  37. #37
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding max value of each group and paste to another cell

    The formulas in columns N through P have now been amended so that they begin with =IF(M3="","",... This prevents the #N/A from showing when there is no value in those columns. The formulas in columns M through P have been copied down to row 503 by selecting M7:P7 and double clicking the fill handle in the lower right corner of P7.
    Let me know if you have any questions.

  38. #38
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by pvsvprasad View Post
    Thank you very much sir, if i want to increase to more rows, what is the procedure? any idea? because if i have hundreds of rows what i do? kindly help me.
    I have made some adjustment to the formulas. See the attachment. Now it will work for all rows.
    Attached Files Attached Files

  39. #39
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by sanram View Post
    I have made some adjustment to the formulas. See the attachment. Now it will work for all rows.
    Dear sir,

    Thank you for your kind reply.

    I am tested your file.with help your file results are not produced at M to P Rows. kindly check and modify.

    i need develop the results at M to P, until data is available at A to F rows(i.e End of page).

    Thanking you.
    Last edited by pvsvprasad; 08-11-2016 at 12:07 PM.

  40. #40
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by JeteMc View Post
    The formulas in columns N through P have now been amended so that they begin with =IF(M3="","",... This prevents the #N/A from showing when there is no value in those columns. The formulas in columns M through P have been copied down to row 503 by selecting M7:P7 and double clicking the fill handle in the lower right corner of P7.
    Let me know if you have any questions.
    Thank you very much sir, no doubts about your code. now code is good.

  41. #41
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by pvsvprasad View Post
    now code is good.
    You're Welcome and thank you for the feedback. If that answers your question, please select Thread Tools from the menu link above the first post on this page and mark this thread as SOLVED. I hope that you have a blessed day.

  42. #42
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Finding max value of each group and paste to another cell

    You need to copy down the formulas. Otherwise how will they show results. See the attachment.
    Attached Files Attached Files

  43. #43
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by sanram View Post
    You need to copy down the formulas. Otherwise how will they show results. See the attachment.
    Thank you for clarification. sorry for poor knowledge upon my excel skills.

    Thank you very Much All of you Friends.

  44. #44
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Finding max value of each group and paste to another cell

    Quote Originally Posted by pvsvprasad View Post
    Thank you for clarification. sorry for poor knowledge upon my excel skills.

    Thank you very Much All of you Friends.
    No need to say sorry. It's feeling better now that it has worked for you.

+ 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] (VBA) How Assign Column Cell To Corresponding Group, and Paste Group Cells into Groups WS?
    By eryksd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2016, 06:18 PM
  2. Vba - finding and cut/paste based on certain cell
    By Datagirl8472 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2013, 02:25 PM
  3. [SOLVED] Macro to copy,paste and group information based on value in a cell
    By gullit in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2012, 05:32 PM
  4. Macro to copy and paste into cell group in NXT ROW
    By L-plate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2011, 07:45 AM
  5. Replies: 10
    Last Post: 06-29-2007, 06:39 PM
  6. Calculate,Copy, Paste Cell Group Macro Adjustments
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 11:50 PM
  7. Calculate,Copy, Paste Cell Group
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-23-2006, 09:35 PM

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