+ Reply to Thread
Results 1 to 3 of 3

Use a custom formatted value within a formula

  1. #1
    Registered User
    Join Date
    12-09-2021
    Location
    Grand Prairie, TX
    MS-Off Ver
    version 2102
    Posts
    4

    Use a custom formatted value within a formula

    I have a long CONCAT formula that pulls data from tons of different cells in a pivot table, some of which are currency values. I would like the values displayed as $X.XK. The values can go up into the hundreds of thousands of dollars. I know the formula $#,##0.0,"K" works in custom formatting if that is the only value in the cell, but I need it to be added to a formula that includes strings and VLOOKUPs. What's the easiest way to make the CONCAT formula display the text as shown in my example document? I can do the VLOOKUP that pulls the dollar amount in a cell by itself with the conditional formatting, but how do I get it to look exactly how it appears with the custom formatting in another cell?
    Attached Files Attached Files
    Last edited by spaich711; 01-25-2022 at 06:47 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Use a custom formatted value within a formula

    You are showing a formatted text value. You CANNOT format part of a formula, regardless of how it is constructed. VLOOKUP could return a numeric value, in it's own right, and be formatted. But CONCATENATE will produce a text output whatever the component elements may be. And that can't be formatted.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Use a custom formatted value within a formula

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] date cannot be formatted to custom dd-mm-yy
    By sumesh56 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-16-2020, 08:21 PM
  2. [SOLVED] Code needed to replace all Custom formatted cells with currency formatted cells
    By dsrt16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2018, 02:15 AM
  3. [SOLVED] Refer to 'custom' formatted date column in formula
    By moneypennie21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2017, 05:51 AM
  4. Formula to show percentage of cells in each segment in custom formatted cells
    By newbie_Lau in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2016, 01:21 PM
  5. [SOLVED] Replicating a custom formatted cell in a concatenated formula! I think!
    By Wilgoss in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2012, 03:34 PM
  6. Copy numbers that are being custom formatted
    By mame in forum Excel General
    Replies: 20
    Last Post: 11-17-2009, 02:22 PM
  7. Custom Function to Add New Formatted Rows
    By bderri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2007, 05:15 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