Counting rows

G

gary c

How can I count the rows starting with the cell containing "ASSESSMENT
NUMBER" through the next cell containing "PAID STATUS"? Then, how
can I assign the resulting count to the rows upon which that count was
derived?

Here's my spreadsheet:

A

ASSESSMENT NO 001310350-1 TAX YEAR 2008 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 24.50 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310350-1 TAX YEAR 2009 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.00 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310350-1 TAX YEAR 2010 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.25 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310350-1 TAX YEAR 2011 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.50 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310366-6 TAX YEAR 2008 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 24.50 .00
70-0016 222.50 .00
70-0060 .00 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310379-8 TAX YEAR 2009 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.00 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310379-8 TAX YEAR 2010 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.25 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310379-8 TAX YEAR 2011 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.50 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310380-8 TAX YEAR 2008 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 24.50 .00
PAID STATUS UNPAID
ASSESSMENT NO 001310380-8 TAX YEAR 2009 TAXABILITY CD 0-00
70-0012 13.00 .00
70-0015 21.00 .00
PAID STATUS UNPAID
 
V

Vacuum Sealed

Hi Gary

'Change Column Ref's to suit

=COUNTIF("$A$1:$A$1000", "ASSESSMENT NUMBER")

now if you want to count rows based on 2 criteria then

=SUMPRODUCT(--($A1:$A1000 = "ASSESSMENT
NUMBER"),--($B$1:$B$1000=YourCriteria))

HTH
Mick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top