+ Reply to Thread
Results 1 to 8 of 8

Count dates and values in multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    88

    Count dates and values in multiple columns

    Hi.

    I wish to create a formula (cell H3) that will count the number times (range K1:K9) appears in column D , but only count if there is a date next too it in Column H.

    Not sure if counta or countif works best or its a question of merging the statements together?

    Many Thanks for your help.

    Count.JPG
    Attached Files Attached Files
    Last edited by kris01; 11-16-2021 at 06:54 AM. Reason: Add attachment

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Count dates and values in multiple columns

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    88

    Re: Count dates and values in multiple columns

    attachment added

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,993

    Re: Count dates and values in multiple columns

    H3=sumproduct(countifs(d6:d1000,k1:k100,h6:h1000,"?*"))
    Last edited by CARACALLA; 11-16-2021 at 07:30 AM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Count dates and values in multiple columns

    Try:
    Formula: copy to clipboard
    =SUM(COUNTIFS(H6:H208,"<>",D6:D208,K1:K9))

  6. #6
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    88

    Re: Count dates and values in multiple columns

    Hello.

    Nearly works. but same problem i have. It counts the spaces in Colum H.

  7. #7
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    88

    Re: Count dates and values in multiple columns

    Brilliant. Thank you Caracalla & TMS for your help.

    Much appreciated.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Count dates and values in multiple columns

    I don't think they are blanks. If you filter on "blanks", then select the visible cells in column H and delete them, the formula works.

    This works without changing the data:
    Formula: copy to clipboard
    =SUM(COUNTIFS(H6:H208,"?*",D6:D208,K1:K9))


    And the "dates" aren't dates either, they are text that looks like dates.

+ 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. Count Multiple Columns by Dates - Line Graph
    By mattycl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-12-2016, 11:44 AM
  2. Replies: 6
    Last Post: 08-19-2015, 07:46 PM
  3. Need to count different values in multiple columns
    By jonez19 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2014, 02:47 PM
  4. Count Values between dates and multiple criteria
    By vpapolu24 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2013, 04:48 PM
  5. Count unique values between two dates in two columns
    By hnantz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2012, 05:57 PM
  6. Replies: 16
    Last Post: 01-11-2012, 10:51 AM
  7. Replies: 5
    Last Post: 04-21-2011, 05:22 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