Results 1 to 5 of 5

Adding multiple COUNTIFS issue

Threaded View

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    Adding multiple COUNTIFS issue

    I'm trying to build a schedule and I'm running into problems. On rows 37 (and eventually 38 once I nail this formula down) I am attempting to calculate the total number of D shifts and D* shifts based on the duty position in column B. Both D and D* should only count if the duty shift is a AN, AFN, LPN, CIV LPN, or CIV RN. I have what I thought was a solid formula when I only enter D*. This gives me the correct total. However, once I enter just a D, the number adds two more than needed.

    Where am I going wrong in formula in row 37? Please teach me to fish.

    =SUM(COUNTIFS($B$6:$B$35,"AN",E6:E35,{"D","D*"}))+SUM(COUNTIFS($B$6:$B$35,"AFN",E6:E35,{"D","D*"}))+SUM(COUNTIFS($B$6:$B$35,"LPN",E6:E35,{"D","D*"}))+SUM(COUNTIFS($B$6:$B$35,"CIV LPN",E6:E35,{"D","D*"}))+SUM(COUNTIFS($B$6:$B$35,"CIV RN",E6:E35,{"D","D*"}))
    Thanks in advance!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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