+ Reply to Thread
Results 1 to 3 of 3

Leading Spaces to New Columns?

  1. #1
    Registered User
    Join Date
    06-06-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Leading Spaces to New Columns?

    I am using primavera to run reports, and the way that it copies them to excel has the hierarchy separated by leading spaces instead of separating them into columns. Excel doesn't recognize that there is a hierarchy, just spaces. Is there a tool within Excel that could possibly recognize leading spaces as establishing a hierarchy, and if there are leading spaces, that data could be separated to a new column to the right? I don't know if there is some IF statement that I could do, like if there are 5 spaces, move to column B, and if there are 8, then move to column C?

    How it currently is:

    ______A___________B___________ C
    House
    ___Living In
    ______Parents
    ______Kids
    ______Dog

    I want to know if this is possible:

    ____A____________B____________C
    House
    ________________Living In
    ____________________________Parents
    ____________________________Kids
    ____________________________Dog

    But this would be significantly more useful if that could happen:

    _____ A____________B____________C
    House___________Living In_______Parents
    House___________Living In_______Kids
    House___________Living In_______Dog


    Or I would be fine with this:
    _____A_________ B____________C
    House________Living In______Parents
    __________________________Kids
    __________________________Dog

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Leading Spaces to New Columns?

    maybe a small example?

  3. #3
    Registered User
    Join Date
    06-06-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Leading Spaces to New Columns?

    I thought I kind of did post an example, but I'll go into more detail. Okay so below is an example. "A", "B", and "C" are the columns, and all of the data is just under column A. You can see the hierarchy that they are trying to achieve by the leading spaces. Parents, Kids, and Dog are all Living In the House. I want Excel to recognize that Hierarchy.

    ______A___________B___________ C
    House
    ___Living In
    ______Parents
    ______Kids
    ______Dog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove Leading Spaces
    By edwardpestian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2006, 10:34 AM
  2. trim leading spaces
    By captain bob in forum Excel General
    Replies: 2
    Last Post: 08-03-2006, 10:00 AM
  3. trim leading spaces
    By hawat.thufir@gmail.com in forum Excel General
    Replies: 10
    Last Post: 05-11-2006, 04:25 PM
  4. How do I add leading spaces to a value?
    By Chris Brown in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2006, 01:35 PM
  5. Adding leading spaces
    By gcotterl@co.riverside.ca.us in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2006, 02:25 PM
  6. Insert leading spaces
    By DejaVu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2006, 10:09 AM
  7. [SOLVED] Remove Leading Spaces
    By Kirk P. in forum Excel General
    Replies: 6
    Last Post: 03-09-2005, 12:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1