+ Reply to Thread
Results 1 to 8 of 8

SUM function questions

  1. #1
    Registered User
    Join Date
    04-09-2024
    Location
    Europe
    MS-Off Ver
    Google Sheets
    Posts
    3

    Question SUM function questions

    G'day All - and thank you in advance for any help.

    I'm stuck putting together a formula, which is supposed to sum particular numbers from a column, based on 3 conditions.
    It's a table to track on-call hours and my goal with the formula is to count the hours into monthly summary, based on the date indication and also whether the on-call duty happened on a weekend/holiday.

    All data is being entered manually by the reporting individual
    Column 1 is the date
    Column 2 is the name
    Column 3 are the hours on duty (20% compensation, no matter whether weekday/weekend/holiday) - I was able to do this with a SUMIF, see H3, H8, etc.
    Column 4 are the hours where action has been taken during duty (150% compensation if on weekday, so no holiday/weekend indicator is yes)
    Column 5 is the indicator of weekend/holiday (200% compensation is on holiday/weekend, so any of those indicators are yes)

    I wasn't able to solve the SUM of column 4. I started based on the same method as by column 3, so checking whether date is within a month, but then I wasn't able to take the column 5 indicator into consideration from the whole column, only for a single cell.

    I attached the sheet, marked red the cells where I would like to have the sums for active hours 150% and 200% depending on the holiday/weekend indicator, and again, really appreciate any help.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: SUM function questions

    Welcome to the forum.

    If this is a GoogleSheets query, it's in the wrong place. Please confirm and I'll move it for you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: SUM function questions

    See if this gives you a leg-up:

    =SUMIFS(D:D,A:A,">="&2/1/2024,E:E,"no")

  4. #4
    Registered User
    Join Date
    04-09-2024
    Location
    Europe
    MS-Off Ver
    Google Sheets
    Posts
    3

    Re: SUM function questions

    Hi Ali,

    it is indeed a google sheet query, my bad for posting the wrong place.

    Thank you!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: SUM function questions

    I'll move it. See post #3 - it may work in GoogleSheets - try it. You should be able to adapt it to other requirements.

  6. #6
    Registered User
    Join Date
    04-09-2024
    Location
    Europe
    MS-Off Ver
    Google Sheets
    Posts
    3

    Re: SUM function questions

    And this indeed helped - w.o.w.! Bless you for your quick response, this can be marked as [SOLVED]! Have a great day!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: SUM function questions

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: SUM function questions

    If the date is in a cell (e.g. F1):

    =SUMIFS(D:D,A:A,">="&F1,E:E,"no")

    See post #7 telling you how to sign off the thread.

+ 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. Multiple If function questions
    By dhyun3 in forum Excel General
    Replies: 3
    Last Post: 11-18-2019, 11:56 AM
  2. Function Questions
    By dlow in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-25-2015, 10:52 AM
  3. Mid Function + Find Function Questions
    By King_Yoshi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-04-2014, 04:51 PM
  4. [SOLVED] LOOKUP function (2) questions
    By Joemoisslow in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-10-2013, 05:28 PM
  5. Function formula questions
    By Jayhawk45 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2012, 01:49 AM
  6. What function do i use for these questions?
    By m00jo in forum Excel General
    Replies: 3
    Last Post: 12-14-2011, 11:27 PM
  7. Function Questions
    By Alleyezonme1148 in forum Excel General
    Replies: 2
    Last Post: 06-28-2010, 02:36 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