+ Reply to Thread
Results 1 to 3 of 3

How to combine a sum of a range with countif of the same range?

  1. #1
    Registered User
    Join Date
    03-20-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    9

    Exclamation How to combine a sum of a range with countif of the same range?

    I am creating a time and attendance spreadsheet for work. I need to log the hours of each person they work, how many days holiday they have taken including half days. When they take half day they still work 4 hours so I need to log 0.5 as a half day holiday taken as well as 4 hours worked.

    B17:B21 is the formula to calculate hours worked from the range of E3:NE3
    C3:C7 is the formula to calculate how many days taken from the range of E3:NE3 (H = 1, HD = 0.5)

    I need B17:B21 to calculate HD = 4 as well as the sum of all hours worked from the range of E3:NE3.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,198

    Re: How to combine a sum of a range with countif of the same range?

    =sum($e3:$ne3)+countif($e3:$ne3,"hd")*4

  3. #3
    Registered User
    Join Date
    03-20-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    9

    Re: How to combine a sum of a range with countif of the same range?

    Thank you

+ 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. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  2. if positive number in one range countif specific value in another range
    By sandreli in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2016, 04:49 AM
  3. Replies: 1
    Last Post: 12-17-2015, 11:22 AM
  4. [SOLVED] countif range doesnt = another range
    By mattress58 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2015, 09:28 AM
  5. [SOLVED] Countif / Sumif Range in a 24 Hour Time Range
    By cwwazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2013, 04:18 PM
  6. Replies: 15
    Last Post: 06-27-2011, 08:58 PM
  7. Replies: 11
    Last Post: 01-24-2007, 04:25 AM

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