I have solved for this before but "simple" was not how it was solved. When you have a tree like this and you are trying to find a parent there are 3 approaches you can take.If it is a consistent and standard tree where the parents are always in the correct column just to the left of the column you are testing for - you can try nested offset and match formulas to get to the parent. The challenge is looking up instead of down which is what has to happen in your data.
If it is more complicated than that you can use VBA to get there by reading each cell and testing for the first data cell above it that works or copying the blank parents down.
A newer option is to load the table into powerquery using the data tab and use that functionality to get the parent to cascade down the columns.
The best possible option is really to have the hierarchy tree export in such a way that the parents copy downward and that is one way to approach the macro version of this answer.
Bookmarks