Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2025, 09:20 PM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default Bug With Custom Number Format

There seems to be something wrong with a certain custom number format. This is the custom entry I made:


Code:
General;-General;"";@

It should display any number as I entered it except for 0.

As you can see in column A of my worksheet, when I enter a number with this format the number is treated as text, not a number.

Bug 2: In column B, I entered 0's and converted them to values, but the 0's display even though the format is supposed to suppress them.

What gives? I want a custom format where numbers are displayed as General but not zeros.
Attached Files
File Type: xlsx Sample.xlsx (8.8 KB, 5 views)
Reply With Quote
  #2  
Old 11-12-2025, 11:44 PM
ArviLaanemets ArviLaanemets is offline Bug With Custom Number Format Windows 8 Bug With Custom Number Format Office 2016
Expert
 
Join Date: May 2017
Posts: 960
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Format both columns as "0;-0;;@"
You can enter 0's, but they aren't displayed.
NB! the value of cell with entered 0 in it remains 0, Formatting cant change the value in cell (date format will be exception, as with it whenever the entered value can be interpreted as date, the Excel itself takes over and replaces the entry with date in current format) - it only affects how this value will be displayed!
Reply With Quote
  #3  
Old 11-13-2025, 02:44 PM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default

Not sure what you mean by NB. the problem with "0;-0;;@" is that if I enter a number as a decimal, it rounds off to the nearest integer. That's why I was using my formula:
"General;-General;;@"
It would seem to display the number as entered except for zeros, but as I said, it seems to create strange problems. I don't understand why my formula does not work
Reply With Quote
  #4  
Old 11-13-2025, 02:48 PM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default

It seems to with without the @ symbol at the end: "General;-General;;"


But then it is blank when I enter text. I don't see why including the @ screws up the format.
Reply With Quote
  #5  
Old 11-13-2025, 03:12 PM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default

I've posted a spreadsheet which shows I can't use "General" in the format without either suppressing Text or not suppressing zeros
Attached Files
File Type: xlsx Bug.xlsx (9.5 KB, 5 views)
Reply With Quote
  #6  
Old 11-13-2025, 11:22 PM
ArviLaanemets ArviLaanemets is offline Bug With Custom Number Format Windows 8 Bug With Custom Number Format Office 2016
Expert
 
Join Date: May 2017
Posts: 960
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Do you want enter numbers and text into same column? When yes, then reconsider the idea!

Use tables to enter any data - with header row at top, and every table column dedicated for single type of data. In case you need to present entered data in some different format, create report(s) sheets, which read data from data entry sheet(s), and display it in wanted format.
Reply With Quote
  #7  
Old 11-14-2025, 07:47 AM
xor xor is offline Bug With Custom Number Format Windows 11 Bug With Custom Number Format Office 2021
Expert
 
Join Date: Oct 2015
Posts: 1,103
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

This format code works fine for me:

Standard;-Standard;""

I guess you should replace ; with ,
Reply With Quote
  #8  
Old 11-14-2025, 03:50 PM
macropod's Avatar
macropod macropod is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,511
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your workbook, as supplied, doesn't have your General;-General;;@ format applied to that column. When I apply it, the 0s disappear.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 11-15-2025, 11:31 AM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default

Here's what I found General;-General;"" works.
If I had a semicolon at the end General;-General;""; strings dissapear


And if I try General;-General;"";@ and add a number it treats it as text.


That doesn't happen with 0;-0;"";@


If 0;-0;"";@ allows me to enter numbers as values,


Why doesn't General;-General;"";@ work the same way?
Reply With Quote
  #10  
Old 11-15-2025, 12:20 PM
macropod's Avatar
macropod macropod is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,511
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

As I said, the General;-General;;@ format works for me.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old Yesterday, 04:26 PM
roger.stern@mail.com roger.stern@mail.com is offline Bug With Custom Number Format Windows 10 Bug With Custom Number Format Office 2021
Novice
Bug With Custom Number Format
 
Join Date: Sep 2023
Posts: 26
roger.stern@mail.com is on a distinguished road
Default

Ok. Thanks. Not sure how that could happen. I have Office 365
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug With Custom Number Format Using certain values in custom number format for vertical chart axis? laith93 Word 6 08-02-2021 11:31 PM
Bug With Custom Number Format Custom format 4 digit number to 0:00 Marcia Excel 5 06-05-2021 11:06 PM
Bug With Custom Number Format Creating a custom number format bremen22 Excel 2 01-16-2014 07:23 AM
Custom Number Format for Chart deadrxn24 Word 4 03-18-2012 05:38 PM
Bug With Custom Number Format custom number format: change thousands separator Ward Excel 1 06-07-2011 08:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft