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.

Test
100
-44
0
Hello

<tbody>
</tbody>

Thank you very much
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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