Parent Child IDs: How to do that in excel?

jbesclapez

Active Member
Joined
Feb 6, 2010
Messages
275
Hello,

I would like to know how to use parent child relationship in excel.
In the example below I have Animals : Some are dogs and some are birds... The 2 first columns are improtant to understand as they design the parent-child relationship.
Screen_Shot_2018_01_31_at_4_56_26_PM.png

gEsj66

Here is the result of this work in an excel format :

IDParentSexColorHeightOpinionDanger
AnimalM
DogAnimalFTallDangerous
PoodleDogMBrown
SheperdDogF
Australian SheperdSheperdFLike
Belgium SheperdSheperdFDislike
German SheperdSheperdFDislike
RottweilerDogF
LabradorDogFLike
Yellow RetrieverLabradorF
Black RetrieverLabradorF
Chocolate RetrieverLabradorF
BirdAnimalFSmallNotDangerous
ParrotBirdM
Amazon ParrotsParrotMBlueDislike
FinchesParrotMLike
LovebirdsParrotMRed

<tbody>
</tbody>


As you can see I added some attributes to it. I am going to use this later in SQL with something like Select All Dogs where Opinion is Like.
But for now, I want to test/try this in excel.

I want to filter the question depending on the ID and an attribute.

I have a table like that :

QuestionIDAttribute
Question1Animal
Question2Poodle
Question3SheperdDislike
Question4Amazon Parrots
Question5Finches
Question6Lovebirds
Question7Bird
Question8Animal
Question9Tall
Question10DogDangerous

<tbody>
</tbody>

So Question 1 will be asked to all animals
Question 2, only to poodles,
Question 3 to all Sheperd (and childs) that I dislike.


Anyone please know how i can do that in excel?

Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi ranman, I do not need the org chart as you call it.

it ended up to be a lot more simple than I though... I made an advanced filter.
in the advanced filter I used formulae with vlookup to look for the parent... Then in the line below of the advance filter I was copiying (simple = ) the parent.... untill i go to the root.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,841
Members
449,193
Latest member
MikeVol

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