+ Reply to Thread
Results 1 to 6 of 6

Move dash at the end of the number to the beginning

  1. #1
    Registered User
    Join Date
    11-01-2020
    Location
    London, uk
    MS-Off Ver
    365
    Posts
    87

    Move dash at the end of the number to the beginning

    Hi, when I download data from the system, the negative digits are reflected by putting a dash at the end of the number. How do I fix that so Excel auto finds all cells that have dash at the end of the cell and moves it to beginning in certain columns? Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,056

    Re: Move dash at the end of the number to the beginning

    Lots of ways to do that. here's just one:

    =IF(ISNUMBER(SEARCH("-",A1)),-1*SUBSTITUTE(A1,"-",""),A1)

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-01-2020
    Location
    London, uk
    MS-Off Ver
    365
    Posts
    87

    Re: Move dash at the end of the number to the beginning

    it worked. Thanks!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,056

    Re: Move dash at the end of the number to the beginning

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Move dash at the end of the number to the beginning

    An other way: Please try

    =IFNA(-TEXTBEFORE(A2,"-"),A2)

    and copy down
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Move dash at the end of the number to the beginning

    You haven't shared exactly how you're importing into Excel. If your import process goes through the text import dialogs, the text import wizard includes a "trailing minus for negative numbers" option.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Move sheet to the very beginning?
    By Maximus2500 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-10-2017, 11:12 PM
  2. Move sheet to the very beginning?
    By Maximus2500 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2017, 03:12 PM
  3. Move Text From End Of String To Beginning
    By Tellm in forum Excel General
    Replies: 4
    Last Post: 06-28-2013, 06:09 AM
  4. [SOLVED] shortcut key to move to beginning of new row
    By bob engler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2006, 03:10 PM
  5. need enter key to move to the next column beginning
    By j pantozzi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2005, 01:00 PM
  6. Move Dash
    By Rick K in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2005, 11:05 AM
  7. Shortcut key to move to beginning of a worksheet
    By Martha in forum Excel General
    Replies: 1
    Last Post: 02-22-2005, 04:06 PM

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