Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88809

Formula to Sequnce Numbers from the Max number present in the column based on rules

$
0
0

Looking for a complex formula or a VBA script to create for the data below:

jobid  dep  job_no   Sequence   
 aaa   FJ     1         1        (existing data)
 aaa   FJ     1         2
 aaa   FJ     1         5
 aaa   RJ     1         1
 aaa   FJ     2         1
 aaa   FJ     2         2
 aaa   FJ     2         4
 aaa   FJ     2         5
 ccc   RJ     1         1
 ccc   FJ     2         1
 aaa   FJ     1         6       (newly added data)
 aaa   FJ     1         7
 ccc   FJ     2         2

Need the sequence column to auto populate or something similar.

So basically there will already exist a table as above, but what the formula should do is continue the count from the last max count irrespective of a deleted number in between for the newly added data when the columns are matched.

Any solution will be appreciated.


Viewing all articles
Browse latest Browse all 88809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>