How to sum more than one value in from reference cell?

RookieExcel22

New Member
Joined
Aug 11, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Suppose I have table 1 that is the below

NumberValue
123410
567820
901235
345640

Then I have table two:

NumberSumNumberTotal
A1234,345650
B5678,901255

Is there a formula or macro that I can use in the total column in table two that will sum the values in the value column from table 1 using the values in sumnumber column in table 2?

My only thought is some macro that creates a bunch of columns to then use the text to columns function then sumif against each column, remove formula and then delete the columns. The problem is, the "SumNumber" column is dynamic and may not always be two values. It could be one, it could be 10, etc.

Thank you!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
How about
Fluff.xlsm
ABCDEFG
1NumberValueNumberSumNumberTotal
2123410A1234,345650
3567820B5678,901255
4901235
5345640
6
Sheet6
Cell Formulas
RangeFormula
G2:G3G2=SUM(SUMIFS(B:B,A:A,TEXTSPLIT(F2,",")))
 
Upvote 1
Solution
How about
Fluff.xlsm
ABCDEFG
1NumberValueNumberSumNumberTotal
2123410A1234,345650
3567820B5678,901255
4901235
5345640
6
Sheet6
Cell Formulas
RangeFormula
G2:G3G2=SUM(SUMIFS(B:B,A:A,TEXTSPLIT(F2,",")))

Amazing, thank you so much.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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