Formatting or Formula??

stumped73

New Member
Joined
Jun 7, 2011
Messages
9
Hi all, hopefully this is a simple problem that I'm having but I'm stumped.

I'm using the formula =IF(ISERROR(C5*K5),"",C5*K5) so that if the cell is #N/A it will display nothing at in the cell. I've used a similar formula in numerous columns and it's works great but in a few columns it is not working and shows $ - instead. I've checked for conditional formatting and there is none. I changed the formula to multiply different columns and it actually works. It seems to be something with the formula, but it calculates properly.

Any thoughts?
Stumped73
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I think you see "####". Just make this column wider.
 
Upvote 0
What do you expect to see in the cell if the result is zero?
 
Upvote 0
Thanks for the quick response.

If the result is 0 I don't want to see anything at all. It is showing $- as formatted for accounting. It's not column width and it doesn't show ###.
 
Upvote 0
Not 2 guess, post your workbook please.
 
Upvote 0
Thanks for the quick response.

If the result is 0 I don't want to see anything at all. It is showing $- as formatted for accounting. It's not column width and it doesn't show ###.
... and what number format have you applied to the cell? Accounting, or a custom one? If not a custom one, why not?

A custom one that is accounting but blank for zeroes:

_-£* #,##0.00_-;-£* #,##0.00_-;;_-@_-
 
Upvote 0
It's formatted for accounting. I tried custom as well same thing. Accounting does work for the other columns.

I'm using 2003 but get the same result when I opened the file in 2007.

Unfortunately I'm not able to post an attachment as per the posting rules. Maybe since I'm new here.


EDIT
I tend to think it's more a formula issue. For example, I just modified the formula to =IF(ISERROR(C5*K5),"XYZ",C5*K5) I added "XYZ" in place of the "" just to see if it would show XYZ and it still shows $ -.
 
Last edited:
Upvote 0
In that case it's probable a number close to zero, but not zero. Change your formula to be:

=IF(ISERROR(C5*K5),"",ROUND(C5*K5,2))
 
Upvote 0
I've posted a screenshot to a personal web space. Not as good as the actual worksheet but it's the best I can do right now.

http://users.eastlink.ca/~lauriannriley/

The round formula doesn't help as I want the cells blank where the is nothing being multiplied. Hopefully the screenshot will help clarify.
 
Upvote 0
This is using normal Accounting format:

Excel Workbook
CDEFGHIJKL
1
2
3
4Est QtyPriceTotal Sales
55 4.0020.00
610 5.0050.00
715 6.0090.00
8-
9-
10-
11-
12-
Sheet40


... and this is using my custom number format:
Excel Workbook
CDEFGHIJKL
4Est QtyPriceTotal Sales
55 4.0020.00
610 5.0050.00
715 6.0090.00
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
Sheet40
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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