LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bam Bam is offline
external usenet poster
 
Posts: 48
Default INDEX - MATCH - OFFSET By Reference

Hi All,

I'm having troubles writing this array based on criteria I hold in Column B.

{=INDEX($W$1:$AW$1,MATCH(TRUE,SUBTOTAL(9,OFFSET($W 2:$AW2,,,,COLUMN($W2:$AW2)-MIN(COLUMN($W2:$AW2))+1))$R2,0))}

Example:
Row 1 is The Header Row.
Cell B2 = FRED
Cell B3 = GREG
Cell B4 = GREG
Cell B5 = GREG
Cell B6 = GREG
Cell B7 = HAZY
Cell B8 = HAZY

If I use the formula above, the calcualtion for "FRED" is correct because
I'm only looking at Row 2 in the formula.

For "GREG" though, i need the formula to change to this in EACH of the GREG
rows.

{=INDEX($W$1:$AW$1,MATCH(TRUE,SUBTOTAL(9,OFFSET($W 3:$AW6,,,,COLUMN($W3:$AW6)-MIN(COLUMN($W3:$AW6))+1))SUM(R3:R6),0))}

For "HAZY"
{=INDEX($W$1:$AW$1,MATCH(TRUE,SUBTOTAL(9,OFFSET($W 7:$AW8,,,,COLUMN($W7:$AW8)-MIN(COLUMN($W7:$AW8))+1))SUM(R7:R8),0))}

etc...

Column B is always sorted alphabetical if that makes it easier.

Any help would be much appreciated??

Cheers,

Bam.


 
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
Index/Match/Offset/Sum (maybe?) Ken Excel Discussion (Misc queries) 0 June 19th 08 12:58 PM
OFFSET vs INDEX(MATCH(...)) Dave F[_2_] Excel Discussion (Misc queries) 1 January 15th 08 03:12 PM
INDEX, MAX, OFFSET, MATCH Joe Gieder Excel Worksheet Functions 2 June 15th 07 01:34 PM
index match offset? denise Excel Worksheet Functions 10 July 4th 06 04:28 AM
Index, Match, Offset? Not sure which to use Ms. P. Excel Worksheet Functions 4 July 29th 05 11:04 PM


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