+ Reply to Thread
Results 1 to 12 of 12

Counting highest type value for a given name

  1. #1
    Registered User
    Join Date
    10-25-2023
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Counting highest type value for a given name

    This sheet records e-mail reach outs to people. The response type indicates what the e-mail is responding to.
    Response type KEY: 1=no response, 2=neutral response, 3=Warm response

    I already have a formula that counts the number of unique names of each response type, the issue is a name can respond neutrally (2) and then warm(3) at a later date and they are then double counted.

    I need to count number of unique names for each response type but only count each names highest response value. I.e. If a name responds 1 but then later responds 2 they are are counted once under 2 and not 1.

    Essentially, the formula needs to check all response values for a given name, identify the highest value and add 1 to the count for that response value.

    Date cant be used to identify highest value as once 3 is achieved, future e-mails are recorded as 2.

    I have colour coded the desired result table so its easier to see what I'm trying to count.

    File attached.

    TIA.
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Counting highest type value for a given name

    Hi, excelnoob1234567, welcome to the forum.
    If a helper column is permissible, in D2, copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...and in F3, copied across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by leelnich; 10-31-2023 at 08:36 AM. Reason: Fixed typo; D:D should have been $D:$D
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    10-25-2023
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: Counting highest type value for a given name

    Amazing, that works perfectly. Thank you so much for such a fast response!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Counting highest type value for a given name

    Another option
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Counting highest type value for a given name

    @Fluff13- Nice! I don't have O365, but I knew somebody would chime in with a more modern response. Can you use full-column references?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Counting highest type value for a given name

    Best not to use entire columns, whilst the filter function is fast it will still slow down noticeably with an entire column

  7. #7
    Registered User
    Join Date
    10-25-2023
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: Counting highest type value for a given name

    Thank you Fluff13! This also works beautifully. The helper row from Leelnich is actually quite usefull for filtering names by their highest response value.

    This forum is great, really did not expect so many fast responses with multiple unique and viable methods. Thank you both for taking the time

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Counting highest type value for a given name

    Glad to help & thanks for the feedback.

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Counting highest type value for a given name

    @excelnoob1234567 - You're welcome. Note that I just edited the formula to use full-column references, which are more robust.

    If you're happy with one of these solutions, please go to Thread Tools (just above post#1) and mark your thread as SOLVED.
    And since you're new to the forum...

    At your discretion, you can acknowledge those who contribute solutions by clicking the *Add Reputation star below helpful posts.
    You'd be surprised at how much we appreciate the gesture. - Lee

  10. #10
    Registered User
    Join Date
    10-25-2023
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: Counting highest type value for a given name

    Hi Leelnich,

    I gave you and fluff +1 Rep, thank you again for the help.

    I was wondering if the helper column could be modified so that it puts the highest number achieved on the most recent line of that name, or on the line where the highest number occurs. Currently it puts the number in line with the first occurrence of the name.

    No worries if this is impossible or a pain to do, just though its worth an ask.

    All the best

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,850

    Re: Counting highest type value for a given name

    Is this what you mean?

    =IF(MAXIFS($A$2:$A$14,$B$2:$B$14,B2)=A2,MAX((COUNTIFS(B:B,B2,C:C,{1,2,3})>0)*{1,2,3}),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  12. #12
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Counting highest type value for a given name

    Hi, Ali. Actually, I think MAXIFS would work for both parts of the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...or using full-column references:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regarding full-column references: yes, they slow down calculation if used in a lot of cells, but they don't break when a list is pared by deleting old rows, and they're easier to read. Perhaps the choice should be based on the actual formula, the size of the list and the manner in which it's maintained.

    Of course, if you can live with structured references, the best option is to convert the list range to a Table, which resizes automatically.
    Last edited by leelnich; 11-02-2023 at 12:52 AM.

+ 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] Return the type by highest value for data that has multiple IDs, types and values
    By presleyam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2020, 07:19 AM
  2. Pulling Top 5 Highest & Lowest Values of Certain Type
    By lucas257 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2019, 08:43 AM
  3. Help Counting Number of Times a Column is highest value
    By jimmieip in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2018, 02:49 PM
  4. Counting with highest / Lowest Scores
    By CallumWebley in forum Excel General
    Replies: 2
    Last Post: 09-07-2016, 03:59 AM
  5. [SOLVED] Counting only the cells with the highest numeric value
    By lukela85 in forum Excel General
    Replies: 8
    Last Post: 04-16-2016, 07:16 AM
  6. [SOLVED] Counting cells excluding the highest 2 outcomes
    By Christopherdj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-19-2013, 12:43 AM
  7. Counting the Highest value within cell with mulitple values
    By ROB40160 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2012, 01:21 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