W
willwonka
We have a task list log spreadsheet.
column is nothing but a sequential number. The problem is that we
sort this list all the time. What I want is that when we go to the
bottom of the list to add a task, I want it to figure out what the
next number is. The only caveat is that we started over from 0 was we
hit 1000. See below example
Column A
Task #
23
254
655
154
501
11
100
233
998
800
I would like to add some code that when I go to the cell underneath
800 in this example to pul lthe next number that is lower than say...
400.
I know the array formula to enter; but would rather do this with code
so that the uers can just hit cntrl T or some letter.
Here is the array formula that I would use.
{=MAX(IF(A1:A777<400,A1:A777))+1}
so in the example above, I would want A777 to be relative... one cell
above where cursor is.
I'm sure that this is a slam dunk for you pro VBAers.
thanks.
column is nothing but a sequential number. The problem is that we
sort this list all the time. What I want is that when we go to the
bottom of the list to add a task, I want it to figure out what the
next number is. The only caveat is that we started over from 0 was we
hit 1000. See below example
Column A
Task #
23
254
655
154
501
11
100
233
998
800
I would like to add some code that when I go to the cell underneath
800 in this example to pul lthe next number that is lower than say...
400.
I know the array formula to enter; but would rather do this with code
so that the uers can just hit cntrl T or some letter.
Here is the array formula that I would use.
{=MAX(IF(A1:A777<400,A1:A777))+1}
so in the example above, I would want A777 to be relative... one cell
above where cursor is.
I'm sure that this is a slam dunk for you pro VBAers.
thanks.