Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Find a break in sequential number

I have a spreadsheet that gets populated from an Access database. Once it is
in Excel, I want to look at a column that contains sequential numbers. THere
will be breaks in these numbers. I want to be able to put a blank line
between these breaks and then total 2 current columns.

ANy insights would be appreciated.
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Find a break in sequential number

You might be able to use automatic subtotals.....

Example:
With
A1:A100 containing a list of sequential values, including some breaks in the
sequences, with a column heading in A1 (assuming MyList)

Try this:
Insert a column before Col_A
(column A has moved one column to the right)
A1: GapFlag
A2: FALSE
A3: =IF((B3-B2)1,NOT(A2),A2)
copy A3 down as far as needed

Then, from the Excel main menu:
<data<subtotals
At each change in: GapFlag
Use function: Sum
Add subtotal to: MyList
Click the [OK] button

That will insert a row at each break in the numeric sequence and create a
subtotal for the sequential numbers.

In your situation, you could subtotal on whatever columns you like.

Is that something you can work with?

Post back with any questions.
***********
Regards,
Ron

XL2002, WinXP


"Cyberwolf" wrote:

I have a spreadsheet that gets populated from an Access database. Once it is
in Excel, I want to look at a column that contains sequential numbers. THere
will be breaks in these numbers. I want to be able to put a blank line
between these breaks and then total 2 current columns.

ANy insights would be appreciated.
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Find a break in sequential number

I did this and all I get is False all the way down. see below I am cuer off
of the Line. field

GAPFLAG Line . Store . Ref . Debit Credit
FALSE 1557 130598 $1,200.00
FALSE 1558 130598 ($1,200.00)
FALSE 1570 1485501 $133.00
FALSE 1571 1490140 $180.00
FALSE 1572 1485501 ($133.00)
FALSE 1573 1490140 ($180.00)
FALSE 1672 4766 7669284 $180.00
FALSE 1675 4769 7698692 $37.00
FALSE 1679 4775 7751325 $7.50
FALSE 1680 4775 7751366 $8.50

--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf


"Ron Coderre" wrote:

You might be able to use automatic subtotals.....

Example:
With
A1:A100 containing a list of sequential values, including some breaks in the
sequences, with a column heading in A1 (assuming MyList)

Try this:
Insert a column before Col_A
(column A has moved one column to the right)
A1: GapFlag
A2: FALSE
A3: =IF((B3-B2)1,NOT(A2),A2)
copy A3 down as far as needed

Then, from the Excel main menu:
<data<subtotals
At each change in: GapFlag
Use function: Sum
Add subtotal to: MyList
Click the [OK] button

That will insert a row at each break in the numeric sequence and create a
subtotal for the sequential numbers.

In your situation, you could subtotal on whatever columns you like.

Is that something you can work with?

Post back with any questions.
***********
Regards,
Ron

XL2002, WinXP


"Cyberwolf" wrote:

I have a spreadsheet that gets populated from an Access database. Once it is
in Excel, I want to look at a column that contains sequential numbers. THere
will be breaks in these numbers. I want to be able to put a blank line
between these breaks and then total 2 current columns.

ANy insights would be appreciated.
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Find a break in sequential number

Please ignore my last post. I forgot to change the column to check from B2
to C2
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf


"Ron Coderre" wrote:

You might be able to use automatic subtotals.....

Example:
With
A1:A100 containing a list of sequential values, including some breaks in the
sequences, with a column heading in A1 (assuming MyList)

Try this:
Insert a column before Col_A
(column A has moved one column to the right)
A1: GapFlag
A2: FALSE
A3: =IF((B3-B2)1,NOT(A2),A2)
copy A3 down as far as needed

Then, from the Excel main menu:
<data<subtotals
At each change in: GapFlag
Use function: Sum
Add subtotal to: MyList
Click the [OK] button

That will insert a row at each break in the numeric sequence and create a
subtotal for the sequential numbers.

In your situation, you could subtotal on whatever columns you like.

Is that something you can work with?

Post back with any questions.
***********
Regards,
Ron

XL2002, WinXP


"Cyberwolf" wrote:

I have a spreadsheet that gets populated from an Access database. Once it is
in Excel, I want to look at a column that contains sequential numbers. THere
will be breaks in these numbers. I want to be able to put a blank line
between these breaks and then total 2 current columns.

ANy insights would be appreciated.
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Find a break in sequential number

Thanks for the feedback....I'm glad that worked for you.

***********
Regards,
Ron

XL2002, WinXP


"Cyberwolf" wrote:

Please ignore my last post. I forgot to change the column to check from B2
to C2
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf


"Ron Coderre" wrote:

You might be able to use automatic subtotals.....

Example:
With
A1:A100 containing a list of sequential values, including some breaks in the
sequences, with a column heading in A1 (assuming MyList)

Try this:
Insert a column before Col_A
(column A has moved one column to the right)
A1: GapFlag
A2: FALSE
A3: =IF((B3-B2)1,NOT(A2),A2)
copy A3 down as far as needed

Then, from the Excel main menu:
<data<subtotals
At each change in: GapFlag
Use function: Sum
Add subtotal to: MyList
Click the [OK] button

That will insert a row at each break in the numeric sequence and create a
subtotal for the sequential numbers.

In your situation, you could subtotal on whatever columns you like.

Is that something you can work with?

Post back with any questions.
***********
Regards,
Ron

XL2002, WinXP


"Cyberwolf" wrote:

I have a spreadsheet that gets populated from an Access database. Once it is
in Excel, I want to look at a column that contains sequential numbers. THere
will be breaks in these numbers. I want to be able to put a blank line
between these breaks and then total 2 current columns.

ANy insights would be appreciated.
--
Cyberwolf
Finder of Paths, Hunter of Prey
Ghost of the Night, Shadow of Day
The Wolf



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
Sequential number within excel Dev Excel Programming 4 April 4th 06 07:57 PM
Find missing sequential numbers DTTODGG New Users to Excel 13 March 10th 06 12:56 AM
sequential number breaks Cyberwolf Excel Programming 1 September 23rd 05 08:59 PM
sequential number Malissa Excel Discussion (Misc queries) 3 August 15th 05 09:54 PM
sequential number Mike W New Users to Excel 4 May 12th 05 11:38 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"