Sum or Sumifs of Values + Percentage in a single cell

gannybun

New Member
Joined
Dec 10, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I understand that you can use =concat to combined the text of columnE and columnF
Would like to explore the possibility to see if there a formula to directly present the value in yellow below

thank you very much! please let me know if this is the wrong place to post happy to redirect the enquiry somewhere else :)
1704879117398.png


Data poolSummary using =sumifs
ColorScoreTotalPercentPresent as
Blue5,000Blue13,050
58.7%​
13,050 (58.7%)
Red3,440Red9,170
41.3%​
9,170 (41.3%)
Blue3,00022,220
100%​
Blue5,050
Red4,500
Red1,230
Total22,220
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
in H3
=E3&" ("&F3&")"
copy down to H4

Replace E3 and F3 above with the formulas in those cells if you don't want to display E3 and F3
 
Upvote 0
Try This

On cell "H3"
Excel Formula:
=VSTACK(CONCAT(SUMIF(A3:A9,D3,B3:B9)," (",TEXT(SUMIF(A3:A9,D3,B3:B9)/SUM(B3:B8),"0.0%"),")"),CONCAT(SUMIF(A3:A9,D4,B3:B9)," (",TEXT(SUMIF(A3:A9,D4,B3:B9)/SUM(B3:B8),"0.0%"),")"))

1704880429424.png
 
Upvote 0
@Special-K99 i wanted a formula to do this. without using column E or F.

@SunnyAlv i will give it a try in a while. can i introduce the thousand format into my value (10,000)? ? so that what is presented is 34,543 (45.3%)
 
Upvote 0
Excel Formula:
=CONCAT(SUMIF(A3:A9,D3,B3:B9)," (",TEXT(SUMIF(A3:A9,D3,B3:B9)/SUM(B3:B8),"0.0%"),")")

do you know how can i add comma in thousands? i cannot seem to get the format right. do i need to Text() the first sumif?
 
Upvote 0
Change this:
Excel Formula:
"0.0%"
to this to show the comma in the thousands place:
Excel Formula:
"#,##0.0%"
 
Upvote 0
Sorry, I just realized that you probably want to add the thousands place to the first number, not the second (which is a percentage).
Same concept, but on the first number, i.e.
Excel Formula:
=CONCAT(TEXT(SUMIF(A3:A9,D3,B3:B9),"#,##0")," (",TEXT(SUMIF(A3:A9,D3,B3:B9)/SUM(B3:B8),"0.0%"),")")
 
Upvote 0
Try This bro @gannybun

I changed the formula a little by adding the "TEXT" formula there
and cell "G3" u can use Unique Formula
Excel Formula:
=UNIQUE(A3:A8)

on cell "H3"
Excel Formula:
=VSTACK(
CONCAT(TEXT(SUMIF(A3:A9,G3,B3:B9),"0,000")," (",TEXT(SUMIF(A3:A9,G3,B3:B9)/SUM(B3:B8),"0.0%"),")"),
CONCAT(TEXT(SUMIF(A3:A9,G4,B3:B9),"0,000")," (",TEXT(SUMIF(A3:A9,G4,B3:B9)/SUM(B3:B8),"0.0%"),")"))

1704929594069.png
 
Upvote 0
SunnyAlv,

I recommend using the "#,##0" format I suggested instead of "0,000", or else you get some funny looking values for numbers under 1,000, i.e.

1704934196858.png
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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