Way to keep accounting/currency format column blank?

charlesstricklin

Board Regular
Joined
May 6, 2013
Messages
88
Office Version
  1. 2010
Platform
  1. Windows
I have a kind of odd question. I have a column where if the two column's cells are blank, if I format the column as accounting any cells that meet that criteria appear as '$ -', and if I format the column as currency they appear as '$0.00'. Is there a way to keep the cell blank if both of the two cells added together are also blank/unused?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Like this?

24 03 23.xlsm
ABC
1$ 3.00$ 2.00$ 5.00
2
3$ 6.00$ 6.00
4$ 7.00$ 7.00
5$ 5.00$ 5.00$ 10.00
Blank
Cell Formulas
RangeFormula
C1:C5C1=IF(COUNT(A1:B1),SUM(A1:B1),"")

I've tried that and it fails to sum up the cells although it does blank the cell out either way. I've also tried =IF(COUNTBLANK(J2:L2)=0,"",SUM(J2:L2)) which sums up the cells properly but leaves $0.00 as the alternative.
 
Upvote 0
What about you post a small sample with XL2BB then so we can test with the same data you have?
 
Upvote 0
What about you post a small sample with XL2BB then so we can test with the same data you have?

Current Rideshare Income.xlsx
IJKLM
1Miles Uber Lyft GRHB Income
2149$ 49.49$ 27.24$76.73
351$ 14.95$14.95
4106$ 58.95$58.95
5157$ 112.53$112.53
641$ 37.33$37.33
7164$ 112.29$112.29
8130$ 75.69$75.69
9124$ 44.53$44.53
10110$ 114.73$114.73
11 $0.00
12 $0.00
13 $0.00
Rideshare
Cell Formulas
RangeFormula
I2:I13I2=IF(COUNTBLANK(G2:H2)=2,"",H2-G2)
M2:M13M2=IF(COUNTBLANK(J2:L2)=0,"",SUM(J2:L2))


That's cool! I didn't know how to do that.
 
Upvote 0
Thanks for the XL2BB sample data.
Adapting the post #2 formula to the new ranges works for me as I understand the question.
Isn't this what you want as results? If not, which results are incorrect and what should they be?
All four columns are formatted as Accounting.


24 03 25.xlsm
JKLM
1 Uber Lyft GRHB Income
2$ 49.49$ 27.24$ 76.73
3$ 14.95$ 14.95
4$ 58.95$ 58.95
5$ 112.53$ 112.53
6$ 37.33$ 37.33
7$ 112.29$ 112.29
8$ 75.69$ 75.69
9$ 44.53$ 44.53
10$ 114.73$ 114.73
11
12
13
Rideshare
Cell Formulas
RangeFormula
M2:M13M2=IF(COUNT(J2:L2),SUM(J2:L2),"")
 
Upvote 1
Solution
Thanks for the XL2BB sample data.
Adapting the post #2 formula to the new ranges works for me as I understand the question.
Isn't this what you want as results? If not, which results are incorrect and what should they be?
All four columns are formatted as Accounting.


24 03 25.xlsm
JKLM
1 Uber Lyft GRHB Income
2$ 49.49$ 27.24$ 76.73
3$ 14.95$ 14.95
4$ 58.95$ 58.95
5$ 112.53$ 112.53
6$ 37.33$ 37.33
7$ 112.29$ 112.29
8$ 75.69$ 75.69
9$ 44.53$ 44.53
10$ 114.73$ 114.73
11
12
13
Rideshare
Cell Formulas
RangeFormula
M2:M13M2=IF(COUNT(J2:L2),SUM(J2:L2),"")

That is perfect! I'm not sure what I was misunderstanding now.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,956
Members
449,096
Latest member
Anshu121

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