Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary Reger
 
Posts: n/a
Default Need help in numbering a column while skipping lines

data that i have is

a b c d
jh address telephone number
ar address telephone number
address telephone number

ar address telephone number

column a needs needs number 1,2,3,4,5, etc.
but only if column be is jh or ar
and they need to be consecutive like you use with autofill numbering
but it needs to skip the spaces and yet keep the numbering in order
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Need help in numbering a column while skipping lines

Gary Reger wrote...
data that i have is

a b c d
jh address telephone number
ar address telephone number
address telephone number

ar address telephone number

column a needs needs number 1,2,3,4,5, etc.
but only if column be is jh or ar
and they need to be consecutive like you use with autofill numbering
but it needs to skip the spaces and yet keep the numbering in order


If your topmost row is in row 1, so the topmost col A cell would be A1,
then try these formulas.

A1:
=IF(OR(B1={"jh","ar"}),1,"")

A2:
=IF(OR(B2={"jh","ar"}),1+MAX(A$1:A1),"")

Fill A2 down as far as needed.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary Reger
 
Posts: n/a
Default Need help in numbering a column while skipping lines

it did not work here is what i got

1 JH
1 JH
1 AR
1 AR
1 JH
1 JH
1 JH
2 AR
2 JH
2 JH
2 JH
2 JH
2 JH

AR

AR

3 JH
3 AR





4 JH


4 JH
4 JH
4 JH
JH
AR

5 AR



5 JH

5 JH
6 JH
6 AR
6 JH
6 JH


"Harlan Grove" wrote:

Gary Reger wrote...
data that i have is

a b c d
jh address telephone number
ar address telephone number
address telephone number

ar address telephone number

column a needs needs number 1,2,3,4,5, etc.
but only if column be is jh or ar
and they need to be consecutive like you use with autofill numbering
but it needs to skip the spaces and yet keep the numbering in order


If your topmost row is in row 1, so the topmost col A cell would be A1,
then try these formulas.

A1:
=IF(OR(B1={"jh","ar"}),1,"")

A2:
=IF(OR(B2={"jh","ar"}),1+MAX(A$1:A1),"")

Fill A2 down as far as needed.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary Reger
 
Posts: n/a
Default Need help in numbering a column while skipping lines

I am sorry this did work. ignore my other reply please

thank you very much for your help

"Harlan Grove" wrote:

Gary Reger wrote...
data that i have is

a b c d
jh address telephone number
ar address telephone number
address telephone number

ar address telephone number

column a needs needs number 1,2,3,4,5, etc.
but only if column be is jh or ar
and they need to be consecutive like you use with autofill numbering
but it needs to skip the spaces and yet keep the numbering in order


If your topmost row is in row 1, so the topmost col A cell would be A1,
then try these formulas.

A1:
=IF(OR(B1={"jh","ar"}),1,"")

A2:
=IF(OR(B2={"jh","ar"}),1+MAX(A$1:A1),"")

Fill A2 down as far as needed.


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
Subtraction formula for consecutive cells in a column, skipping blanks [email protected] Excel Worksheet Functions 2 September 16th 05 12:20 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
graph with one column and two lines Polina Excel Discussion (Misc queries) 1 June 23rd 05 06:45 PM
Excel graph column and two lines. Help Waynes Charts and Charting in Excel 1 April 15th 05 08:24 AM
On a combination chart how do i get 2 lines and 1 column? Richie Charts and Charting in Excel 1 December 22nd 04 12:27 PM


All times are GMT +1. The time now is 12:36 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"