Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old Yesterday, 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: 24
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, 3 views)
Reply With Quote
  #2  
Old Yesterday, 11:44 PM
ArviLaanemets ArviLaanemets is online now Bug With Custom Number Format Windows 8 Bug With Custom Number Format Office 2016
Expert
 
Join Date: May 2017
Posts: 958
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 Today, 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: 24
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 Today, 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: 24
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 Today, 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: 24
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, 3 views)
Reply With Quote
  #6  
Old Today, 11:22 PM
ArviLaanemets ArviLaanemets is online now Bug With Custom Number Format Windows 8 Bug With Custom Number Format Office 2016
Expert
 
Join Date: May 2017
Posts: 958
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
Reply

Thread Tools
Display Modes


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 11:47 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