sum if equal

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!
i need a clever way to check if some the text/values in column a is equal then sum the amount/numbers in the next colmun,
like a1:a8 is equal so i want to sum b1:b8 in c1,
and a9 have no equal sum b9 in c9,
and a10:a12 are equal so sum b10:b12 in c10
and so on....
can anyone please help?

test
ABC
11-1-2-5024
21-1-2-51
31-1-2-52
41-1-2-53
51-1-2-50
61-1-2-55
71-1-2-511
81-1-2-52
92-3-4-533
1011-12-1-21224
1111-12-1-23
1211-12-1-29
138-9-9-11035
148-9-9-115
158-9-9-10
168-9-9-18
178-9-9-12
test
Cell Formulas
RangeFormula
C1C1=SUM(B1:B8)
C9C9=SUM(B9)
C10C10=SUM(B10:B12)
C13C13=SUM(B13:B17)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=IF(COUNTIFS(A$1:A1,A1)=1,SUMIFS(B:B,A:A,A1),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,840
Members
449,193
Latest member
MikeVol

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