HLOOKUP to return entire sum of column

Julesdude

Board Regular
Joined
Jan 24, 2010
Messages
197
Hi there. I need help trying to create a simple(ish) forumula. One cell needs to have a formula that uses the HLOOKUP function for range V3:AK3. But what I want it to return is not the value of a particular cell but the sum of the entire column that is identified in this HLOOKUP range.

I also need to trap any errors so if a value is 0 or is an error, to just display a blank.

Can anyone please help?
 
Thank you for responding. I've tried to do this with date and find the small and large but I can't make it work. If you have the time, could you post an example. I would be very grateful. Thank you.

JT
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Or rather can you show up what you have?

Sorry for getting back so late. Yes, that makes sense. Ok.

--

Excel or Access version: Excel 2010

Computer operating system: Windows XP

Sample data:

Sheet 1 (front)

Excel Workbook
ABCDEFGHIJK
1SOS/ASS100321
2SOS/ASS100321D
3SOS/ASS100321S
4Dates**OutMonthPurchases% of TotalRank**
5Start5/15/20093933330*11May-0921%9**
6End3/22/2010**10Jun-09105%7**
SOSASS100321


Sheet 2 (back)

Excel Workbook
IGIHIIIJIKIL
1***/SOS110320D***/SOS110320S***/SOS110703D***/SOS110703S***/SOS111023D***/SOS111023S
26/3/201015/12/201013/3/20113
36/23/201015/18/201063/7/20113
47/5/201015/21/201013/10/20112
57/6/201026/4/201023/11/20111
67/7/201016/7/201023/15/20111
77/15/201016/10/201023/25/20111
87/16/201016/23/201023/28/20111
97/30/201016/28/201023/29/20111
109/14/201057/6/201013/30/20112
119/20/201017/15/201023/31/20112
129/23/201027/16/201024/4/20111
139/27/201017/19/201024/19/20112
Data


Formula(s) right now: = IF(COUNTIF(Data!$1:$1,SOSASS100321!$A$2),SUM(INDEX(Data!$1:$1048576,0,MATCH(SOSASS100321!$A$2,Data!$1:$1,0))),"")

Current result(s): 3933330

My goal: To have the small and large function look at an ID, then go to the backsheet and find the column and return an answer.

Error message: No error message

How error occurred: No error message

Generated in: Excel

Thank you.

JT :)
 
Upvote 0
Smallest:
Code:
= IF(COUNTIF(Data!$1:$1,SOSASS100321!$A$2),MIN(INDEX(Data!$1:$1048576,0,MATCH(SOSASS100321!$A$2,Data!$1:$1,0))),"")
or:
Code:
= IF(COUNTIF(Data!$1:$1,SOSASS100321!$A$2),SMALL(INDEX(Data!$1:$1048576,0,MATCH(SOSASS100321!$A$2,Data!$1:$1,0)),1),"")
<hr>
Largest:
Code:
= IF(COUNTIF(Data!$1:$1,SOSASS100321!$A$2),MAX(INDEX(Data!$1:$1048576,0,MATCH(SOSASS100321!$A$2,Data!$1:$1,0))),"")
or:
Code:
= IF(COUNTIF(Data!$1:$1,SOSASS100321!$A$2),LARGE(INDEX(Data!$1:$1048576,0,MATCH(SOSASS100321!$A$2,Data!$1:$1,0)),1),"")
 
Upvote 0
Thank you. I am working on this task all day today. As soon as I can, I will test your solutions. I sincerely appreciate your time and energy on this. You rock kind sir.

JT
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,183
Members
452,893
Latest member
denay

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