Sum according to column content

Sunny_bunny

New Member
Joined
Dec 5, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good day.

Can you please help me with a question, as screenshot and attachment?

With the given original data, I wish to have some formulas to calculate, as shown in Table B (which is from manual calculation).

In columns H to M, they show #N/A.

Where went wrong and how can I correct these errors? Thank you.

Formula in cell H20: =SUM(($E$6:$E$14=$E20)*($F$6:$F$14=RIGHT(PHONETIC(OFFSET($H$18,,,,COLUMNS($A:A))),2))*($H$5:$I$5=H$19)*$H$6:$I$14)
(drag right and down to fill)


(sorry that I am not able to use the mini-sheet function. please find here for the link to the Excel file)

Thank you!


100.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
cell H20 is
Excel Formula:
=SUMPRODUCT(($E$6:$E$14=$E20)*($F$6:$F$14=MID(H$18,10,20))*$H$6:$H$14)
cell I20 is
Excel Formula:
=SUMPRODUCT(($E$6:$E$14=$E20)*($F$6:$F$14=MID(H$18,10,20))*$I$6:$I$14)

copy H20:I20 to H20:M22
done.
 
Upvote 0
cell H20 is
Excel Formula:
=SUMPRODUCT(($E$6:$E$14=$E20)*($F$6:$F$14=MID(H$18,10,20))*$H$6:$H$14)
cell I20 is
Excel Formula:
=SUMPRODUCT(($E$6:$E$14=$E20)*($F$6:$F$14=MID(H$18,10,20))*$I$6:$I$14)

copy H20:I20 to H20:M22
done.
@HongRu, fantastic! thank you for the brilliant help!
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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