Repeat cell until new value is reached
I need a column formula that will repeat cell contents until a new value is reached, then repeat those cell contents until a new value is reached, and on and on.
I want it to look like it does in this example for Column19 where the department is repeated until there is a new listing.
Any help is appreciated!
Best Answer
-
Try something like this:
=INDEX(Department:Department, MATCH(MAX(COLLECT([Auto Number]:[Auto Number], [Auto Number]:[Auto Number], @cell<= [Auto Number]@row, Department:Department, @cell <> "")), [Auto Number]:[Auto Number], 0))
Answers
-
Try something like this:
=INDEX(Department:Department, MATCH(MAX(COLLECT([Auto Number]:[Auto Number], [Auto Number]:[Auto Number], @cell<= [Auto Number]@row, Department:Department, @cell <> "")), [Auto Number]:[Auto Number], 0))
-
Works perfectly! Thanks Paul!
-
Happy to help. 👍️
-
Hi Paul,
Any thoughts on a column formula that would work for the Bldg 1 & Split Count and Bldg 2 & Split Count columns. Basically I want a running count of the buildings that include the split rows too.
Thank you!
-
Bld 1 & Split:
=COUNTIFS(Bldg:Bldg, OR(@cell = "Bldg 1", @cell = "Split"), [ROw ID]:[Row ID], @cell<= [Row ID]@row)
Bld 2 & Split:
=COUNTIFS(Bldg:Bldg, OR(@cell = "Bldg 2", @cell = "Split"), [ROw ID]:[Row ID], @cell<= [Row ID]@row)
-
This worked, thanks Paul!! Appreciate the help!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!