Displaying a "0" when using the TEXT Formula

Snake Eyes

Board Regular
Joined
Dec 14, 2010
Messages
103
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
How do I display a zero of one of the referenced cells in this formula is a zero?
Excel Formula:
=TEXT(U50,"##")&" - "&TEXT(U51,"##")&" - "&TEXT(U52,"##")

Presently the display for U51 is a blank when U50= 32 U51= 0 and U52= 8
(32 - - 8)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Use "0" rather than "##"
 
Upvote 0
Solution
Hey Fluff,
Interesting. I discounted that because I thought it would always display 0 even if U51 was a number other than 0.
I was wrong.
Thanks for the input.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
If you have whole numbers in the cell like that already, it seems like this would suffice:
=U50&"-"&U51&"-"&U52
 
Upvote 0

Forum statistics

Threads
1,215,931
Messages
6,127,759
Members
449,404
Latest member
cburket

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top