#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default help with hlookup

Howdy All,

I'm having a problem with the hlookup function. I've used it before
successfully, but never before when the lookup_value in the array is in a
merged cell.

I have on one sheet a list of months. Each month is merged from 4 cells
into one and has 4 columns underneath it: the three leftmost columns are
data, and the 4th column is the total of the previous three columns. So far,
there are about 24 months.

What I want to do is have another sheet that lists each month, but has only
the total column underneath it. My problem is occuring when I paste the
formula over because the data that I want is occurs every 4 columns, so I
cant just past over.

Please let me know if this isn't clear enough.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default help with hlookup

Hi,

Instead of Hlookup try a combination of OFFSET and INDEX, something like this:

=OFFSET(INDEX($B$4:$L$9,MATCH($C13,$A$5:$A$8,0),MA TCH(D$12,$B$3:$M$3,0)),0,3)

where $B$4:$L$9 is your data, $C13 is a product, $A$5:$A$8 is product list,
D$12 is a month to lookup and $B$3:$M$3 is your month range of merged cells,
the formula will offset the value returned by the index function by 3 columns
(sum column)

Hope this helps!
Jean-Guy

"Cam1234" wrote:

Howdy All,

I'm having a problem with the hlookup function. I've used it before
successfully, but never before when the lookup_value in the array is in a
merged cell.

I have on one sheet a list of months. Each month is merged from 4 cells
into one and has 4 columns underneath it: the three leftmost columns are
data, and the 4th column is the total of the previous three columns. So far,
there are about 24 months.

What I want to do is have another sheet that lists each month, but has only
the total column underneath it. My problem is occuring when I paste the
formula over because the data that I want is occurs every 4 columns, so I
cant just past over.

Please let me know if this isn't clear enough.

Thanks!

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 GaryLager Excel Discussion (Misc queries) 0 April 26th 07 03:42 PM
Hlookup for row 3 and 4 dilettante Excel Worksheet Functions 2 March 30th 07 02:34 PM
hlookup tikchye_oldLearner57 Excel Discussion (Misc queries) 2 March 5th 07 05:36 PM
hlookup & ? Intermediate Excel User.... Excel Worksheet Functions 4 September 1st 06 12:50 PM
HLookup ??? scott Excel Discussion (Misc queries) 2 December 16th 04 09:57 PM


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