+ Reply to Thread
Results 1 to 7 of 7

Sum multiple values based on a certain text

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    477

    Sum multiple values based on a certain text

    hello All

    I need a formula to sum a range of value based on certain texts, the list is dynamic and often changes
    J11 – Formula to sum all LHL INS (highlighted in yellow)
    J12 – sum all N/L INS (Highlighted in Green)
    J13 – sum all RHL INS (Highlighted in Light Blue)

    J14 – sum all LHL (Highlighted in dark Blue)
    J15 – sum all N/L (Highlighted in Purple)
    J15 – sum all RHL (Highlighted in Red)


    Please see attached (colours are for examples only)

    Paul
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Sum multiple values based on a certain text

    You can use this formula in J11:

    =SUMIFS(D:D,C:C,I11&"*")

    and then copy down. The asterisk is a wildcard character, meaning "anything else".

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    477

    Re: Sum multiple values based on a certain text

    the formula can't distinguish between N/L INS & N/L

    it needs to return separate values, It combines N/L INS & N/L when it comes to return N/L

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Sum multiple values based on a certain text

    For J15 You need this =SUMIFS(D:D,$C:$C,$I15&"*",$C:$C,"<>"&"*INS*")

  5. #5
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Sum multiple values based on a certain text

    Or……………….

    In J11 copied down :

    =SUMIFS(D:D,C:C,I11&"*",C:C,IF(RIGHT(I11)="S","<>","<>*INS*"))

    Regards
    Bosco

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Sum multiple values based on a certain text

    Or you could just subtract J12 from the formula in J15, and J13 at the end of the formula in J16.

    Hope this helps.

    Pete

  7. #7
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    477

    Re: Sum multiple values based on a certain text

    thanks to all

    both solutions work perfect.

+ 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. Replacing specific text in multiple text boxes based on cell values
    By ettevi23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2017, 09:21 PM
  2. [SOLVED] Add text values to multiple rows, based off one column
    By hambly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2016, 04:43 PM
  3. [SOLVED] Adding multiple values based on certain text in another cell
    By n3mcx1 in forum Excel General
    Replies: 2
    Last Post: 10-14-2015, 10:07 AM
  4. Replies: 3
    Last Post: 12-03-2014, 05:43 PM
  5. [SOLVED] IF condition based on multiple text values
    By arun.sj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2014, 09:09 AM
  6. Conditional Formatting Based on Multiple Text Values
    By Butman in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-19-2014, 11:57 PM
  7. Replies: 1
    Last Post: 11-23-2011, 01:53 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