Sum Formula for Multiple criteria lookup

kjonesie07

New Member
Joined
Apr 7, 2015
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need a formula to sum the totals of the States. Novice user, apologies.
 

Attachments

  • Screenshot 2024-09-07 114630.png
    Screenshot 2024-09-07 114630.png
    20 KB · Views: 8

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Is it really this simple or have I missed something?
MrExcel_202409.xlsm
ABCDE
1StateNumber
2AK303642= AK + DC + AR + AZ + CT
3AL1061623= AL + CA + CT + DC
4AR71
5AZ211
6CA1460
7CO441
8CT49
9DC8
Sheet3
Cell Formulas
RangeFormula
D2D2= B2 + B9 + B4 + B5 + B8
D3D3= B3 + B6 + B8 + B9


If you like, you can use "Names" for the cells, like _AL, .AL or 'AL

If you need to set up a Name (like a variable) just enter it into the Name Box

1725724959353.png


After you have given Names to your cells, they can be distinguished much easier.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=SUM(SUMIFS(B:B,A:A,E2:I2))
 
Upvote 1
Solution
Is it really this simple or have I missed something?
MrExcel_202409.xlsm
ABCDE
1StateNumber
2AK303642= AK + DC + AR + AZ + CT
3AL1061623= AL + CA + CT + DC
4AR71
5AZ211
6CA1460
7CO441
8CT49
9DC8
Sheet3
Cell Formulas
RangeFormula
D2D2= B2 + B9 + B4 + B5 + B8
D3D3= B3 + B6 + B8 + B9


If you like, you can use "Names" for the cells, like _AL, .AL or 'AL

If you need to set up a Name (like a variable) just enter it into the Name Box

View attachment 116565

After you have given Names to your cells, they can be distinguished much easier.
I want it to lookup automatically, there's lots of data, with all states, and the states to sum change out. Apologies for not saying that.
 
Upvote 0
Maybe this?

Book2
ABCDEFGHI
1StateNumberSum
2AK303721AKDCARAZCT
3AL1061702ALCACTDC
4AR71
5AZ211
6CA1460
7CO441
8CT49
9DC87
Sheet2
Cell Formulas
RangeFormula
D2:D3D2=SUM(INDEX($B$2:$B$100,XMATCH(E2:Z2,$A$2:$A$100)))
 
Upvote 0

Forum statistics

Threads
1,224,084
Messages
6,176,270
Members
452,718
Latest member
Nyxs_Inquisitor

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