Hard: Need solution to finding a way to check rollup structure

yoyocancun

New Member
Joined
Mar 16, 2022
Messages
3
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
In this photo the left is a predefined structure where all level 4's rollup to their above level 3's, and so on to level one. For example every sunflower is a flower and every flower is a plant... not a tree. Well on the right is a rollup/mapping table where we go as detailed as possible with the levels based on the 'description'. I need to find a way to create a formula or anything (can be ugly) to check the mappings to make sure nothing is unaligned like so highlighted in red; so level 3's have the correct following level 2 etc.. In my document there are 2000+ 'description rows.' thanks in advance!
1647405266274.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
K6 = "un-common", next higher lever is "herb". But L6 displays "Plant" (next level of "herb"). Is it accepted a jump like this?
 
Upvote 0
Also the structure in my file is 4-500 rows long so it cannot be a manual IF - OR statement
 
Upvote 0
In future, please consider this for your sample data & expected results:
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.


Not greatly tested, but this might be a starting point?

yoyocancun.xlsm
ABCDEFGHIJKLM
1
2
3plantsplants
4flowersflowers|plants
5sunflowersunflower|flowers|plantsxsunflowerflowersplants 
6roserose|flowers|plantsxthymeun-commonplantsCheck
7herbsrose|herbs|plantsxxredwoodstrees 
8commoncommon|herbs|plantsxxoakplantsCheck
9rosemaryrosemary|common|herbs|plantsxxbirchtrees 
10basilbasil|common|herbs|plants
11un-commonun-common|herbs|plants
12thymethyme|un-common|herbs|plants
13cilantrocilantro|un-common|herbs|plants
14treestrees
15redwoodsredwoods|trees
16birchbirch|trees
17oakoak|trees
Sheet1
Cell Formulas
RangeFormula
M5:M9M5=IF(ISNUMBER(MATCH(TEXTJOIN("|",1,IF(I5:L5="x","",I5:L5)),F:F,0)),"","Check")
F3:F17F3=LET(tr,LOOKUP("zzz",B$1:B3,ROW(B$1:B3)),TEXTJOIN("|",1,E3,IFERROR(LOOKUP("zzz",INDEX(D$1:D3,tr):D3),""),IFERROR(LOOKUP("zzz",INDEX(C$1:C3,tr):C3),""),INDEX(B$1:B3,tr)))
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,755
Members
449,049
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top