Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   In Excel 2003 how do I add two spaces in a cell before the text (https://www.askmehelpdesk.com/showthread.php?t=516689)

  • Oct 14, 2010, 11:57 AM
    dragster1090
    In Excel 2003 how do I add two spaces in a cell before the text
  • Oct 14, 2010, 12:07 PM
    ebaines

    You can just type the spaces and then your text - that should work OK. Or you can use a single quote mark, like this:

    ' text
  • Oct 14, 2010, 12:44 PM
    dragster1090
    I need to do this in over 5000 cells, is there a macro?
  • Oct 14, 2010, 12:52 PM
    ebaines

    You could use the CONCATENATE command, and then copy and paste it as any times as needed. If you have text "ABCD" in cell A1, and in cell B1 put =CONCATENATE(" ", A1), then cell B1 will end up with " ABCD"
  • Oct 14, 2010, 12:54 PM
    Depressed in MO

    insert a blank column on the right side of the column in which you are wishing to change. Try this formula in the blank cells:

    = (space,space)&(cell with text in it)
    and then hit enter. Copy the formula all the way down. Highlight your newly inserted column, right click, copy/special paste/Values.

    Let me know if this helps or if you need further assistance.
  • Nov 6, 2010, 07:46 AM
    jlisenbe

    Dep, I tried your formula just to be doing it. I could get it to work by putting this: =$A$3&B3 where A3 was an otherwise blank cell with two spaces and B3 contained the text which needed two spaces in front of it. But it did not seem to recognize the "space" in your formula. I kept getting the #NAME? Error. Did I miss something? Did you mean to actually put in "space,space", or just hit the space bar twice? I am in Excel 03.
  • Nov 6, 2010, 09:04 AM
    JBeaucaire

    The forum strips out extra spaces in sentences. You have to use code tags to get text to display in raw format. This is the formula he suggests, copy it as is including the quotes:

    Code:

    ="  " & A1
  • Nov 6, 2010, 10:03 AM
    jlisenbe

    That works. Thanks.
  • Jul 2, 2013, 01:57 PM
    mrsworldlyacct
    Insert a new column. Enter this formula down all relevant rows. This reads: put Text 1 and Text 2 together. In this case "space space" and whatever is in B1

    =CONCATENATE(" ",B1)

    You can then hide the B column to reduce user confusion.

  • All times are GMT -7. The time now is 11:34 AM.