hiding only +ve numbers

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have the data below and I want to hide only positive numbers. So I went to Format Cells --> custom and typed ;

I thought that would ignored the +ve only since I did not write anything for the positive. I know
custom format is like this

positive; negative; 0; text

so ignoring positive simply not type anything, but when I typed only ; I lost all numbers (positive or negative) and 0 as well. Only text left.

[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Test[/TD]
[/TR]
[TR]
[TD]100[/TD]
[/TR]
[TR]
[TD]-44[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[/TR]
[TR]
[TD]Hello[/TD]
[/TR]
</tbody>[/TABLE]

Thank you very much
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I would handle this a different way, with Conditional Formatting.
Use a Conditional Formatting formula like this:
Code:
=AND(ISNUMBER(A1),A1>0)
and choose the white font color option (which blends in with the background, making it invisible).
 
Upvote 0
As you say, one Custom format is of the form postive;negative;zero.

So perhaps you want: ;-General;General

Change "General" to any specific format that you want. And omit the last ";General" if you want to hide zero, as well.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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