Is there a way to reference the row above?
I'm trying to mark active child tasks in an overall task. I'd like do =IF(Done@row-1 = 1, 1, 0) in the Active Task column, but we often insert tasks and I don't want to put a hard @row number in there that would need to be maintained when new tasks are added. Same for automatic numbers in a RowID column.
I was also doing this based on status, but we have several subtasks that have the same status and we only want to add additional status' as a last resort.
Does anyone know of a way to do this with Ancestors or a helper column to show when the task above is complete and that is now the active task?
Best Answer
-
Insert an auto-number column (called "Auto) that has no special formatting.
Next insert a text/number column (called "Row") with the following column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then you can incorporate this into your formula
Row@row - 1 will always give the row above regardless of sorting, deleting, or adding rows.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Insert an auto-number column (called "Auto) that has no special formatting.
Next insert a text/number column (called "Row") with the following column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then you can incorporate this into your formula
Row@row - 1 will always give the row above regardless of sorting, deleting, or adding rows.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Amazing!! Thanks @Paul Newcome! This is so helpful!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Hi
Sorry to go into an old post but this is what I want, but to look at the dates.
I want to look at moving rows which have sequential dates based on planning.
=WORKDAY([Online Date]248, 1, {Holidays Range 2})
I also want this to inherit from the date above to repopulate the sequence.
Currently, if we move a row we have to rebuild and pull down all online date formulas to rectify.
-
-
where in the formula do you incorporate the added Row@row - 1 ?
-
@cbredehoeft It depends on the formula you are currently using.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
=MATCH(Auto@row, Auto:Auto, 0)
-
@cbredehoeft Row@row - 1 would not be incorporated into that formula. That formula is used in the [Row] column to output the row number on the sheet so that it can be leveraged by other formulas. These other formulas are where you would incorporate Row@row - 1.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!