+ Reply to Thread
Results 1 to 5 of 5

Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2024
    Location
    Texas, Texas
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2302)
    Posts
    11

    Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

    Hey, y'all! Working on a spreadsheet and need this to display the number in Sheet!A1, but if it's 0, show $0 instead of just "$".

    The full context while taking out potentially sensitive info is:
    = "(Example Text "&TEXT('Example Page'!J34,"$#,###")&" + Example Text "&TEXT('Example Page'!K34,"$#,###")&"

    I tried not using &TEXT and just referencing the cell directly which works for displaying $0 instead of just $, but it removed the thousands separator commas when there are values > 0.


    Any guidance is much appreciated!

    Kind regards.
    Last edited by CH_AIC; 03-06-2024 at 11:36 AM.

  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 2406
    Posts
    44,662

    Re: Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

    Try:

    ="Example Text $"&IF(A1=0,0,TEXT(A1,"#,###"))
    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

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

    Maybe
    Formula: copy to clipboard
    ="Example Text "&TEXT(J34,"$#,##0")&" + Example Text "&TEXT(K34,"$#,##0")

  4. #4
    Registered User
    Join Date
    01-17-2024
    Location
    Texas, Texas
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2302)
    Posts
    11

    Re: Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

    Those work! Thank y'all!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Make this: &TEXT(Sheet1!A1,"$#,###")&" display 0 instead of blank if value is 0

    Glad to help & thanks for the feedback.

+ 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. If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank
    By AdrianaBotha2 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-15-2023, 01:15 AM
  2. Replies: 1
    Last Post: 05-11-2023, 12:00 AM
  3. How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"
    By london7871 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-10-2019, 09:06 PM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. [SOLVED] Link excel file to workbook "=IF(ISBLANK('Sheet1!A1),"",'Sheet1!A1) " is this reliable?
    By bala04msw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2016, 05:39 AM
  6. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 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