+ Reply to Thread
Results 1 to 4 of 4

finding the max through multiple columns

  1. #1
    Registered User
    Join Date
    04-14-2017
    Location
    Plymouth, minnesota
    MS-Off Ver
    2016
    Posts
    35

    finding the max through multiple columns

    I'm looking for a formula that will find the max number. In the attached file I'd like cell D17 to search columns E, N, W, AF, AO, and AX then return the highest number. If possible, I'd then like column C17 to return the employees name from column C.
    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: finding the max through multiple columns

    See attached which uses a helper row 17, which could of course be anywhere.

    Personally though I'd be inclined to rethink your data layout and create a proper two dimensional normalised database with a column for Dates, then columns A:M

    That wwould enable youto analysie your data in a far more efficient way and allow you to use a Pivot Table.
    Attached Files Attached Files
    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
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: finding the max through multiple columns

    Good morning,

    in D17

    =MAX(E3:AX9)

    it's not robust approach, but numbers in other columns cannot compete with Cases numbers to be the "MAX number"

    A more prudent approach could be

    =MAX(E3:E9,N3:N9,W3:W9,AF3:AF9,AO3:AO9,AX3:AX9)

    To get the name in C17

    =INDEX(C3:C9,AGGREGATE(15,6,ROW(3:9)-2/(E3:AX9=D17),1))

    To get -for istance -until 5 names that could have reached the MAX

    =TEXTJOIN(" / ",1,INDEX(C3:C9,AGGREGATE(15;6,ROW(3:9)-2/(E3:AX9=D17),INDEX(ROW(1:5),))))

    Hope that helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: finding the max through multiple columns

    Please try

    C17
    =INDEX(C:C,SUMPRODUCT((ROW(E3:BF9)*(E3:BF9=G17))))

    D17
    =MAX(INDEX($E$3:$BF$9*($E$2:$BF$2=$E$2),))
    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. Finding Text that Contains Across Multiple Columns
    By clutchrider in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2014, 12:55 PM
  2. Finding Multiple Values In Multiple Columns
    By Outdoors1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2014, 09:25 PM
  3. Finding Min value of multiple columns in different sheets
    By RorschachDK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2014, 05:11 PM
  4. finding duplicates in multiple columns.
    By caseythomas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2014, 05:24 PM
  5. Replies: 4
    Last Post: 03-07-2013, 11:42 AM
  6. [SOLVED] Finding multiple matches of a single input across multiple rows and columns
    By gingerdog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 02:54 PM
  7. Finding duplicates in multiple columns
    By khank in forum Excel General
    Replies: 2
    Last Post: 12-30-2010, 06:54 PM

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