+ Reply to Thread
Results 1 to 5 of 5

Trailing minus

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Trailing minus

    I'm trying to make a pivot table based on an external data source. The source is a txt-file with trailing minus. When I read this file into a pivot table is this number not converted to a "normal" number.

    This is possible to handle when one import a txt-file into Excel using "Text to columns", but as I see it not with Pivot table. Do any of you know how I can import a file like this to be readable in a pivot table.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Trailing minus

    HI

    The following code applies to text starting at "A1" and strips out a trailing minus if it appears and multiplies the result by -1.

    Please Login or Register  to view this content.
    Regards

    Jeff

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230
    Thank you for your feedback.

    I can't use this method since the text file has more than 100000 lines. It is read as an external source and there must be a conversition before the pivot table. I use excel 2003 and I have the row limitaton there. The VBA code will not run on all lines.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You could run different code on the text file to do the same thing. If you're interested, post a sample of the text file.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230
    I'm interested. Thank you :-) Please find attached a sample.
    Attached Files Attached Files

+ 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