+ Reply to Thread
Results 1 to 6 of 6

Finding the sum of cells from column A that meet criteria in column B

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Utah
    MS-Off Ver
    unknown
    Posts
    4

    Finding the sum of cells from column A that meet criteria in column B

    I am trying to calculate the sum of revenue from events that used a certificate instead of paying for the package.

    excell help.JPG

    In the image above, the Q column is for comments. Each event that used the certificate will contain the letters "cert". The conditional formatting marks them yellow.
    In Column AB, I have the revenue that we received from all the events. The events whose revenue is lower than the package cost is marked yellow with conditional formatting.
    I want to take a sum of only those event's revenues.

    I tried the following formula in the red-circled cell, but it did not work:

    =SUM(AB2:AB488(COUNTIF(Q2:Q488,{"*cert*"})))

    Which part is wrong?

    I have also tried this: =SUMIF($Q$2:$Q$488,'*cert*',$AB$2:$AB$488)
    Last edited by leanna325; 01-04-2019 at 09:54 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Finding the sum of cells from column A that meet criteria in column B

    welcome to the forum. almost there:
    =SUMIF($Q$2:$Q$488,"*cert*",$AB$2:$AB$488)

    or 1 wildcard lesser if the words all START from cert:
    =SUMIF($Q$2:$Q$488,"cert*",$AB$2:$AB$488)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Finding the sum of cells from column A that meet criteria in column B

    I was trying to see the difference btw OP and benishiryo.

    OP =SUMIF($Q$2:$Q$488,'*cert*',$AB$2:$AB$488)
    Ben=SUMIF($Q$2:$Q$488,"*cert*",$AB$2:$AB$488)

    Leanna, note your use of '*cert*' compared to Ben's. Your profile says you are in USA (?), therefor you need to use " not '
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-04-2019
    Location
    Utah
    MS-Off Ver
    unknown
    Posts
    4

    Re: Finding the sum of cells from column A that meet criteria in column B

    Thank you thank you thank you!!!

  5. #5
    Registered User
    Join Date
    01-04-2019
    Location
    Utah
    MS-Off Ver
    unknown
    Posts
    4

    Re: Finding the sum of cells from column A that meet criteria in column B

    cert is the just the first 4 letters of the word certificate which should be in the comments column. The formula now works to pull out the revenues made only from events where the word certificate is in the comments. But thanks for your contribution!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Finding the sum of cells from column A that meet criteria in column B

    I was actually referring to your use of ' compared to the corrected usage of "

+ 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] Ranking a column of percentages based on the cells that meet criteria (between 100 to 103)
    By scotlandsneo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2015, 09:24 AM
  2. [SOLVED] Need to count all non blank cells in column that meet criteria of two seperaate values
    By tomcoll67 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-26-2014, 04:15 PM
  3. [SOLVED] Formula to use to count the number of cells in a column which meet three sets of criteria
    By Dhabitude in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-11-2013, 11:22 AM
  4. [SOLVED] Advanced Lookup to count cells in a column that meet criteria
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2013, 12:59 PM
  5. Replies: 5
    Last Post: 12-02-2011, 11:48 AM
  6. Sum cells that meet criteria in adjacent column
    By conorsgaffney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-13-2010, 11:01 AM
  7. [SOLVED] count non blank cells which meet criteria in another column
    By cmarsh5035 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2005, 12:45 PM

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