I am running into issues trying to get a data set in the preferred visual format for the folks I am supporting. I've messed around with just normal sorting, pivot tables, and creating a hierarchy in power pivot. My VBA skills are at the level of googling code for what i am attempting to do but I didn't come up with anything that worked for this case.
Below is some dummy data I threw together. The actual data has dozens more columns with data I would have to the right of the desired output. It's all coming from a query with 25k rows and items get added & dropping off throughout the day.
It could go a few layers deeper than this but for a visual, 4 felt plenty. Ultimately I am trying to take the data in columns A:F and have it generate the end result in column I:J which I did manually here for illustration. The color coding was just a visual aid for myself to create the dummy data.
I feel like this is a simple thing and I am just missing something stupid. Any help is greatly appreciated!
Below is some dummy data I threw together. The actual data has dozens more columns with data I would have to the right of the desired output. It's all coming from a query with 25k rows and items get added & dropping off throughout the day.
It could go a few layers deeper than this but for a visual, 4 felt plenty. Ultimately I am trying to take the data in columns A:F and have it generate the end result in column I:J which I did manually here for illustration. The color coding was just a visual aid for myself to create the dummy data.
I feel like this is a simple thing and I am just missing something stupid. Any help is greatly appreciated!
example data.xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Job desc | Title | Parent | Grandparent | Great grandparent | Helper | Desired output = | Title | Job desc | |||
2 | 1 | A | A | A | 1 | |||||||
3 | 2 | B | A | B | E | 5 | ||||||
4 | 3 | C | A | C | F | 6 | ||||||
5 | 4 | D | A | D | B | 2 | ||||||
6 | 5 | E | A | E | G | 7 | ||||||
7 | 6 | F | A | F | H | 8 | ||||||
8 | 7 | G | B | A | G | I | 9 | |||||
9 | 8 | H | B | A | H | Z | 10 | |||||
10 | 9 | I | B | A | I | Q | 16 | |||||
11 | 11 | J | C | A | J | R | 17 | |||||
12 | 12 | K | C | A | K | C | 3 | |||||
13 | 13 | N | D | A | N | J | 11 | |||||
14 | 14 | O | D | A | O | K | 12 | |||||
15 | 15 | P | D | A | P | D | 4 | |||||
16 | 16 | Q | Z | B | A | Q | N | 13 | ||||
17 | 17 | R | Z | B | A | R | O | 14 | ||||
18 | 10 | Z | B | A | Z | P | 15 | |||||
Baseline |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F18 | F2 | =IF(COUNTA(B2:E2)=1,B2,IF(COUNTA(B2:E2)=2," "&B2,IF(COUNTA(B2:E2)=3," "&B2,IF(COUNTA(B2:E2)=4," "&B2)))) |