I have a column where some cells have dates and others don't
I need a formula that will add up only the cells with dates in it.
I am using (=COUNTIF(AK3:AK274,"*")
but that is giving me a value of zero. The column is formatted as Date.
Thanks!
I have a column where some cells have dates and others don't
I need a formula that will add up only the cells with dates in it.
I am using (=COUNTIF(AK3:AK274,"*")
but that is giving me a value of zero. The column is formatted as Date.
Thanks!
Hi,
as dates are basically numbers, maybe
=COUNT(AK3:AK274)
Or you can write in A1 a start date and in A2 end date
=COUNTIFS(AK3:AK274,">="&A1,AK3:AK274,"<="&A2)
Hope it helps
-----------------------------------------------------
At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.
Please, mark your thread [SOLVED] if you received your answer.
Ok - is there a way to specify only certain dates?
For example there will be dates from every month but I only want it to count dates from July?
=countif(Ak3:ak274,"july")
start date end date 6/30/2014 1/1/2015 9/14/2014 1/14/2015 11/15/2014 2/1/2015 blank cell 2 (needs to count only Jan dates)
Last edited by klethag; 09-25-2015 at 11:08 AM.
Hi,
if you mean from first of July 2015, A1 starting date
=COUNTIF(AK3:AK274,">="&A1)
Or
(adjust your date, I'm using a PC with Italian settings)
=COUNTIF(AK3:AK274,">="&"01/07/2015")
Not sure if it's what you need
Last edited by canapone; 09-25-2015 at 11:16 AM.
No, I need it to count how many times July appears in the column
In the example - for end date I need to count how many end dates happened in the month of january
Basically it needs to add up every time the month of July appears regardless of day of the week in the column but ignore all other dates
Last edited by klethag; 09-25-2015 at 11:19 AM.
Hi again,
to count how many times July appears in AK3:AK273
=sumproduct(--isnumber(AK3:AK273),--(month(AK3:AK273)=7))
iF AK3:AK273 contains also strings, a more prudent formula
=SUM(IF(ISNUMBER(AK3:AK273),IF(MONTH(AK3:AK273)=7,1,0)))
Important: the second formula must be confirmed with control+shift+enter.
Last edited by canapone; 09-25-2015 at 11:26 AM.
That worked!Thank you sooo much
Hi,
thanks for your kind feedback.
Saluti da Firenze
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks