Hlookup and sum within a range

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
330
I have a list of names that extend from cells D1:Y1. Below that in rows 16-22 are a list of tasks that the person could engage in, and in his relevant row would be a number pertaining to how many hours that task could be.

So essentially, i am hoping to find a formula that will lookup the person's name in row 1, and then sum the numbers in rows 16-22. Is this possible?

Thanks,
Ernie
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

mgirvin

Well-known Member
Joined
Dec 15, 2005
Messages
1,216
If the name is in cell D24, maybe this would work:

=SUMPRODUCT(HLOOKUP(D24,D1:Y22,{16,17,18,19,20,21,22},0))
 

Watch MrExcel Video

Forum statistics

Threads
1,133,562
Messages
5,659,564
Members
418,507
Latest member
Jsejms

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
Top