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.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!