Sequential numbering

J

Jock

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.
 
J

Jacob Skaria

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

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

If this post helps click Yes
 
J

Jock

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
 

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