Custom Format cell to leave blank (need help adjusting current formula)

muad'ebe

New Member
Joined
Jun 12, 2002
Messages
18
I am currently using this formula in the custom format of the cell -

0.00;-0.00;;@,

This gives numerical results in the cell in this format - 0000.00

I would like to adjust the formula to add the comma as the thousands separator when necessary to produce this format - 0,000.00 (when over a thousand) 000.00 when less than a thousand.

I tried this 0,000.00;-0,000.00;;@, but it puts the comma in the cell even when the number value is less than a thousand ( ,253.00)

The reason for the custom format is that I am pulling numbers from sheets that don't always exist (Sheets are added as necessary) and I want the cell to remain blank when there is no value being pulled in from the non-existing sheet.

I admit I don't fully understand how to get the custom format right. Any help is greatly appreciated!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
How about
Excel Formula:
#,##0.00;-#,##0.00;;@,
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0
Glad we could help & thanks for the feedback.
I'm wondering if there's a way to modify this formatting so that when the number is ZERO (or no entry) that there would be an empty cell rather than the comma which currently populates the cell when the value is zero.

Using this format - #,##0.00;-#,##0.00;;@, (Would like blank cell for zero, currently it leaves just the comma ",")
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,251
Members
453,027
Latest member
Lost_in_spreadsheets

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