+ Reply to Thread
Results 1 to 3 of 3

can I look up the maximum value in 2 columns?

  1. #1
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    Microsoft Office Home and Student 2019
    Posts
    117

    can I look up the maximum value in 2 columns?

    Can I look up the maximum value in two columns?

    Cell I3 to I5 have basically this code
    Please Login or Register  to view this content.
    is the code I used but I had to split the table so now I need it to also show the max value in column K14:K108.

    Cells J3 to J5 look up those values and return the date in column A
    Please Login or Register  to view this content.
    currently looks up D but I need it to look up column K as well (in this formula)
    Attached Files Attached Files
    Last edited by wildecoyote1966; 02-16-2022 at 02:01 AM. Reason: error

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: can I look up the maximum value in 2 columns?

    The maximum value:

    =MAX(D14:D108,K14:K108)

    and, for the value:

    =IFERROR(INDEX($C$14:$C$200,MATCH($I$3,$D$14:$D$200,0)),INDEX($J$14:$J$200,MATCH($I$3,$K$14:$K$200,0)))

    Revised formula in I3 & J3, only.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    Microsoft Office Home and Student 2019
    Posts
    117

    Re: can I look up the maximum value in 2 columns?

    Hi Glenn.

    Thanks for that.

    I'm considering making a table so I can work out exactly how much the panels have made.

    Over here electricity is charged at different rates at different times of the day.
    I think I have 4 different charge times.

    This current sheet just shows the feed in tariff and the usage charge over the electricity purchased.

    Albert

+ 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] maximum of cells containing same value in two other columns
    By cdad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2018, 09:08 PM
  2. [SOLVED] Maximum consecutive columns with value equal or above 2
    By Teddy Tash in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-24-2016, 02:09 PM
  3. Maximum Number of Columns
    By martin.j.h in forum Excel General
    Replies: 6
    Last Post: 11-26-2013, 11:44 AM
  4. Maximum width of several columns
    By SteveX in forum Excel General
    Replies: 2
    Last Post: 06-06-2008, 11:27 PM
  5. [SOLVED] auto open all columns to their maximum
    By Paul in forum Excel General
    Replies: 2
    Last Post: 09-08-2005, 12:05 PM
  6. [SOLVED] Is there a maximum number of non-contiguous columns that can be h.
    By Harold in forum Excel General
    Replies: 6
    Last Post: 03-01-2005, 06:06 PM
  7. [SOLVED] what is the maximum columns I can have on an excel workbook
    By Zee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2005, 05:06 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