+ Reply to Thread
Results 1 to 5 of 5

Max values in various Columns

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Cool Max values in various Columns

    I have the following problem.
    I need to first group the NODOB(T) column to the same nodes. For example group all the PVAB0001... PVAB0002... then for that group find the maxium value in the following columns [F:I] that correspond to that group. There is a sample of the excel file.
    I need to apply a macro as this is a sample and the original file has 62300 to process. Any help would to great.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Max values in various Columns

    Hi,

    You don't need a macro. An array formula will do, but first remove the Merged Cell in your columns J:M - as a general rule always try to avoid merging cells since they are more trouble than they are worth and not only get in the way of efficient spreadsheet design but often cause unexpected results.

    So, in J2 and entered with Ctrl-Shift-Enter then copied down.

    =IF(C2<>C3,MAX(IF($C$2:$C$119=C2,$F$2:$F$119)),"")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Max values in various Columns

    With a pivot table.

    See the example.

    I see you have merged cells in you sheets.

    Try to avoid that, you get trouble with it sooner or later.

    Do you have questions, on this item, just ask.
    Attached Files Attached Files
    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.

  4. #4
    Registered User
    Join Date
    08-08-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Max values in various Columns

    Quote Originally Posted by oeldere View Post
    With a pivot table.

    See the example.

    I see you have merged cells in you sheets.

    Try to avoid that, you get trouble with it sooner or later.

    Do you have questions, on this item, just ask.
    Thanks a lot I will take a look at your solution... just a small question, you inserted a unique ID is this automatic or did you insert it.

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

    Re: Max values in various Columns

    I added it, and forget to remove.

    I though it would be the begin of the solution.

    But i choose for a pivot table, and for that (the pivot table) it's useless information.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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