#1
|
|||
|
|||
VLookup multiple values and Sum
Please see the attached excel file. Take a look at sheet 1 and sheet 2.
vlookup_multiple_values.xlsx Thank you. |
#2
|
|||
|
|||
I have just come up with a solution.
vlookup_multiple_values.xlsx But I just wonder if there is one formula (not two formulas spanning two cells)? Much simpler? |
#3
|
|||
|
|||
I didn't use arrays and simply wrote this for the first row and copied down:
=IF(B2,VLOOKUP($B$1,Sheet2!$A$2:$B$4,2))+IF(C2,VLO OKUP($C$1,Sheet2!$A$2:$B$4,2))+IF(D2,VLOOKUP($D$1, Sheet2!$A$2:$B$4,2)) Personally, I prefer to use the table referencing automation (see attached file). To do this, select each table and then choose a format from Home:Styles:Format As Table. I like to rename the tables logically so using Formulas:Name Manager, I renamed your first table StudList and the other as SubjSum. The above formula can then be rewritten for the first record in a more intuitive manner: =IF([@English],VLOOKUP(StudList[[#Headers],[English]],SubjSum,2))+IF([@Maths],VLOOKUP(StudList[[#Headers],[Maths]],SubjSum,2))+IF([@Science],VLOOKUP(StudList[[#Headers],[Science]],SubjSum,2)) And due to another nice bit of automation, when you enter the formula, Excel copies it to all the other cells in that column automatically. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fetching more than one result with VLookup on multiple sheets | lilvillaf | Excel | 2 | 06-12-2014 05:39 PM |
Excel - search Multiple Values (HELP!) | duskdjl | Excel | 4 | 03-28-2013 01:11 AM |
excel vlookup with multiple criteria | mpokorny | Excel | 4 | 05-06-2012 04:06 AM |
Vlookup or Index/Match - Multiple Criteria | ruci1225 | Excel | 1 | 01-15-2012 07:31 AM |
Multiple VLOOKUP's checking multiple Cells | OTPM | Excel | 11 | 05-23-2011 11:18 AM |