+ Reply to Thread
Results 1 to 5 of 5

Countifs formula counting the wrong column

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Countifs formula counting the wrong column

    Hello,
    Thank you in advance for any help you can provide!

    Here is my problem:
    I have this Countifs formula =COUNTIFS(Milestones!F7:F63,FALSE,Milestones!I7:I63,"<"&TODAY())

    Whereas, F has single cell linked checkboxes, and I is a column of "planned completion" dates. The dates are merged cells accounting for multiple rows/checkbox actions. (One milestone can have multiple actions, if any action is unchecked and the overall milestone date has passed, it should count the number of checkboxes as the number of past due.)

    What I would like is for the formula to count if a checkbox is unchecked AND the planned completion date has already passed, thus giving me a number of actions that are past due. What is happening now, as far as I can tell, is that the formula is counting the number of dates that are past due, instead of the number of actions. Since the dates are merged cells, it is giving me the answer of 2 when there should be 7.

    Is it possible using merged cells, and if not, is there a workaround you can think of??

    Thank you!!!

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Countifs formula counting the wrong column

    Provide a sample non-sensitive workbook...
    that will help us to help you better...



    Don't forget to click *

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countifs formula counting the wrong column

    The problem is the merged cells in column I
    Only the top/left cell of a merged range actually contains a value.

    If say I7:I10 is merged, and shows a date say 7/10/2014
    Then only I7 actually contains the date, I8 9 and 10 are actually blank.

    You would be best served to UNmerge those cells, and put the date in all cells in column I

  4. #4
    Registered User
    Join Date
    04-13-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Countifs formula counting the wrong column

    Thank you for the input. I tried unmerging and I am still having the same problem.

    Mind taking a look? I highlighted the cell with the issue on the first tab.
    Attached Files Attached Files

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countifs formula counting the wrong column

    In addition to UNmerging the cells..
    YOu have to put the date in ALL of the cells that were previously merged.

    Looking at the table, it appears that I7:I11 was merged.
    But when you unmerged it, the date was only in I9.
    You need to put that date in ALL of those cells from I7 to I11

  6. #6
    Registered User
    Join Date
    04-13-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Countifs formula counting the wrong column

    Ah, of course. For formatting/looks/ease of use sake, would it be possible or logical to add an argument to the formula that instead of checking all i column it should check only i9,i14,i30, etc (whichever has the date)? And if so, what would that formula look like?

+ 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] I think I am doing something wrong with COUNTIFS...
    By codyryan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2014, 03:18 PM
  2. What's wrong with this formula? (counting monthly data)
    By dourpil in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2014, 05:16 AM
  3. 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
  4. [SOLVED] COUNTIFS Fuction returning wrong data
    By christopherw34 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2012, 12:31 PM
  5. Counting Formula-What am I doing wrong?
    By sncw7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2006, 03:01 PM

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