+ Reply to Thread
Results 1 to 7 of 7

sum of rows that meet certain criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Chesapeake, VA
    MS-Off Ver
    2007
    Posts
    3

    sum of rows that meet certain criteria

    In a worksheet I am building I have a column called "Cancelled" that uses an "X" to show that the information in the row is cancelled. Another column called "Sent to PM" is used to record a date. What formula should I use to indicate when there is both an "X" in the "Cancelled" column and a date in the "Sent to PM" column for the same row? I want to display the number of rows wherein this condition occurs - in a single cell.
    Last edited by trqwrench; 12-20-2014 at 12:45 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: sum of rows that meet certain criteria

    Sounds like you need COUNTIFS.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-26-2014
    Location
    Chesapeake, VA
    MS-Off Ver
    2007
    Posts
    3

    Re: sum of rows that meet certain criteria

    Bingo, Mr. Shuttleworth. I tried COUNTIFS once but it didn't work either. Apparently I didn't do something correctly, because when I tried again it worked perfectly.

    Nice of you to respond from clear over across the pond. Hope England has a nice Christmas.

    Thank you.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: sum of rows that meet certain criteria

    Hi trqwrench and welcome to the forum.

    Your formula could look like:
    =SUMIFS(C:C,A:A,"x",B:B,">0")

    See the attached example and look at: http://blog.contextures.com/archives...iple-criteria/
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    10-26-2014
    Location
    Chesapeake, VA
    MS-Off Ver
    2007
    Posts
    3

    Re: sum of rows that meet certain criteria

    Thank you, Marvin P for your prompt response. SUMIFS didn't work however COUNTIFS does. The formula I used is: =COUNTIFS(C11:C42,"=X",M11:M42,">0"). I created a log for my section at work

    I kept tinkering with COUNTIF, then I found the COUNTIFS; it works perfectly.

    Thanks for the pointer.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: sum of rows that meet certain criteria

    I thought you wanted the sum because of the title of the thread.

    I'm glad you found an answer to your problem.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: sum of rows that meet certain criteria

    You're welcome.

    Hope England has a nice Christmas
    Yes, let's hope. It's kinda cold, wet and miserable at the moment but there's time for it to improve, one way or another.

    All the best to you all over there for Christmas and the New Year.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Count of rows in an array that meet criteria in column 2 and different criteria in column3
    By reynoldslarry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2013, 01:51 AM
  2. VBA- deleting rows which contain cells that meet criteria, but skip alpha rows
    By cheapkid1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2012, 08:49 AM
  3. Show rows that meet 3 criteria
    By TobiManobi in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-21-2010, 08:55 AM
  4. Copy Rows That Meet Given Criteria
    By BudParker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2008, 05:00 PM
  5. Copy rows that meet a certain criteria
    By James in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2006, 06:35 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