Worf

Organization chart with VBA – Part 2

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I will prepare a test workbook as soon as possible.
 
I know this post is quite old at this point. Amazing code so thank you!

Any idea if there is a way to make this work without needing to format the excel table in such a specific way. My starting point is a 500+ organization and my plan was to filter down to specific teams but having the supervisor setup in excel like this seems like a brain twister without doing manually.

Thanks,
Mark
 
Hello Mark

The code requires a source table formatted that way. I suppose your original table can be automatically filtered and converted to my format using VBA.

I suggest you post a forum question providing the necessary details.
 
Hello Mark

The code requires a source table formatted that way. I suppose your original table can be automatically filtered and converted to my format using VBA.

I suggest you post a forum question providing the necessary details.
Understood and thank you for replying. Do you know if the data is structured with more rows than the colored table in your example will it break?

I notice sometimes with too many rows the output becomes hard to visualize and the boxes are too large and overlap, making it very hard to see the reporting lines. Any idea how to solve?
 
Theoretically there is not a row limit.

I have a total of five articles about this kind of chart, see if there is another that yields better results, such as the one that allows to customise the box positioning.
 

Forum statistics

Threads
1,223,275
Messages
6,171,127
Members
452,381
Latest member
Nova88

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