#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default summing an hlookup

Hi there, wonder if anyone can help?

using an hlookup to find some data, but then would like to sum the data in
the column rather than return one value (and unfortunately there's no total
cell at the end of the data due to coding restraints).

So at the moment I have =HLOOKUP('Page Make-Up'!E3,'Weekly
Update'!A4:BA11,8,FALSE) which returns the value at position 8 all right, but
how would I get the sum of all the values from position 2-8??? eg
=HLOOKUP('Page Make-Up'!E3,'Weekly Update'!A4:BA11,sum(2:8),FALSE) or
something like that!

Any ideas?

Thanks,

Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default summing an hlookup

=SUM(OFFSET('Weekly Update'!A5:A11,0,MATCH('Page Make-Up'!E3,'Weekly
Update'!A4:BA4,0)-1,8,1))
The MATCH calculates which column you want added up. The OFFSET returns the
array of 8 rows by 1 column. The SUM adds them up.

"mike_vr" wrote:

Hi there, wonder if anyone can help?

using an hlookup to find some data, but then would like to sum the data in
the column rather than return one value (and unfortunately there's no total
cell at the end of the data due to coding restraints).

So at the moment I have =HLOOKUP('Page Make-Up'!E3,'Weekly
Update'!A4:BA11,8,FALSE) which returns the value at position 8 all right, but
how would I get the sum of all the values from position 2-8??? eg
=HLOOKUP('Page Make-Up'!E3,'Weekly Update'!A4:BA11,sum(2:8),FALSE) or
something like that!

Any ideas?

Thanks,

Mike

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default summing an hlookup

Brilliant!!!!

Thanks a million bpeltzer!

"bpeltzer" wrote:

=SUM(OFFSET('Weekly Update'!A5:A11,0,MATCH('Page Make-Up'!E3,'Weekly
Update'!A4:BA4,0)-1,8,1))
The MATCH calculates which column you want added up. The OFFSET returns the
array of 8 rows by 1 column. The SUM adds them up.

"mike_vr" wrote:

Hi there, wonder if anyone can help?

using an hlookup to find some data, but then would like to sum the data in
the column rather than return one value (and unfortunately there's no total
cell at the end of the data due to coding restraints).

So at the moment I have =HLOOKUP('Page Make-Up'!E3,'Weekly
Update'!A4:BA11,8,FALSE) which returns the value at position 8 all right, but
how would I get the sum of all the values from position 2-8??? eg
=HLOOKUP('Page Make-Up'!E3,'Weekly Update'!A4:BA11,sum(2:8),FALSE) or
something like that!

Any ideas?

Thanks,

Mike

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HLookUp David Mok Excel Worksheet Functions 1 August 24th 07 08:50 PM
Hlookup for row 3 and 4 dilettante Excel Worksheet Functions 2 March 30th 07 02:34 PM
PivotTable and summing/not summing ~*Amanda*~[_2_] Excel Discussion (Misc queries) 1 March 14th 07 07:35 PM
Summing HLookup Values TomCat Excel Worksheet Functions 16 July 24th 06 02:54 AM
Hlookup/max value? swjtx Excel Worksheet Functions 4 December 19th 05 12:45 AM


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"