Reviewing different worksheets summing numbers in one column based on matches in two other columns

vdurrington

New Member
Joined
Apr 10, 2011
Messages
1
I need to be able to match values in a worksheet to determine a cell value in another worksheet. Here’s an example of what I’m trying to do. Based on the cells below, I first need to determine if the value in A2:A5 is "EDN". For the row that has the value "EDN", I need to determine if the value in column B of the same row is either "200", "203", "301", or "303". For each instance where the value in column A & B of the same row match the criteria, then I want add the corresponding values in column C.
Excel Workbook
BCJ
6CourseCourse
7PrefixNumberFTE
8EDN5280.14
9SEC2000.20
10SEC5000.14
11SEC5280.28
Smith
Excel 2007
Cell Formulas
RangeFormula
J8=IF(ISBLANK(E8)," ",((E8*F8)/(INDEX(Table!$G$9:$I$12,H8,I8)))*(G8/100))
J9=IF(ISBLANK(E9)," ",((E9*F9)/(INDEX(Table!$G$9:$I$12,H9,I9)))*(G9/100))
J10=IF(ISBLANK(E10)," ",((E10*F10)/(INDEX(Table!$G$9:$I$12,H10,I10)))*(G10/100))
J11=IF(ISBLANK(E11)," ",((E11*F11)/(INDEX(Table!$G$9:$I$12,H11,I11)))*(G11/100))


If I was looking for values of EDN and 200, then the resulting sum = 0.0

If I is was looking for SEC and 200, then the resulting sum = .20

If I was looking for SEC and 500 or 528, then the resulting sum = .42

If I was looking for EDN or SEC and 528, then the resulting sum = .42

If I was looking for EDN or SEC and 500 or 528, then the resulting sum = .56

I'm hoping this makes sense.

Thanks!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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