+ Reply to Thread
Results 1 to 5 of 5

Max value in Different Columns

  1. #1
    Forum Contributor
    Join Date
    02-12-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2016
    Posts
    270

    Max value in Different Columns

    Hi All

    i have a table with sales persons and there sales across years from 2001-2030

    i have a scroll bar which will give years in 5 columns (This step is a larger part of file i am preparing)

    Ask : When i click the scroll bar the year in the columns(G19:L19) change subsequently based on i want to have highest number of sale in that year
    in the next row to each column

    I tried using max, maxifs, index, match, but i am unable to connect and get the correct result. file attached

    Your advise is much appreciated.
    Attached Files Attached Files
    Never confuse a single defeat to the final defeat.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Max value in Different Columns

    This ??

    in G20

    Please Login or Register  to view this content.
    Copy across
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,901

    Re: Max value in Different Columns

    An alternative is with Power query

    Excel 2016 (Windows) 64 bit
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    22
    2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
    23
    H B E C H L K I C M H B L B B M
    24
    921
    903
    995
    927
    866
    995
    956
    845
    979
    858
    887
    967
    916
    987
    945
    840
    Sheet: Sheet1

    See attached
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,901

    Re: Max value in Different Columns

    Thanks for the Rep.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,009

    Re: Max value in Different Columns

    G19=INDEX($B$2:$B$14,MATCH(G$20,INDEX($C$2:$R$14,,MATCH(G$18,VALUE(Yeardata),0)),0))

    Copy across


    G20=AGGREGATE(14,6,Table1[[2001]:[2016]]/(VALUE(Yeardata)=G$18),1)

    Copy across

+ 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] Merging columns, excluding columns, and calculating columns by division over another
    By Alaa-A in forum Excel Programming / VBA / Macros
    Replies: 54
    Last Post: 02-06-2023, 05:10 AM
  2. Need fix for VBA Code to Custom Sort multiple columns that includes DATE columns
    By Kirk3737 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2020, 02:35 PM
  3. Replies: 5
    Last Post: 10-06-2017, 03:59 PM
  4. Find Duplicates across 2 pairs of columns (2 columns against 2 columns)
    By erjfly2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2015, 06:52 PM
  5. Macro to Copy from 2 Columns, Paste Value in the next 2 Columns, Then clear 1st Columns
    By MHALTTUNEN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2014, 03:34 PM
  6. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 AM
  7. Replies: 6
    Last Post: 12-26-2012, 01:43 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