#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default hlookup in array

which elements, if any, of an hlookup formula, can be used dynamically in an
array? In other words, if I enter an hlookup formula as array (within a sum
function), where can I have a ":" that let's a part of the formula shift?

for example, if I have {=SUM(HLOOKUP(G14-D14:G14+1,$D$26:G27,2,FALSE))},
will it take the D14:G14, and give me the sum of the formula with every
iteration of D14, E14, F14, and G14 in that spot?

I cannot seem to get it to do the above. Am I doing something wrong?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default hlookup in array

All kind of confusing there. May I suggest using SUMPRODUCT()

Not sure what you are trying to sum...

=SUMPRODUCT(--(D14:G14=whatever you're comparing),D15:G26) perhaps?

"BorisS" wrote:

which elements, if any, of an hlookup formula, can be used dynamically in an
array? In other words, if I enter an hlookup formula as array (within a sum
function), where can I have a ":" that let's a part of the formula shift?

for example, if I have {=SUM(HLOOKUP(G14-D14:G14+1,$D$26:G27,2,FALSE))},
will it take the D14:G14, and give me the sum of the formula with every
iteration of D14, E14, F14, and G14 in that spot?

I cannot seem to get it to do the above. Am I doing something wrong?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default hlookup in array

can I ask you to quickly have a look at my post for 'up and down array'? I
thought of Sumproduct, but maybe wasn't thinking straight. The noted post
has maybe a better explanation (I did realize this one was a bit convoluted).
Would love to solve this, so if you can help me get it straight, very much
appreciated.
--
Boris


"Sean Timmons" wrote:

All kind of confusing there. May I suggest using SUMPRODUCT()

Not sure what you are trying to sum...

=SUMPRODUCT(--(D14:G14=whatever you're comparing),D15:G26) perhaps?

"BorisS" wrote:

which elements, if any, of an hlookup formula, can be used dynamically in an
array? In other words, if I enter an hlookup formula as array (within a sum
function), where can I have a ":" that let's a part of the formula shift?

for example, if I have {=SUM(HLOOKUP(G14-D14:G14+1,$D$26:G27,2,FALSE))},
will it take the D14:G14, and give me the sum of the formula with every
iteration of D14, E14, F14, and G14 in that spot?

I cannot seem to get it to do the above. Am I doing something wrong?

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: specify table array in a cell Melanie New Users to Excel 3 August 20th 09 09:30 PM
array formula with if and hlookup bport jim Excel Worksheet Functions 5 January 8th 07 03:26 AM
Vlookup / Match / Hlookup / Array fundtion or What? Winger Excel Discussion (Misc queries) 5 November 22nd 05 08:20 PM
HLookup? or an array function?? Murph Excel Worksheet Functions 5 May 11th 05 05:44 PM
How do I find a value in an array (VLOOKUP? HLOOKUP?) M Skabialka New Users to Excel 2 March 11th 05 02:52 AM


All times are GMT +1. The time now is 08:13 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"