+ Reply to Thread
Results 1 to 2 of 2

How to right justify decimal formatted output

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    How to right justify decimal formatted output

    I have one of my fields as a decimal (5,2) format and when I do a query statement, the output is left justified. I would like it right justified. There is a setting in MySQL for right justified, but it doesn't seem to work with decimal data types.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to right justify decimal formatted output

    Make sure your cells are Number Format|General and Alignment|General. They should then automatically right justify decimal values.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

+ 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] Custom format in Excel 2011 doesn't decimal-justify.
    By DMVantastic in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-17-2017, 10:24 PM
  2. IF Statement Help
    By hutchgeo4 in forum Excel General
    Replies: 1
    Last Post: 08-16-2015, 10:48 PM
  3. [SOLVED] Take a number down to just two decimal places (true, not just formatted)
    By 00pumpkin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 06:08 PM
  4. Conditional Output to Pre-Formatted Worksheet
    By sisu in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-14-2011, 12:05 PM
  5. Listbox Formatted to 2 Decimal Places
    By zimbo109 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2010, 01:16 PM
  6. Replies: 3
    Last Post: 04-11-2006, 04:20 PM
  7. formatted output
    By excelguru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2005, 02:44 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