+ Reply to Thread
Results 1 to 6 of 6

TEXT formula with custom currency formatting

  1. #1
    Registered User
    Join Date
    05-21-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    Excel 2019
    Posts
    7

    Question TEXT formula with custom currency formatting

    Background: for various reasons we use Excel to draft our financial statements.
    There are a lot of paragraphs that refer to numbers within the financial statements. Easy to deal with by concatenating the text with the references to the numbers.
    I use the TEXT formula to make sure that it is formatted properly.

    Problem: the TEXT formula shows the thousand seperator when it is less than a thousand.
    Example: At year end the entity has an tax loss of R ,500 million (2019: R ,600 million).
    The formula that I use is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where TextFormat is a named range, which refers to R #,##0 and RoundingText refers to million.

    I use named ranges since there are financial statements that have different rounding requirements and it is quicker to change one cell that a bunch of formulas.

    Is there a way to use the named ranges in the TEXT formula without it causing a problem with the thousand seperator short of defining another named range for when the amount is less than a thousand?
    Life is what happens when you make other plans

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: TEXT formula with custom currency formatting

    Can you upload an example workbook?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: TEXT formula with custom currency formatting

    Is this for google docs, or maybe using macros?

    Because some of those functions are not native excel functions...
    TextFormat
    RoundingText
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-21-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    Excel 2019
    Posts
    7

    Re: TEXT formula with custom currency formatting

    Please find attached a small workbook with the formula.
    Attached Files Attached Files

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

    Re: TEXT formula with custom currency formatting

    I don't replicate the problem. When I enter your formula (adjusting references for the year end values), the number format works correctly. Values larger than 1000 show the thousands separator, while values smaller than 1000 do not. I do note that, if I switch decimal and thousand separator (Text Format = "R #.##0" where my system uses "." for decimal separator and "," for thousand separator) and enter something less than 1 into the year end value, then it will display the leading decimal separator (".2" is displayed).

    My only guess is that there is some confusion about what is being used for decimal and thousand separator, but those are things you will need to look at on your own system.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    05-21-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    Excel 2019
    Posts
    7

    Re: TEXT formula with custom currency formatting

    Thank you!
    It's the one thing I did not think of checking .... off to go and check my system settings.
    And it works if I change my settings

+ 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. Replies: 2
    Last Post: 09-26-2018, 03:19 PM
  2. Replies: 0
    Last Post: 09-12-2018, 10:19 AM
  3. [SOLVED] Formatting Cell As Currency But Display With Additional Text
    By vill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2017, 05:16 AM
  4. [SOLVED] Help with Char(10) and formatting text to currency
    By LKM Kevin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-21-2012, 06:09 PM
  5. Formatting custom currency quirk
    By jds217 in forum Excel General
    Replies: 2
    Last Post: 02-10-2006, 01:45 PM
  6. Custom Formatting For Multiple Currency Symbols
    By Strong Eagle in forum Excel General
    Replies: 0
    Last Post: 02-09-2006, 12:10 AM
  7. [SOLVED] Formatting a text box to display as currency
    By Ed P in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2005, 09:07 PM

Tags for this Thread

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