Sum formula & Lookup on another column

Mooncake1

New Member
Joined
Sep 18, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi all.

I'm attempting match col A with embedded name on column E.
so far i have extracted the match, but I want to add up all the values pertaining to the hardcoded list in A:A.
also the number after the name is always one space apart from the end of the name. like "dsgdf 100"

See below
Book1.xlsx
ABCDEF
2Hardcode listSumChanging List
358fdghj32105ghjfk 54105ghjfk
41dfsh23 133fdghj 11133fdghj
5133fdghj22 142dgfh 457142dgfh
674dgfh22156jg 65754156jg
7142dgfh45716tyh 7816tyh
8156jg131508 170fgh 546170fgh
998hj121dfsh 231dfsh
10105ghjfk10858fdghj 3258fdghj
11170fgh54674dgfh 2274dgfh
1216tyh78 98hj 498hj
13105ghjfk 54105ghjfk
14156jg 65754156jg
1598hj 498hj
16156jg 65754156jg
17133fdghj 11133fdghj
1898hj 498hj
Sheet1
Cell Formulas
RangeFormula
F3:F18F3=SUBSTITUTE(LEFT(E3,SEARCH(" ",E3,3))," ","")
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Just to add to this,
I would like to do this all in the one formula instead of splitting it like in my example
 
Upvote 0
See if this works for you:
(it will only work in 365 though)

20210919 Filter using Contains Wildcard.xlsx
ABCDE
1Hardcode listSumChanging List
258fdghj160105ghjfk 54
31dfsh23 133fdghj 11
4133fdghj22 142dgfh 457
574dgfh22156jg 65754
6142dgfh45716tyh 78
7156jg197262 170fgh 546
898hj121dfsh 23
9105ghjfk10858fdghj 32
10170fgh54674dgfh 22
1116tyh78 98hj 4
12XXXX0105ghjfk 54
13156jg 65754
1498hj 4
1558fdghj 128
16156jg 65754
17133fdghj 11
1898hj 4
Data
Cell Formulas
RangeFormula
B2:B12B2=LET(found,TRIM(FILTER($E$2:$E$18,ISNUMBER(SEARCH(A2,$E$2:$E$18)),0)), IFERROR(SUM(VALUE(RIGHT(found,LEN(found)-SEARCH(" ",found)))),0))
 
Upvote 0
Without 365
Book1
ABCDE
2Hardcode listSumChanging List
358fdghj32105ghjfk 54
41dfsh23 133fdghj 11
5133fdghj22 142dgfh 457
674dgfh22156jg 65754
7142dgfh45716tyh 78
8156jg197262 170fgh 546
998hj121dfsh 23
10105ghjfk10858fdghj 32
11170fgh54674dgfh 22
1216tyh78 98hj 4
13105ghjfk 54
14156jg 65754
1598hj 4
16156jg 65754
17133fdghj 11
1898hj 4
Sheet1
Cell Formulas
RangeFormula
B3:B12B3=SUM(IFERROR(VALUE(SUBSTITUTE($E$3:$E$18,A3,"")),))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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