DaveSClegg
New Member
- Joined
- Dec 13, 2010
- Messages
- 1
Hi
I work in an IT department and have been asked a question about an Excel sheet - they have a sheet with numbered rows (1, 2, 3, etc) but with several rows for heading and title information the first numbered row is row 5.
They have to keep working on this sheet, sometimes adding or removing rows and would like the row numbers to update automatically as they do this. I've given them the formula:
=(ROW()-4)
This is put into cell 1 of each row from row 5, so cell A5 = "1", A6 = "2" and so on. It also means that as rows are added or removed, the numbering updates. So far so good.
However, when a new row is added, the row is blank. They have to copy the first cell from another row and paste into the new row they just added. They want this to happen automatically, so as a new row is added, the first cell will right away show the row number without having to be copied in.
I doubt this is easy to do, and if it requires a load of VBA script then please dont worry about it as I dont want to waste your time writing it all! If its not possible to do, or if its only possible through using VBA then I can just tell them that and that they can stop being so lazy and cope with copying and pasting a single cell!
Thanks,
Dave
I work in an IT department and have been asked a question about an Excel sheet - they have a sheet with numbered rows (1, 2, 3, etc) but with several rows for heading and title information the first numbered row is row 5.
They have to keep working on this sheet, sometimes adding or removing rows and would like the row numbers to update automatically as they do this. I've given them the formula:
=(ROW()-4)
This is put into cell 1 of each row from row 5, so cell A5 = "1", A6 = "2" and so on. It also means that as rows are added or removed, the numbering updates. So far so good.
However, when a new row is added, the row is blank. They have to copy the first cell from another row and paste into the new row they just added. They want this to happen automatically, so as a new row is added, the first cell will right away show the row number without having to be copied in.
I doubt this is easy to do, and if it requires a load of VBA script then please dont worry about it as I dont want to waste your time writing it all! If its not possible to do, or if its only possible through using VBA then I can just tell them that and that they can stop being so lazy and cope with copying and pasting a single cell!
Thanks,
Dave