+ Reply to Thread
Results 1 to 2 of 2

Anyway to use color number format in a formula ?

  1. #1
    Forum Contributor
    Join Date
    08-28-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013 on PC, 2011 on MAC
    Posts
    159

    Anyway to use color number format in a formula ?

    I'm looking for a way to use colors in a TEXT(value, format_text) formula, but can't seem to make it work.
    The reason why I'm trying to use it in a TEXT format is because I have a cell that displays two different values, using a line break with CHAR(10)...and need that format to be applied only to one of those two values.

    TEXT(A1,"[Color10]+ ###,##0.00 $;[Red]- ###,##0.00 $;[Black] ###,##0.00 $")

    It works for the +/- part, but colors don't show.
    Any idea how to tweak it ?
    Is it even possible with TEXT ?

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Anyway to use color number format in a formula ?

    Hi, this will only work using a macro
    There are several posts with similar questions (and answers/solutions)
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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. Any way to include font color in a custom number format ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2015, 04:03 PM
  2. Need formula or code to convert number(s) from custom format to number format
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2015, 07:44 PM
  3. Replies: 2
    Last Post: 10-17-2014, 12:25 AM
  4. [SOLVED] Format row cell color based on number of text strings in a column
    By Pierce Quality in forum Excel General
    Replies: 22
    Last Post: 07-31-2013, 02:37 PM
  5. Replies: 1
    Last Post: 03-10-2013, 11:55 AM
  6. [SOLVED] customize number format/Display Text color
    By Jon_P in forum Excel General
    Replies: 7
    Last Post: 05-15-2012, 12:25 PM
  7. [SOLVED] Color Codes: Localizing a number format string
    By stitchy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 02:05 AM

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