+ Reply to Thread
Results 1 to 2 of 2

Counting dated events

  1. #1
    Registered User
    Join Date
    04-08-2009
    Location
    St. Louis, MO, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Counting dated events

    I have data where each date represents a tornado in a state on that date. I have multiple states that have this type of data and need to get data for how many tornadoes occurred on a specific day in each state and then total tornadoes from all the states on that day preferably in a separate continuous column for easy transfer. I have a sample of the data I'll be using. In the end, I'll have more states extended to the right with a lot more dates. If anyone could help me, I need a template to go by that I could morph to what I need. I'm new to excel's macros and only have knowledge of FORTRAN programming. I know I'm asking for a lot but any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Counting dated events

    There are several ways to approach this. The first, using your sample 3 states is to use an INDIRECT formula to find the states listed and date required to do a COUNT formula. It's a little convoluted.

    My suggestion is to NOT have separate columns. I've created a single set of data in columns OPQ and used another simpler formula SUMPRODUCT to count the number of entries that match the state and date selected.

    A little to the right of that, I show how you can create a PIVOT TABLE of the single data set to do the same thing as well. Change the date at the top and the PivotTable keeps changing the results and states listed.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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