+ Reply to Thread
Results 1 to 3 of 3

Reposition Characters Within A Cell

  1. #1
    Registered User
    Join Date
    03-28-2011
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    1

    Reposition Characters Within A Cell

    I have been supplied with a file that contains about five or six columns (and several thousand rows) of customer balances and credits, the data from which will be imported into my company's accounting software. The files I've been given identify credit values with a 'Minus' sign (-), which my system needs to have...but the symbol is located on the far right of the value. For example: a credit of $100 would display as

    100-

    What I NEED to have is a way to reposition those minus-signs to the LEFT side of the value, so that it reads

    -100

    instead. I can do a 'Find' function to locate the handful of instances where this occurs and manually change the symbol's location, but I'd much rather let Excel do the heavy lifting for me.

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Reposition Characters Within A Cell

    To do it with formulas try this:

    =IF(ISNUMBER(A1+0),A1,"-"&LEFT(A1,LEN(A1)-1))+0

    copied down

    where A1 contains first number in Column A.

    You can make a new helper column with this formula for each of the columns needing fixes.

    Then you can copy those helper columns and paste special >> Values over the originals and then delete the helper columns.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Reposition Characters Within A Cell

    Offered only as an alternative:

    =IF(RIGHT(A1)="-",LEFT(A1,LEN(A1)-1)*-1,A1)

+ 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