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!
-
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!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.5K Get Help
- 468 Global Discussions
- 156 Industry Talk
- 511 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!