custom format for percents

craigexcel

Active Member
Joined
Jun 28, 2006
Messages
298
Office Version
  1. 2016
Platform
  1. Windows
I’m trying to come up with a custom cell format that will display percentages (only the numbers), separated by the ‘pipe’ character (above the backslash on the keyboard).

Initially, I decided on “00 | 00”, which works fine for nearly all combinations. But of course, some cells will need to be “0 | 100”, or, “100 | 0”, which will then display as “01 | 00”, or, “10 | 00”, which doesn’t reflect the values correctly.

I also tried entering the data as “0,100” which works, but that display seems like it could cause some potential confusion. (At this point, just knowing what the percentages are is the goal. I don’t think the numbers represented by each cell’s contents will need to be used. If so, I can extract by formula.)

Can a custom format be devised that accounts for these too? A custom format is as far as I want to go with this, and can’t use a helper column either. I’d appreciate any suggestions you may have.

[note: a question for work, so those tech details are Excel 2016, running on Windows 10 Enterprise, which is different from my profile.]
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
And obviously, I can manually enter '<percent> | <percent>', and that will work. But I'm hoping to avoid having to actually type the pipe character, and the 2 values will still display correctly.
Further, I could always format the cells as "0000", but think that could potentially be confusing too.
 
Upvote 0
Try this cell format... 00"%" "|" 00"%"
Thanks for your reply, EXCEL MAX. I tried that format, entered "0100", and the displayed 'value' is
01% | 00%

While I could work with the % signs, I need for the "1", in this case, to be to the right of the pipe character.
 
Upvote 0
If you trying to show numbers with three digits you need to add three zeros to format from both sides...
000"%" "|" 000"%" and enter number with six digits,
otherwise computer will be confused asking himself would you like to show number with three digits
from left or right side of the pipe.
 
Upvote 0
What is the actual number in your cells for the expected 0|100 and the 100|0 cases?
 
Upvote 0
Rick Rothstein -- I think the "actual" number, in this case, is a misnomer. What I'm looking to do is enter, into a cell, what is essentially an allocation notation, the theoretical sum (of the 2 'values') is to be 100%. A cell's 'value' could be "80 | 20", "15 | 85", "0 | 100", etc.

Tetra201 -- though I haven't quite figured out that custom format yet, I did try that format, and it does exactly what I'm looking for. Many thanks!!!
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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