Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I number columns based on adjacent cells?

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


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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default How do I number columns based on adjacent cells?

Assume your data starts in B2.

Enter this formula in A2 and copy down as needed:

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

Biff

"johnjesmer" wrote in message
...
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


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



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
Non updatable Unique Random Number Ian Excel Worksheet Functions 30 September 28th 06 08:19 PM
help me on rearrange cells based on its numerical values without repeating any number amrezzat Excel Worksheet Functions 0 November 21st 05 11:01 PM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
Arithmetical Mode Value for Filtered cells in Multiple Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 September 8th 05 12:23 AM
count number of cells based on TWO conditions (2 different columns Troi-Xanh Excel Worksheet Functions 2 February 12th 05 12:46 AM


All times are GMT +1. The time now is 12:37 PM.

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"