Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default Sequential numbering

What would be the best method to add the next sequential number to column D
when a date is entered in F on the same row? This number must never change
Problems arise when whole rows are removed and the data pasted on another
sheet (historical data) when using something like this:
=IF($F6="","",(MAX($D$4:$D5,complete!G:G,'struck
out'!D:D,stayed!D:D,withdrawn!D:D)+1))
This formula checks the active page and four other sheets for the highest
number and works fine until a row is removed to another sheet.
Is there a code method which will add sequential numbers and not be affected
by removing whole rows of data?
Thank you.
--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Sequential numbering

I am unable to recreate the issue you were mentioning..Try with the below
formula.

=IF(INDIRECT("F6")="","",MAX(INDIRECT("D4:D5"),IND IRECT("complete!G:G"),INDIRECT("'struck out'!D:D"),INDIRECT("stayed!D:D"),INDIRECT("withdr awn!D:D"))+1)

If this post helps click Yes
---------------
Jacob Skaria


"Jock" wrote:

What would be the best method to add the next sequential number to column D
when a date is entered in F on the same row? This number must never change
Problems arise when whole rows are removed and the data pasted on another
sheet (historical data) when using something like this:
=IF($F6="","",(MAX($D$4:$D5,complete!G:G,'struck
out'!D:D,stayed!D:D,withdrawn!D:D)+1))
This formula checks the active page and four other sheets for the highest
number and works fine until a row is removed to another sheet.
Is there a code method which will add sequential numbers and not be affected
by removing whole rows of data?
Thank you.
--
Traa Dy Liooar

Jock

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default Sequential numbering

Hi jacob,
This gives the same result for me.
I don't think a formula is the answer in this case. I have abandoned the
idea of automatic numbering in this instance.

Thanks though
--
Traa Dy Liooar

Jock


"Jacob Skaria" wrote:

I am unable to recreate the issue you were mentioning..Try with the below
formula.

=IF(INDIRECT("F6")="","",MAX(INDIRECT("D4:D5"),IND IRECT("complete!G:G"),INDIRECT("'struck out'!D:D"),INDIRECT("stayed!D:D"),INDIRECT("withdr awn!D:D"))+1)

If this post helps click Yes
---------------
Jacob Skaria


"Jock" wrote:

What would be the best method to add the next sequential number to column D
when a date is entered in F on the same row? This number must never change
Problems arise when whole rows are removed and the data pasted on another
sheet (historical data) when using something like this:
=IF($F6="","",(MAX($D$4:$D5,complete!G:G,'struck
out'!D:D,stayed!D:D,withdrawn!D:D)+1))
This formula checks the active page and four other sheets for the highest
number and works fine until a row is removed to another sheet.
Is there a code method which will add sequential numbers and not be affected
by removing whole rows of data?
Thank you.
--
Traa Dy Liooar

Jock

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 numbering majestyk[_2_] Excel Programming 1 February 16th 09 01:36 AM
PO with sequential numbering with start / end numbering [email protected] Excel Discussion (Misc queries) 1 April 24th 07 03:38 PM
sequential numbering super[_2_] Excel Programming 3 June 29th 05 03:39 PM
Sequential numbering Monique Excel Discussion (Misc queries) 0 March 4th 05 01:01 AM


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