Excel question

bh24524

Active Member
Joined
Dec 11, 2008
Messages
365
Office Version
  1. 365
  2. 2007
Hello, I have a formula set up to subtract an amount of a couple columns, which are payment receipts and refunds, from another column which is the Total column. The last column is of course the remaining balance which uses accounting as the number display. I have one conditional format set up in the remaining balance column so that if there is any balance due above $0, it will display the total in blue. My question is why do some columns that have a zero balance display differently? Some display as "0.00"; some display as "-"; and some display as "(0.00)". I would have thought that dragging the formula concerning those columns to the rows below would have kept a consistent format of how the zeros are displayed. The weird thing is that the ones that display the zeros as "0.00" are colored blue, but the other two formats are black text(which is the color I want for when it shows zero). I'd like to show the zeros all as dashes in the accounting number display. Is there a way to have it consistent?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I believe what you are seeing is that your formula results go beyond 2 digits to the right of the decimal. I can't really explain the hows/whys myself, but sometimes the way Excel calculates you will have a result like 4.99999999 or 5.000000001 when you can't see a valid reason for it. (I'm sure if you search the board, you can find more about this phenomenon.) Anyway, your accounting format shows 2 digits to the right of the decimal but the actual cell value doesn't change. In the example above, both would show 5.00 with the accounting format but neither are actually equal to 5.00.

In your situation, the ones that show up "0.00" are actually greater than zero. The ones that show up "(0.00)" are less than zero. The ones that show up as "-" are exactly zero. (You can change the format and increase the decimal places by several places to see the actual value for yourself.)

To counter this effect, what I usually do is to add the ROUND formula to force the result to two digits to the right of the decimal.

So =B1-A1 would be changed to =ROUND(B1-A1,2)

Hope this helps.
 
Upvote 0
Thank you very much man! I tried that and that solved the problem. I will have to remember that formula for the future as it may come in handy.
 
Upvote 0
I occasionally use mail merge in Microsoft Word but not on a regular basis. Many years ago, I made a simple one in Excel using the VLOOKUP formula and a macro.
 
Upvote 0
Hmmm well I don't know if you'll know or not but I have a spreadsheet that keeps track of donations made to an organization. For the sake of simplicity I'll just say I have their name, address, and what they donated(even though there are more columns of information, this is most relevant). There are some people who have donated more than one thing. This is where the mail-merge comes in. I want to send letters to the people for tax purposes acknowledging their donations, but for the ones that have donated multiple times, it is producing several letters for the same person, each listing the separate donation. I want to get it so it gives one person one letter regardless of how many times they've donated and everything they've donated would be listed on that one letter. I know there's a way to do it besides putting the donations in multiple columns in the same row for the same person, but it's beyond me. You wouldn't happen to know a way?
 
Upvote 0
I have done something similar in a mail merge when a list of multiple phone numbers (variable quantity) needed to be listed but I used extra columns like you mentioned. Off the top of my head, I really don't know how to do it when you have multiple rows for the same person and need to include all items. I'm sure this can and has been done before. You might try and find a web board for Word (My assumption is you are using Word) and see if you can get some info from someone with more mail merge experience. Good Luck.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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