Example: =LEN(A2)-LEN(TRIM(A2)) will tell you how many leading spaces exist, which usually corresponds to the hierarchy depth.
: If SAP exports levels in a single column with spaces (indentation), use Split Column > By Number of Characters or By Delimiter to separate levels into distinct columns. 2. Standard Excel Formulas Sap Hierarchy Excel
If your organization uses the add-in, you don't need to manually clean the data. Sap Hierarchy Excel
: Often, SAP exports leave blank cells under a parent header. Select the hierarchy columns, right-click, and choose Transform > Fill > Down . Sap Hierarchy Excel