+ Reply to Thread
Results 1 to 6 of 6

How do I combine the MAX function with the EXACT function?

  1. #1
    Registered User
    Join Date
    04-15-2018
    Location
    Mexicali, Baja California, Mexico
    MS-Off Ver
    2010 & 2016
    Posts
    18

    Question How do I combine the MAX function with the EXACT function?

    This is kind of a time sensitive question. Although, if you find this thread days after I post it I would still appreciate your input.

    The issue is simple:

    I have one tab with Lead IDs and another tab with Call records with a Lead ID column

    The problem is that the lead IDs can be almost identical with the exception of a single letter case difference (i.e. - 'A' instead of 'a')

    The goal is the find the longest call made to each Lead ID. (The call duration is in the Call tab.)

    I need a MAX or MAXIFS that is Case Sensitive.

    I know how to write a case sensitive COUNTIF using SUMPRODUCT.
    And I know how to write a general lookup using an array formula and a combination of INDEX, MATCH, & EXACT.

    But combing MAX or MAXIFS with EXACT has proven quite a hill to climb.

    If you know of any way to find the Maximum value in one column based on an exact case sensitive match in a different column I would really appreciate the help.

    FYI: the following was my best attempt at solving this...

    {=MAX(IF(EXACT(leads!A2,calls!$I$2:$I$37378),calls!$N$2:$N$37378,0))}

    it did not work...and I don't know why.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I combine the MAX function with the EXACT function?

    Your formula seemed to work for me (See attached) although I admittedly did it on a much smaller range. Large ranges and Arrayed formulas might cause a sizable calculation delay.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: How do I combine the MAX function with the EXACT function?

    Try with aggregate

    leads

    B2=AGGREGATE(14,6,Calls!N2:N1000/EXACT(leads!A2,Calls!I2:I1000),1)

  4. #4
    Registered User
    Join Date
    04-15-2018
    Location
    Mexicali, Baja California, Mexico
    MS-Off Ver
    2010 & 2016
    Posts
    18

    Re: How do I combine the MAX function with the EXACT function?

    LOL....it turns out that the column my calls tab wasn't formatted correctly
    it the array max function w/ exact was trying to work with numbers formatted as text
    once I corrected my source data the function I wrote, as you stated, worked.
    Thanks for giving me hope to check my formula again. Was about to abandon it.

  5. #5
    Registered User
    Join Date
    04-15-2018
    Location
    Mexicali, Baja California, Mexico
    MS-Off Ver
    2010 & 2016
    Posts
    18

    Re: How do I combine the MAX function with the EXACT function?

    Quote Originally Posted by ChemistB View Post
    Your formula seemed to work for me (See attached) although I admittedly did it on a much smaller range. Large ranges and Arrayed formulas might cause a sizable calculation delay.
    LOL....it turns out that the column my calls tab wasn't formatted correctly
    it the array max function w/ exact was trying to work with numbers formatted as text
    once I corrected my source data the function I wrote, as you stated, worked.
    Thanks for giving me hope to check my formula again. Was about to abandon it.

    I forgot to include your quote...sorry.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I combine the MAX function with the EXACT function?

    No problems, in fact this forum prefers if you don't include the quotes unless it's important to the post. Glad I could help.

+ 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. How to combine the WORKDAY function with an IF function to build a working Gantt chart.
    By roomaggoo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 07-07-2018, 11:54 AM
  2. Replies: 0
    Last Post: 07-07-2018, 04:13 AM
  3. How do i combine a vlookup function with a countif function?
    By charris58 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-08-2016, 06:15 PM
  4. combine TEXT function with INDEX function
    By kmbondra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-13-2015, 12:39 PM
  5. Macro function has been passed to me. not sure its exact function
    By SeanBaird in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 03:04 PM
  6. please help how to combine IF function with Countif function
    By Dinesh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2006, 03:35 PM
  7. EXACT function
    By chrisrowe_cr in forum Excel General
    Replies: 1
    Last Post: 07-26-2005, 08:29 AM

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