+ Reply to Thread
Results 1 to 4 of 4

Count city names in A based on date in B

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    31

    Count city names in A based on date in B

    I have a long chart with many city names in column A and then dates in Column B. I want to count the number of time the city name is present when the date is the same...
    in this case Barrie is shown 4 times when the date is 21-Jan-19 and 4 times when the date is 28-Oct-19.
    A B
    Barrie 21-Jan-19
    Barrie 21-Jan-19
    Barrie 21-Jan-19
    Barrie 21-Jan-19
    Barrie 28-Oct-19
    Barrie 28-Oct-19
    Barrie 28-Oct-19
    Barrie 28-Oct-19

    Any assistance appreciated as this is the last formula in what has been a more complicated than needed to be project!!!!
    Last edited by IreneADS; 07-08-2019 at 04:44 PM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Count city names in A based on date in B

    In column C1 (assuming your data starts in A1):
    =COUNTIFS(A:A,A1,B:B,B1)
    and drag down.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Count city names in A based on date in B

    Take a copy of the list and remove duplicates.

    For this new list use the COUNTIFS function to count how many times each combination appears.
    Martin

  4. #4
    Registered User
    Join Date
    01-02-2014
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Count city names in A based on date in B

    Whoot Whoot!!!! Thank you! It worked!!!! And it is an easy formula that I should have been able to figure out!

+ 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 unique values per date and per city
    By ArtNight in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2019, 06:37 AM
  2. Adding up city names to give a total number.
    By Alexandre23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2018, 08:37 AM
  3. Replies: 9
    Last Post: 09-19-2018, 08:50 AM
  4. Replies: 8
    Last Post: 10-16-2017, 03:08 AM
  5. [SOLVED] How can I get country name based on city names in the columns
    By alipezu in forum Excel General
    Replies: 10
    Last Post: 11-29-2016, 02:50 AM
  6. Replies: 3
    Last Post: 02-07-2016, 03:58 AM
  7. Translating City Codes to Names (example attached)
    By cmf0106 in forum Excel General
    Replies: 13
    Last Post: 01-30-2014, 02:07 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