• csv file negative values

    Author
    Topic
    #471008

    Hi All

    I have a csv file that contains a column of ‘values’.
    The ‘negative’ values have a format of xxxx.xxx-
    So the ‘minus’ char is at the end, rather than the beginning.
    When opened in Excel2010, the ‘negative’ values are treated as ‘text’ values, whereas the non-negative values are happily imported as ‘numeric’ values.
    The csv datafile may contain 300,000 records.

    So is there a quick way to ‘convert’ this data column when imported to Excel, as all numeric values?
    Or do I have to create and copy a formula to test for the minus char, then get the number part etc etc.

    Just asking.

    zeddy

    Viewing 1 reply thread
    Author
    Replies
    • #1239100

      If you use the Data-Import from Text, there is an option for trailing negatives.

    • #1239108

      Hi Rory

      Brilliant!

      I had never noticed that option before!

      Many thanks indeed.
      You are a star.

      zeddy

    Viewing 1 reply thread
    Reply To: csv file negative values

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: