Number rows in a dynamic range

  • Thread starter Thread starter fishmen
  • Start date Start date
F

fishmen

Hi,
How can I to count up quantity of lines in a dynamic range.
for example:

ColumnA; ColumnB
Name1; -
1;20
2;30
3;15
.......
.......
10; 20
Name2; -
1;10
2;15
3;4
4;8
.....


The number of lines between Name1 and Name2 is not known and the numbe
of lines in a dynamic range can vary.
I need Sum(Name1;Name2) - (85)

Thank yo
 
Hi!

Try this:

Assume Name1 is in cell A2.

=SUM(B2:INDEX(B2:B65536,MATCH("Name2",A2:A65536,0)-1))

I don't know how large your range is so I used to row 65536. Adjust to fit
your needs.

Biff
 
Thank you very much!!!

Hi!

Try this:

Assume Name1 is in cell A2.

=SUM(B2:INDEX(B2:B65536,MATCH("Name2",A2:A65536,0)-1))

I don't know how large your range is so I used to row 65536. Adjust to
fit
your needs.

Biff

in
message news:[email protected]...
 

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

Back
Top