+ Reply to Thread
Results 1 to 10 of 10

How to Sum cells with conditions.

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    37

    How to Sum cells with conditions.

    Hi, could someone please explain how I would sum the following cells please. I have attache the Excel File. Thanks
    Attached Files Attached Files
    Last edited by Richard Buttrey; 01-13-2017 at 04:23 PM. Reason: Inadequate title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Question

    Hi and welcome to the forum

    Please note that your post does not comply with Rule 1 of our Forum
    RULES. Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Since this is your first post I'll change the title for you but note for the future.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-07-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    37

    Re: Question

    sorry and thanks, will know for next time. Much appreciated!!!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Question

    Please manually add the results you expect, tell us where the results are and explain how you arrived at them. At the moment it's not at all clear to me.

  5. #5
    Registered User
    Join Date
    08-07-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    37

    Re: How to Sum cells with conditions.

    I would like to calculate all the cells that say DAY as 1, and all cells that are AM & PM as .5 at the bottom of each row I would like a sum of how much totals are.

    EX: DAY= A day off, AM & PM is a half day

    Thanks

  6. #6
    Registered User
    Join Date
    10-12-2013
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    36

    Re: How to Sum cells with conditions.

    I attach a solution. Basically what I've done is insert a new column (green shading) immediately to the right of each of yours. Every cell in that green column has a formula that assigns a value based on the text entry in your existing column. If the text entry is "DAY", the value is 1, if it's "AM" or "PM", the value is 0.5, otherwise it's 0. Sum these values at the foot of your original column. Hide all the columns that assign the values. (In the file, the solution isn't implemented for all columns, but you'll get the idea).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-07-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    37

    Re: How to Sum cells with conditions.

    WOW, that was fast, thanks so much this works. Much appreciated for your time!!!

  8. #8
    Registered User
    Join Date
    10-12-2013
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    36

    Re: How to Sum cells with conditions.

    Very happy to help paule!

    BTW, when your problem is fixed, it's courteous on this forum to mark the thread as SOLVED, and also to click the Add Reputation star on the solver's post!

  9. #9
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How to Sum cells with conditions.

    Nice solution.

    Looking at the problem I see two conditions that have the same answer so it should be possible to use a If / Or constraint to make the formula a bit shorter i.e.

    Please Login or Register  to view this content.
    Alf

  10. #10
    Registered User
    Join Date
    08-07-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    37

    Re: How to Sum cells with conditions. Resolved!

    Resolved!!! Much appreciated!!!

+ 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] Mathematical question or excel question? Multiple several numbers in a row.
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-22-2015, 05:48 PM
  2. [SOLVED] Objective Question: High light the right answer with green before next question.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2015, 12:38 PM
  3. database question, excel data sorting question
    By weblisterltd.com in forum Excel General
    Replies: 1
    Last Post: 12-17-2014, 01:35 PM
  4. code to progressively go throughly question based on answer to first question
    By Ishwarind in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2014, 06:48 AM
  5. [SOLVED] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  6. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  7. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 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