multiple column for lookup array

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
333
Office Version
  1. 365
Platform
  1. Windows
Sirs,

Is there any short formula to look up a value from a multiple column lookup array? i know this can be also done by multiple vlookup or sumif but im looking for a much shorter formula..

In this table, Names are the lookup array and amount is the return value.. For excel version 2016

SAMPLE-FILE.xlsx
ABCDEFGHIJKL
1NAMEAMOUNTNAMEAMOUNTNAMEAMOUNTNAMEAMOUNT
2NAME110NAME115NAME21100NAME311lookup valueAMOUNT
3NAME220NAME126NAME22200NAME322NAME550
4NAME330NAME137NAME23300NAME333
5NAME440NAME148NAME24400NAME344
6NAME550NAME159NAME25500NAME355
7NAME660NAME1610NAME26600NAME366
8NAME770NAME1711NAME27700NAME377
9NAME880NAME1812NAME28800NAME388
10NAME990NAME1913NAME29900NAME399
11NAME10100NAME2014NAME301000NAME4010
Sheet1



thank you very much
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
im looking for a much shorter formula
Why would you worry about the length of the formula, surely it is simply whether it returns the correct result & in an efficient manner?

i know this can be also done by ... sumif
.. and how much shorter are you likely to get?

23 03 05.xlsm
ABCDEFGHIJKL
1NAMEAMOUNTNAMEAMOUNTNAMEAMOUNTNAMEAMOUNT
2NAME110NAME115NAME21100NAME311lookup valueAMOUNT
3NAME220NAME126NAME22200NAME322NAME550
4NAME330NAME137NAME23300NAME333
5NAME440NAME148NAME24400NAME344
6NAME550NAME159NAME25500NAME355
7NAME660NAME1610NAME26600NAME366
8NAME770NAME1711NAME27700NAME377
9NAME880NAME1812NAME28800NAME388
10NAME990NAME1913NAME29900NAME399
11NAME10100NAME2014NAME301000NAME4010
SUMIF
Cell Formulas
RangeFormula
L3L3=SUMIF(A2:G11,K3,B2:H11)


If the return values were not numerical then it becomes a significantly more complex problem of course.
 
Upvote 0
Solution
Why would you worry about the length of the formula, surely it is simply whether it returns the correct result & in an efficient manner?


.. and how much shorter are you likely to get?

23 03 05.xlsm
ABCDEFGHIJKL
1NAMEAMOUNTNAMEAMOUNTNAMEAMOUNTNAMEAMOUNT
2NAME110NAME115NAME21100NAME311lookup valueAMOUNT
3NAME220NAME126NAME22200NAME322NAME550
4NAME330NAME137NAME23300NAME333
5NAME440NAME148NAME24400NAME344
6NAME550NAME159NAME25500NAME355
7NAME660NAME1610NAME26600NAME366
8NAME770NAME1711NAME27700NAME377
9NAME880NAME1812NAME28800NAME388
10NAME990NAME1913NAME29900NAME399
11NAME10100NAME2014NAME301000NAME4010
SUMIF
Cell Formulas
RangeFormula
L3L3=SUMIF(A2:G11,K3,B2:H11)


If the return values were not numerical then it becomes a significantly more complex problem of course.
i have no idea that sumif can do that.. i'm thinking of =sumif()+sumif()....... thank you very much sir
 
Upvote 0
You're welcome. :)

Note that it does require that the name being looked up will not occur more than once in the data if you want a simple lookup rather than a sum.
 
Upvote 0
You're welcome. :)

Note that it does require that the name being looked up will not occur more than once in the data if you want a simple lookup rather than a sum.
thanks sir, just a bit curious, what if the return value is a date instead of amount?..does sumif can do that?
 
Upvote 0
Date will be fine so long as it is a 'real' date (numerical) & not a text date. You may have to format the formula cell with your desired date format.

23 03 05.xlsm
ABCDIJKL
1NAMEAMOUNTNAMEAMOUNT
2NAME110NAME115lookup valueAMOUNT
3NAME220NAME126NAME515/06/2023
4NAME330NAME137
5NAME440NAME148
6NAME515/06/2023NAME159
7NAME660NAME1610
8NAME770NAME1711
9NAME880NAME1812
10NAME990NAME1913
11NAME10100NAME2014
SUMIF
Cell Formulas
RangeFormula
L3L3=SUMIF(A2:G11,K3,B2:H11)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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