How to add comma in multiple formula formatting using CountIf / Round / Sum

sanfrancisco

New Member
Joined
Dec 28, 2014
Messages
8
I have a sheet that I'm trying to add commas to the final output formatting. If I use just the basic function Rount(Sum(D1:D8),) the output shows the final number formatted correctly. I am also trying to aggregate another row together with this and show a total count of the number of units based on CountIf and the text such as CountIf(B1:B8,"*Sold*". When combining these together the output shows this:

$8888 (8)

I need the output to show the first number that's been returned with commas: $8,888 (4)

Formula ="$"&ROUND(SUM(D1:D8,)&" ("&COUNTIF(B1:B8,"*Sold*")&")"
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Actually I copied pasted your formula which already carried an error. Try this -

Excel Formula:
="$" & Text(ROUND(SUM(D1:D8),0)"#,###") &" ("& COUNTIF(B1:B8,"*Sold*") &")"
 
Upvote 0
Still there was some error -

Use this -

Excel Formula:
="$" & TEXT(ROUND(SUM(D1:D8),0),"#,###") &" ("& COUNTIF(B1:B8,"*Sold*") &")"
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,090
Latest member
fragment

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