English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a month of data in an Excel spreadsheet. The date and time are in the same column. It's like 2007-01-15 12:05. I want to count the number of records for each day. I did it by hand and it took me a couple of hours. Next month, I want to take a short cut like using the autofilter or the count formula. I tried the autofilter and it works fine for some days and not other days. I told the autofilter to show everything that contains *01-15* and it didn't show anything that happened on the fifteenth of January. When I used the autofilter to show everything that contains *01-31* it showed everything on January 31st just fine. What could be going wrong? What should I do?

2007-02-13 04:05:06 · 5 answers · asked by Anonymous in Computers & Internet Software

5 answers

Create a new column right next to it(we'll call it column B). Type the following formula "=Left(A1,10)" A1 being the data to be stripped and 10 being the number of digits you want to see. Drag that formula all the way down to the bottom. Then do a subtotal column B with a "count" in each change in column B.

2007-02-13 04:31:49 · answer #1 · answered by Respect My Authoritai 2 · 2 0

Easiest way would be to format the date/time field to just date and click Data>Subtotal to count the records.

If you want to keep that date/time field, add a new column and copy the date/time column to it and perform the steps above.

2007-02-13 04:37:29 · answer #2 · answered by Gaga Warlock 3 · 0 0

Don't forget date and time is expressed in decimals. 12 noon on 15th is expressed in 12.5. Filter using less than and more than expression. eg <16 for 1-15, >=16 for above 16th. We do the formula surgery when this does not get what you want.

2007-02-13 13:26:10 · answer #3 · answered by unnga 6 · 0 0

Let's say your dates are in col. A starting at A1. Then in B1 enter the following formula:

=DAY(A1)

Copy and paste the formula from B2 down to the end of your data in col. A. Let's say it is a total of 100 cells, B1 through B100.

Now in cells C1 to C31 enter the numbers 1 to 31. You can enter 1 in C1, 2 in C2 and drag down to fill the remaining cells with 3 through 31.

Then in cell D1 enter the following formula:

=COUNTIF(B1:B100,C1) Note: in place of B100 would be the actual last row of your data.

Copy and paste the formula in cell D1 to cells D2 through D31.

Now cells C1 through C31 will have the days of the month 1 to 31, and next to each day in cells D1 through D31 will be a count of the number of records for that day.

2007-02-13 05:46:03 · answer #4 · answered by Joliet Jake 3 · 0 0

you need to use the more desirable clear out to extract the unique values from a column of archives and paste them to a sparkling region. then you definately can use the ROWS function to count quantity the kind of things interior the hot selection. determine that the 1st row interior the column has a column header. on the archives menu, factor to clear out, and then click more desirable clear out. interior the more desirable clear out verbal substitute field, click replica to a various region. If the selection which you're counting isn't already chosen, delete any training interior the checklist selection field and then click the column (or go with the selection) that consists of your archives. interior the replica to field, delete any training interior the field or click interior the field, and then click a sparkling column the place you go with to repeat the unique values. go with the unique documents purely verify field, and click ok. the unique values from the chosen selection are copied to the hot column. interior the sparkling cellular under the final cellular interior the selection, enter the ROWS function. Use the selection of unique values which you purely copied via fact the argument. as an occasion, if the selection of unique values is B1:B45, then enter: =ROWS(B1:B45)

2016-11-03 08:33:03 · answer #5 · answered by stever 4 · 0 0

fedest.com, questions and answers