+ Reply to Thread
Results 1 to 5 of 5

SUM range Based On RANGE cells Contents

  1. #1
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    SUM range Based On RANGE cells Contents

    Hello,
    I am Having difficulties creating a formula that sums the "Amount" column based on the content of all cells in "Description" range.

    Not sure if it is possible.

    I have attached a sample with in it a brief description of the criteria that I am looking for.

    Thank you in advance for your Help
    Cheers
    ONP
    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,813

    Re: SUM range Based On RANGE cells Contents

    You can use wildcard characters with SUMIF, so try this in H3:

    =SUMIF(C5:C18,"/MES*",E5:E18) + SUMIF(C5:C18,"/ES*",E5:E18)

    Hope this helps.

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,789

    Re: SUM range Based On RANGE cells Contents

    you can use a SUMIF() with wild cards
    =SUMIF(C5:C18,"/MES*mark to market*",E5:E18)
    if you want to add both possible text strings
    you could add together
    =SUMIF(C5:C18,"/MES*mark to market*",E5:E18)+SUMIF(C5:C18,"/ES*mark to market*",E5:E18)
    you say OR
    I Would Like to Sum Column "E" Based on If Cells in RANGE "C5:C18" contain certain text.
    Such as "/MES" & "mark to market"
    Or Such as "/ES" & "mark to market"
    and Exclude all other values
    The relult would appear in Cell H3
    Hope its possible
    Thank you
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: SUM range Based On RANGE cells Contents

    Thank you Very Much Etaf and Pete
    I never knew about placing the asterix between quotes.
    The missing asterix was the little culprit causing my formulas to fail.

    Much appreciated your help

    Cheers
    Nino

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

    Re: SUM range Based On RANGE cells Contents

    Glad to help, and thanks for the rep and for marking the thread as Solved.

    If the text you are looking for might be embedded anywhere in the strings in column C, you can also use the asterisk before as well as after the text, i.e. "*/MES*", which means any number of characters before, then /MES, and any number of characters after.

    Hope this helps.

    Pete

+ 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] Change value of one cell based on the contents of a range of cells
    By paul031971 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2019, 10:18 AM
  2. Replies: 1
    Last Post: 04-27-2017, 09:28 AM
  3. [SOLVED] Inserting Contents of Range of Cells Into Another Range
    By wowcroftypa in forum Excel General
    Replies: 4
    Last Post: 05-24-2016, 01:23 PM
  4. Replies: 2
    Last Post: 02-06-2016, 10:19 AM
  5. Displaying contents of a cell based on data in a range of cells
    By Willis Copeland in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2014, 02:08 PM
  6. [SOLVED] Counting number of non blank cells based on contents of diferent range
    By icyoung in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-14-2013, 12:14 PM
  7. Replies: 2
    Last Post: 01-26-2011, 11:16 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