+ Reply to Thread
Results 1 to 11 of 11

Sumproduct formula to count multiple text

  1. #1
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Sumproduct formula to count multiple text

    hi all

    i'm trying to count various texts in cells for lost days, but am unable to get it to work correctly, below is what i have tried


    =SUMPRODUCT((((($T$250:$T$282="Norfolk")*($Y$250:$AE$282="WEATHER"))+($Y$250:$AE$282="TRUCK BREAK DOWN")))+($Y$250:$AE$282="AGENCY CREW ISSUE"))

    =SUMPRODUCT(((((T250:T282="Herefordshire")*(!$Y$250:$AE$282="WEATHER"))+($Y$250:$AE$282="TRUCK BREAKDOWN")))+($Y$250:$AE$282="AGENCY CREW ISSUE"))

    below is the text that I'm trying to get it to count when they appear in a cell

    WEATHER
    TRUCK BREAK DOWN
    AGENCY CREW ISSUE
    UNIT BREAKDOWN
    MATERIAL ISSUE
    VELOCITY CREW ISSUE
    Attached Files Attached Files
    Last edited by sharky1978; 02-17-2022 at 11:08 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Sumproduct help

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Sumproduct formula to count multiple text

    thanks ali

    i have changed it hope this is better.


  4. #4
    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
    30,736

    Re: Sumproduct formula to count multiple text

    Why are you reference ranges such as $T$250:$T$282 when there is no data ???

    Guessing .....

    =SUMPRODUCT(($T$250:$T$282="Norfolk")*(($Y$250:$AE$282="WEATHER")+($Y$250:$AE$282="TRUCK BREAK DOWN")+($Y$250:$AE$282="AGENCY CREW ISSUE")))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Sumproduct formula to count multiple text

    Sheet1

    T2=SUMPRODUCT((ISNUMBER(MATCH($K2:$Q2,List!$C$3:$C$13,0)))*(ISNUMBER(MATCH($K$1:$Q$1,$K$1:$O$1,0))))

    Copy down

  6. #6
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Sumproduct formula to count multiple text

    sorry it was the area of the excel sheet i was working on, as the early cells i done by manual input and im trying to automate the process and i copied over to a blank sheet so it wasn't to big

    below was what i was trying

    =SUMPRODUCT(($F$2:F33="Hereford")*(($K$2:$Q$34="WEATHER")+($K$2:$Q$34="TRUCK BREAK DOWN")+($K$2:$Q$34="AGENCY CREW ISSUE")))
    Last edited by sharky1978; 02-17-2022 at 11:43 AM.

  7. #7
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Sumproduct formula to count multiple text

    thanks caracalla

    this works to count them but i want it to only to count the ones for each specific contract 1.e hereford should have 5 in T14, cornwall should have 7 in T 6 and norfolk 6 in T10

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

    Re: Sumproduct formula to count multiple text

    Sheet1

    T2=SUMPRODUCT((ISNUMBER(MATCH($K$2:$Q$34,List!$C$3:$C$13,0)))*(ISNUMBER(MATCH($K$1:$Q$1,$K$1:$O$1,0)))*(TRIM(SUBSTITUTE(S2,"DAYS LOST",""))=$F$2:$F$34))

    Copy down


    I changed herefordshire to hereford
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Sumproduct formula to count multiple text

    thanks for the reply that works as well,

    is it possible just to get it T6,10,14 Without copying down as the cells above and below have different formulas in.

    sorry for being a pain

    thanks again for the help

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

    Re: Sumproduct formula to count multiple text

    Only by copying and pasting.

  11. #11
    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: Sumproduct formula to count multiple text

    So, you have only told us half the story!!

    Put the appropriate formula back in T4, 5 & 7. Dlete all below T7. Select T4-T7 and drag down the column.
    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

+ 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] Sumproduct with multiple variants - Help! I'm a newbie to sumproduct
    By KIGeorge in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2019, 01:21 AM
  2. Combine sumif/sumproduct or sumproduct with multiple criteria
    By sab128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2018, 08:25 AM
  3. [SOLVED] Use sumproduct to further parse a sumproduct calculation
    By Araise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 08:17 PM
  4. Count SUMPRODUCT Members / Average of SUMPRODUCT
    By Shingaru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 03:59 PM
  5. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  6. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  7. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM

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