+ Reply to Thread
Results 1 to 2 of 2

MAXIFS Problem - Non-Adjacent Range Name

  1. #1
    Registered User
    Join Date
    06-11-2018
    Location
    New Jersey
    MS-Off Ver
    Office 2016
    Posts
    6

    MAXIFS Problem - Non-Adjacent Range Name

    I am using a MAXIFS function in a very large excel database to find the most recent date of many dates listed in each row as long as the date is earlier than a particular date in cell $C$5. The problem is, the dates I am comparing are in non-adjacent columns so my max_range and criteria_range1 are in multiple, non-adjacent columns. (I cannot just include all the "in-between" columns in the range definitions because they contain other types of data.) The output gives me a #VALUE! error. Then, I tried using the CHOOSE function to join all the columns in a range such as:
    =MAXIFS(CHOOSE({1,2,3,4,5,6,7,8},E12,G12,I12,K12,M12,O12,Q12,S12),CHOOSE({1,2,3,4,5,6,7,8},E12,G12,I12,K12,M12,O12,Q12,S12),"<="&$C$5)

    but I still get a #VALUE! error. I don't think I can define fixed range names because I need to do this for thousands of lines of data.
    Any thoughts? Perhaps there is another way to do this? Much appreciated.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: MAXIFS Problem - Non-Adjacent Range Name

    Hi,

    So it's always every other column?

    If so:

    =AGGREGATE(14,6,E12:S12/ISEVEN(COLUMN(E12:S12)-MIN(COLUMN(E12:S12)))/(E12:S12<=$C$5),1)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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] Second highest using maxifs
    By GIS2013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-14-2020, 09:04 PM
  2. [SOLVED] MAXIFS and MINIFS not available
    By TFiske in forum Excel General
    Replies: 7
    Last Post: 05-08-2019, 11:27 PM
  3. MAXIFS with OR criteria
    By HalPlz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-06-2019, 03:24 AM
  4. Problem find date + select non adjacent range
    By mariec_06 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-10-2017, 05:40 AM
  5. MAXIFS with criteria
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 01-25-2017, 10:14 AM
  6. [SOLVED] MaxIFs help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2016, 02:23 PM
  7. MaxIFS help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2016, 03:17 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