0

Numbering Lines

My solution has been to use the ROWS command to my benefit.

So I set up the ROWS command as normal - we'll pretend that it's in cell C14, with Cell E14 being the cell that needs to have the number 1 showing
So in Cell D14 (yes, another hidden column), I have the formula =D13+1, and I make sure that I don't put ANY value in D13
another option would be to use the =ROW() command, which basically gives the number of the row the formula is on - and subtract however many rows are at the top of the report

When the Rows command carries down, it will keep updating the formula to add 1 to the row above. So far this is similar to what you said you have done in the past.
the difference comes into column E, in this area, I put the command =NP("EVAL","="""&D14&"""")
NOTE: The extra quotes and ampersand will allow this formula to change as the rows command progresses down the page. There are three quotes and a single ampersand in each set - so be sure you include all of that (the ampersand moves from the end to the front of the expression when closing around the cell reference).

When your report runs and deletes the hidden files - you will still have the resulting value of your row calculation, because the EVAL formula has made it a Jet formula and so the value will remain.
let us know if this solution doesn't work out for you! :)

3 comments

Please sign in to leave a comment.