+ Reply to Thread
Results 1 to 4 of 4

Multiple COUNTIFS formula but getting the wrong output

  1. #1
    Registered User
    Join Date
    09-24-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    2

    Multiple COUNTIFS formula but getting the wrong output

    Hi All, i am trying to computerize a staffing rota. I have completed a COUNTIF formuala for the individual days total. I am now trying to make another tab so it calculates the amount of shift per individual for the month.

    The original formula for the individual days total is :-

    =SUM(COUNTIFS(F2:F50,{"D","DLTV","0700 - 1300","0700 - 1500","0700 - 1700"}))

    This gives me the correct number of Early shifts for all staffing members for Monday 17 September.

    The problem happens now I'm doing the individual per month. I have tried the formula:-

    =SUM(COUNTIFS(Registered!F9:GG9,{"D","DLTV","0700 - 1300","0700 - 1500","0700 - 1700"},Registered!$F$1:$GG$1,{">=01/09/2018","<=31/09/2018"}))


    I do not get an error message but get a value which, when i check by counting individually is not right.

    The date format i am using is a custom date:-

    ddd - dd - mmm - yy (Mon - 17 - Sep - 18)

    However when typing in the cell i use standard UK format eg. 17/09/18. I'm not sure if this is causing an issue. I have tried to be as thorough as i can above but let me know if you need more info.

    Help would be much appreciated!

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Multiple COUNTIFS formula but getting the wrong output

    Try like this:

    Please Login or Register  to view this content.
    Last time I checked, there isn't a 31st September ;-)

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    09-24-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    2

    Re: Multiple COUNTIFS formula but getting the wrong output

    Thank you WBD worked a treat!

    I was working on October when i was copying this formula hence the 31 days but well spotted

    Frustrating bit is i tried this but didn't know about the & before the date and the >= had to be in there own parentheses.

    Oh well Lesson Learned!

    Much appreciated again!

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Multiple COUNTIFS formula but getting the wrong output

    No problem. There's no hard and fast rule here but I figured it was easier to split up the date criteria. You also don't have to use the DATE() function but I like to use it for clarity.

    WBD

+ 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] Why I'm getting wrong output in sum formula?
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2017, 11:53 PM
  2. [SOLVED] Getting wrong output countifs formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2015, 12:25 PM
  3. [SOLVED] Getting wrong output by year formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-19-2015, 07:26 AM
  4. COUNTIFS issue - Returns zero matches (possibly wrong formula???)
    By sx200n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2014, 08:09 AM
  5. Countifs formula counting the wrong column
    By hedefinesme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2014, 11:42 AM
  6. Adding Multiple COUNTIFS into one formula OR am I doing this all wrong???
    By jczapla in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 09-01-2013, 07:57 PM
  7. Quotation marks in formula giving wrong output
    By pcfreakshow in forum Excel General
    Replies: 1
    Last Post: 10-11-2012, 03:00 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