Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2014, 03:33 AM
tinfanide tinfanide is offline VLookup multiple values and Sum Windows 7 64bit VLookup multiple values and Sum Office 2010 32bit
Expert
VLookup multiple values and Sum
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 09-01-2014, 03:51 AM
tinfanide tinfanide is offline VLookup multiple values and Sum Windows 7 64bit VLookup multiple values and Sum Office 2010 32bit
Expert
VLookup multiple values and Sum
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

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?
Reply With Quote
  #3  
Old 09-02-2014, 11:41 AM
gebobs gebobs is offline VLookup multiple values and Sum Windows 7 64bit VLookup multiple values and Sum Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

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.
Attached Files
File Type: xlsx vlookup_multiple_values (1).xlsx (12.3 KB, 11 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup multiple values and Sum 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 multiple values and Sum Vlookup or Index/Match - Multiple Criteria ruci1225 Excel 1 01-15-2012 07:31 AM
VLookup multiple values and Sum Multiple VLOOKUP's checking multiple Cells OTPM Excel 11 05-23-2011 11:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft