+ Reply to Thread
Results 1 to 12 of 12

Countif 2 cells match and another column is blank using dates.

  1. #1
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Countif 2 cells match and another column is blank using dates.

    Hey All,

    I posted last week with the same spreadsheet and was thinking after I explained what I was looking for that it seemed too easy of an explanation and that was because I was not thinking it through.
    I've attached a spreadsheet and here is what I really need.

    On the Sheet1 sheet in cell H20 I am looking for the total number of blank spaces on the sheet renewal chart that are under the may section (lease expirations in column E of 5/31/2016). I only want the total for the same type though. So the Type in column B on the renewal chart should match the unit type on Sheet 1 column B.

    The second part of this (which may require a different post) is on Sheet 1 cell L20 I want to do the same thing but instead of dates for this one it would need to look at the section labeled MTM on the Renewal Chart Sheet.

    In this example both H20 and L20 would return a value of 1.

    I probably should note that each month we remove the current month and add the next month. The Renewal Chart should never exceed 200 rows at anytime though.

    Let me know if any part of my explanation doesn't make sense. I greatly appreciate any help on this.

    Thanks!
    Attached Files Attached Files

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

    Re: Countif 2 cells match and another column is blank using dates.

    Try

    =COUNTIFS('Renewal Chart'!M:M,"",'Renewal Chart'!B:B,B20,'Renewal Chart'!E:E,EOMONTH(H$17,0))

  3. #3
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countif 2 cells match and another column is blank using dates.

    That works great for the first Part (Cell H20). Thanks a ton!

    Now for the second part? Since dates are not involved I would think this should be easier. Can I do a VLookup to match a blank cell?

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

    Re: Countif 2 cells match and another column is blank using dates.

    I would think

    =COUNTIFS('Renewal Chart'!M:M,"",'Renewal Chart'!B:B,B20,'Renewal Chart'!E:E,"MTM")

  5. #5
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countif 2 cells match and another column is blank using dates.

    I guess this was easier then I though!


    Thanks so much!

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

    Re: Countif 2 cells match and another column is blank using dates.

    You're welcome.

  7. #7
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countif 2 cells match and another column is blank using dates.

    So I found an error in my own logic on this. I can start a new thread if need be but didn't want to have to reattached. Here is my dilema:

    In the MTM section (L20) in this example I would like it to count any one with a May or June expiration that has MTM listed in the Renewal Status column (column M) as well as any in the MTM section that is blank.

    The May or June Expirations would have to somehow refer to cells H17 and J17 as those will change every month.

    In this example it will return 0 unless you put MTM in column M for that floor plan on the Renewal Chart.

    Let me know if more explanation is needed.

    Thanks!

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

    Re: Countif 2 cells match and another column is blank using dates.

    You could make 2 countifs and add them together

    =COUNTIFS('Renewal Chart'!M:M,"",'Renewal Chart'!B:B,B20,'Renewal Chart'!E:E,"MTM")+COUNTIFS('Renewal Chart'!M:M,"MTM",'Renewal Chart'!B:B,B20)

  9. #9
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countif 2 cells match and another column is blank using dates.

    The only issue with that is it counts anyone that has MTM in Column M will be counted and I really only want to count them if they are in the months that are in cells H17 and J17

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

    Re: Countif 2 cells match and another column is blank using dates.

    Try adding it with the formula from post #2, changing the "" to "MTM"

  11. #11
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countif 2 cells match and another column is blank using dates.

    So this is what I came up with that seems to work. I'm sure there is a much more efficient way to do it but seems to work nonetheless:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I needed the MTM section to have the status as blank and the May and June to show MTM

    Thanks so much for your help!

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

    Re: Countif 2 cells match and another column is blank using dates.

    You're welcome.

+ 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] If dates are blank then in that date row all rightside cells should be blank.
    By Sekars in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-04-2016, 03:19 PM
  2. [SOLVED] Using COUNTIF to match dates
    By chilli76 in forum Excel General
    Replies: 9
    Last Post: 01-31-2016, 07:28 AM
  3. [SOLVED] Countif until blank cell (mutiple blank cells)
    By plasma33 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-07-2015, 01:14 PM
  4. [SOLVED] Use multiple criteria with COUNTIF: between dates and not blank
    By l.shields in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2006, 02:25 PM
  5. COUNTIF, dates and blank cell criteria
    By luvthavodka in forum Excel General
    Replies: 6
    Last Post: 06-01-2006, 04:55 PM
  6. countif non blank cells + dates overdue
    By mcmillad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-19-2006, 08:50 AM
  7. [SOLVED] How do I count blank cells in a column of dates?
    By Ron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2005, 02:06 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