#1   Report Post  
Mosqui
 
Posts: n/a
Default Counting cells

I need to count some cells with dates with conditions, count if something is
on the next column.

26 9/12/05
30 9/12/05
26 9/12/05

So, I want to know how many dates I got on 26 (2off)and on 30(1 off).

Is this clear?, sorry if is not.

Thanks

Mosqui
  #2   Report Post  
Max
 
Posts: n/a
Default

One guess ..

Assuming this data is in Sheet1, cols A & B, from row1 down

26 9/12/05
30 9/12/05
26 9/12/05


In Sheet2
--------
Listed in A1 down are the numbers: 26, 30, ..

Put in B1:

=SUMPRODUCT((Sheet1!$B$1:$B$10<"")*(Sheet1!$A$1:$ A$10=A1))

Copy B1 down

This returns:

26 2
30 1
etc

And if you want the text "off" joined with the count result,

Put instead in B1 and copy down:
=SUMPRODUCT((Sheet1!$B$1:$B$10<"")*(Sheet1!$A$1:$ A$10=A1)) & " off"

Adapt the ranges to suit,
but note that we can't use entire col refs in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Mosqui" wrote in message
...
I need to count some cells with dates with conditions, count if something

is
on the next column.

26 9/12/05
30 9/12/05
26 9/12/05

So, I want to know how many dates I got on 26 (2off)and on 30(1 off).

Is this clear?, sorry if is not.

Thanks

Mosqui



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
Counting the number of cells meeting conditional formating criteria Jeff Excel Worksheet Functions 4 July 9th 05 01:18 AM
Counting unique text/number cells from a range sudeepd12 Excel Worksheet Functions 2 June 14th 05 11:21 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
complex fomula: counting cells that are blank shmurphing Excel Worksheet Functions 2 January 6th 05 09:55 PM
Counting blank cells in Pivot Table Andy Joyce Excel Worksheet Functions 1 December 21st 04 10:05 PM


All times are GMT +1. The time now is 09:03 AM.

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

About Us

"It's about Microsoft Excel"