+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Keep a leading hyphen in .csv format???

  1. #1
    Registered User
    Join Date
    08-06-2008
    Location
    East Falls, Philadelphia, PA
    Posts
    24

    Keep a leading hyphen in .csv format???

    I have a spreadsheet with some values containing leading hyphens. When I save this spreadsheet as a .csv file, all values with leading hyphens show the #NAME error.

    For example, I have the value "-050-BLK". When I save as a .csv, excel turns that value into "#NAME". I want to keep the original value, including the leading hyphen in the cell.

    I understand that the .csv format strips a sheet of it's formatting much like notepad does when copying and pasting. Is there a way to get around this so that the .csv will keep my original values and stop reading the hyphen as a different sort of dash or formula precursor?

    Please advise...

  2. #2
    Registered User
    Join Date
    08-06-2008
    Location
    East Falls, Philadelphia, PA
    Posts
    24

    Re: Keep a leading hyphen in .csv format???

    I figured out how to manipulate Excel to place the hyphen where I need it.

    I'm using the spreadsheet to import items in to an e-commerce website.

    I needed to string a few different items together like the following:

    OSWAT_1010
    -095
    -BLK

    to get OSWAT_1010-095-BLK

    I had to enter the information in the cells in this manner:

    OSWAT_1010-
    095-
    BLK

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Keep a leading hyphen in .csv format???

    Hi,

    Assuming your data is in A1:A3, then

    =A1&A2&A3
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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