Sum data for selected Row

sksanjeev786

Board Regular
Joined
Aug 5, 2020
Messages
225
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

I need a total fo A and B from all row as of now I have added manually in formula in row A23 to F23 do we have any other option

Book1
ABCDEF
1A674836813994965
2B764443883897362
3C425957695869248
418632236239127601575
5
6A617410524875983
7B227974177915417
8C628647697958148
9D767127707643284
10SUB NET (D6: D8)22392158210533911832
11
12A824229973432920
13B928781337532736
14C908343511947176
1526601353182119111832
16
17A542276974802435
18B858153727412560
19C463624953593590
20D240820681533742
2121031873333523402327
22
23NET (A and B only)54344102540858595378
Sheet1
Cell Formulas
RangeFormula
B4:F4,B15:F15B4=SUM(B1:B3)
B10:F10,B21:F21B10=SUM(B6:B9)
B23:F23B23=B1+B2+B6+B7+B12+B13+B17+B18


Thanks
Sanjeev
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=SUM(SUMIFS(B1:B21,$A$1:$A$21,{"A","B"}))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,386
Messages
5,636,012
Members
416,892
Latest member
Bensch

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
Top