How do I number columns based on adjacent cells?

J

johnjesmer

Hello,

Subj: Filling-in data based on adjacent cells.

I am using Microsoft Excel 2000. Here's my (autofill?) question...
I have data in some rows, others are vacant; e.g.,
Col 1 Col 2 Col 3

1 line two line two line two
2 line three line three line three
empty
3 line five line five line five
empty

My first question I suppose should be just how to number the lines within a
range. Anyhoo, as you see, my question is not to number every line within a
range* but rather to number only those lines that
have data in the next column.

Thank you, -John
(e-mail address removed)

*I am aware "Edit, Fill, Series" will number every line.
This is not what I am looking for. Can you help please?
 
B

Biff

Assume your data starts in B2.

Enter this formula in A2 and copy down as needed:

=IF(B2="","",COUNTA(B$2:B2))

Biff
 

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

Top