SumIfs based on Lookup table

Ross191

New Member
Joined
Mar 7, 2017
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I have two tables (examples below). I'm trying to calculate a "final score" by assesing what values were selected. I have ten total options in my real excel file that I can't share due to confidentiality constraints.

table 1 (inputs)
Options Selected (note the options selected below are within one cell seperated by a line break)"Final Score" (aka the expected output (see table 2 for the scoring weights) - I'm trying to determine what the formula should be in the cells below
[Option 1]
[Option 2]
[Option 3]
6
[Option 1]
[Option 3]
5

table 2 (lookup table)

OptionValue (weight)
Option 13
Option 21
Option 32
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Assuming no duplicate options in any single cell

Excel Formula:
=SUM(IF(ISNUMBER(SEARCH(options list, selected options)),values list))

Must be array confirmed with ctrl shift enter if you're using excel 2019 or older.
 
Upvote 0
Solution
I can't seem to get that to work. Here is my formula based on your formula:

=SUM(IF(ISNUMBER(SEARCH(Z2:Z12,J2)),AA2:AA12))

Z2:Z12 = options list
J2 = equals one cell with 3 options within the cell
AA2:AA12 = option list values

I've also made sure it's an array
Assuming no duplicate options in any single cell

Excel Formula:
=SUM(IF(ISNUMBER(SEARCH(options list, selected options)),values list))

Must be array confirmed with ctrl shift enter if you're using excel 2019 or older
 
Upvote 0
Your formula looks correct, what exactly is it (or isn't it) doing?

Have you tried using the evaluation tool on the formula?
 
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’)
 
Upvote 0
Your formula looks correct, what exactly is it (or isn't it) doing?

Have you tried using the evaluation tool on the formula?
So sorry. That worked. I had test data in the sheet that seemed to be throwing it off, so I removed the old test data and added new. Your formula then worked! Thanks so much.

-M
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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