#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default count cells

I want to count a range of cells only if date is inserted. Example A7
=sum(a1:a4) however i want it count only the date to be the factor for
counting.

a b c

1 7/24/09 8/24/09 9/24/09

2
3 8/2/09 9/2/09 10/2/09
4 8/10/09 9/10/09 10/10/09
30 60 90

7 3 3 3

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default count cells

=SUMIF(B1:B4,"<",A1:A4)


assuming that it's either a date or a blank cell

--


Regards,


Peo Sjoblom


"ocl0" wrote in message
...
I want to count a range of cells only if date is inserted. Example A7
=sum(a1:a4) however i want it count only the date to be the factor for
counting.

a b c

1 7/24/09 8/24/09 9/24/09

2
3 8/2/09 9/2/09 10/2/09
4 8/10/09 9/10/09 10/10/09
30 60 90

7 3 3 3



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default count cells

Hi,

Try this

=SUMPRODUCT(1*(LEN(A1:A4)=5))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"ocl0" wrote in message
...
I want to count a range of cells only if date is inserted. Example A7
=sum(a1:a4) however i want it count only the date to be the factor for
counting.

a b c

1 7/24/09 8/24/09 9/24/09

2
3 8/2/09 9/2/09 10/2/09
4 8/10/09 9/10/09 10/10/09
30 60 90

7 3 3 3

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default count cells

Thanks,\I trieed them all but this =SUMPRODUCT(1*(LEN(A1:A4)=5)) work
thanks again.
Ocl

"Ashish Mathur" wrote:

Hi,

Try this

=SUMPRODUCT(1*(LEN(A1:A4)=5))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"ocl0" wrote in message
...
I want to count a range of cells only if date is inserted. Example A7
=sum(a1:a4) however i want it count only the date to be the factor for
counting.

a b c

1 7/24/09 8/24/09 9/24/09

2
3 8/2/09 9/2/09 10/2/09
4 8/10/09 9/10/09 10/10/09
30 60 90

7 3 3 3

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default count cells

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Oclo" wrote in message
...
Thanks,\I trieed them all but this =SUMPRODUCT(1*(LEN(A1:A4)=5)) work
thanks again.
Ocl

"Ashish Mathur" wrote:

Hi,

Try this

=SUMPRODUCT(1*(LEN(A1:A4)=5))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"ocl0" wrote in message
...
I want to count a range of cells only if date is inserted. Example A7
=sum(a1:a4) however i want it count only the date to be the factor for
counting.

a b c

1 7/24/09 8/24/09 9/24/09

2
3 8/2/09 9/2/09 10/2/09
4 8/10/09 9/10/09 10/10/09
30 60 90

7 3 3 3



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
count cells, then reset count when value in another cell changes Mitchell_Collen via OfficeKB.com Excel Worksheet Functions 4 February 20th 09 04:22 AM
Count cells with numbers and ignore cells with errors WonderingaboutMicrosoft Excel Discussion (Misc queries) 6 December 10th 06 08:03 PM
How do I count cells with text but ignore cells with spaces? Husker87 Excel Discussion (Misc queries) 2 September 21st 06 12:31 AM
Count cells with specific values in the cells next to them? Christopher Excel Worksheet Functions 2 September 8th 05 05:49 PM
HOW TO FORMATE CELLS TO COUNT CELLS WITH A FILL COLOR? Moore New Users to Excel 1 June 15th 05 06:41 PM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"