Lookup data out of a group of cells

blimes

New Member
Joined
Jan 6, 2016
Messages
32
Office Version
  1. 2013
Platform
  1. Windows
abcdefghi
1Tom21mattlarry randytom135
2Bill12
3john23
4Larry76
5Randy32
6Lebron15
7Stan22
8Ben31
9Matt6

This is a small sample of the data i have in column a and b there may be 250 entries and the same in column e through h. I am wanting to add up the data from column b based on the entries in row e1 through i1. What would be the fastest formula to look up the values of matt(6)+larry(76)+Randy(32)+Tom(21) for a total of 135

Thanks
Adam
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about:

Book1
ABCDEFGHI
1Tom21MattLarryRandyTom135
2Bill12
3john23
4Larry76
5Randy32
6Lebron15
7Stan22
8Ben31
9Matt6
Sheet1
Cell Formulas
RangeFormula
I1I1=SUM(SUMIFS(B1:B9,A1:A9,E1:H1))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
What would be the fastest formula ...
It depends on your Excel version. Please update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using. (Don’t forget to scroll down & ‘Save’)

If you have Excel 365, you could use this.

20 12 26.xlsm
ABCDEFGHI
1Tom21mattlarryrandytom135
2Bill12
3john23
4Larry76
5Randy32
6Lebron15
7Stan22
8Ben31
9Matt6
Sheet2 (2)
Cell Formulas
RangeFormula
I1I1=SUM(FILTER(B1:B9,ISNUMBER(MATCH(A1:A9,E1:H1,0))))
 
Upvote 0
Glad you got a successful outcome. Thanks for letting us know.
.. and for updating your profile. :)
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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