![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
If column D is all type in different date..(for example, 3 may , 6 may, 4 may, 3 may etc), I would like to know the sum of 3 may, can I do it with excel?
Thanks... |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,805
|
Quote:
If for example you have in D4 the date you want to count (e.g. "3 may") 1) Choose an empty cell 2) Enter the formula: =COUNTIF(D:D,D4) and you will get the total number of "3 may" in this column. Eli |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 2
|
thanks a lot
which is useful. Moreover, if the whole column is full of day range, is it mean that I need to make 365 countif to caculate of different date? |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,805
|
Quote:
Eli |
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
it would be mean on the guy who designed pivot tables....
Have you had a look at them ? these will "count" groups of dates (or groups of anything you want) where you have lots of data a handy utility
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
The Sumif solution can be taken one more step to allow it to be more dyanamic. Chris has hard coded the date into the formula:=SUMIF(your date range,"03/05",your amounts range).
Instead of hard coding the Date place a cell reference that will point to the cell where you can type in any date. For example lets say Dates are in ColA , Amounts for dates in ColB and The Specific date you will type in is in Cell C1 Then formula would be:=SUMIF(A:A,C1,B:B) [ This Message was edited by: Nimrod on 2002-05-05 08:51 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|