Sum & Vlookup Formula

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
129
Office Version
  1. 365
Platform
  1. Windows
Hi,
I want to look up a value in another table and sum up the total across multiple columns (60 in total).

Is there a more efficient formula than having to individually enter each column number in the {2,3,4,5,6 etc} part of the formula?

Currently my formula looks like
Vlookup(C1, 'Data Sheet'!B:BK,{2,3,4,5,6,7} except I need to enter each number after 7 all the way up to 60.

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try:

Book2
ABC
1Value:A
2Sum:354
Sheet4
Cell Formulas
RangeFormula
C2C2=SUM(FILTER('Data Sheet'!C2:BK1000,'Data Sheet'!B2:B1000=C1))


You can use whole column references here, but it will make it less efficient, so unless you really do have a million rows of data, it's better to use an upper bound on the row.
 
Upvote 0
Solution
Thank you, that worked.

What is the purpose of the FILTER element of the formula?
 
Upvote 0
Hi, here's another option where you can be a less concerned about a performance hit when using full column references.
Excel Formula:
=SUM(INDEX('Data Sheet'!C:BK,MATCH(C1,'Data Sheet'!B:B,0),0))
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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