changing the sample in Format Cells

baldi

Board Regular
Joined
Sep 15, 2009
Messages
159
I have 2 cells that are linked. when the cells are empty one of the cells has a zero in it. I go to format the cell and the cell is formated to general with a sample to "0". How do I change the sample to a blank so it doesn't have the "0" in it..


thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Perhaps an IF statement might help

=if(A2>0,A2,"")
 
Upvote 0
Hi

I take it this cell contains a formula pointing back to the previous cell eg:

=A1

One way you might do this is to use the following formula:

=A1&""

Note though that this will convert any numerics entered into A1 into a textual representation of the number.

An alternative formula:

=IF(A1="","",A1)
 
Upvote 0
in some of the cells the general sample is blank and others have a sample with a zero in it. is there any way i can just change the sample to a blank?
 
Upvote 0
Look at Peters suggestion.

Excel Workbook
EFGHI
1MondayTuesdayWednesdayThursday
2Week 104590135
3Week 290-9-18
4Week 378787878
5Week 414798490
6Week 521611820-78
7Week 6285138-9-156
8Week 7354158-38-234
9Week 8423178-67-312
10Week 9492198-96-390
Sheet2

After Custom format as suggested

Excel Workbook
EFGHI
1MondayTuesdayWednesdayThursday
2Week 14590135
3Week 29-9-18
4Week 378787878
5Week 41479849
6Week 521611820-78
7Week 6285138-9-156
8Week 7354158-38-234
9Week 8423178-67-312
10Week 9492198-96-390
Sheet2
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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