LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default dynamic range with a table below the working table

I made an modification to the formula so I wouldent have to remember
to set the test range, reqired in the original "$A$1:$A$100"
I replaced thhe range with a standard dynamic range formula. In the
match section I had to add one cell to the count for casses when there
is no table following the target table otherwise match would fail.

Sheet1!$A$1:INDEX(OFFSET(Sheet1!$A$1,0,0,COUNTA(Sh eet1!$A:$A),
1),MATCH(1,INDEX(--(OFFSET(Sheet1!$A$1,0,0,(COUNTA(Sheet1!$A:$A)+1),
1)=""),,1),0)-1)

I tested this with several number scenarios and it seems fail safe for
my application. If you see anything wrong please let me know.
Robert

On Mar 13, 6:06*pm, "T. Valko" wrote:
This expression will return an array of either TRUE or FALSE:

(B1:B100="")

For example:

B1="" = FALSE
B2="" = FALSE
B3="" = FALSE
B4="" = TRUE
B5="" = TRUE
B6="" = FALSE

Since our MATCH lookup_value is 1 we need to convert those TRUE and FALSE to
numbers. The "--" does just that, it coerces TRUE to 1 and FALSE to 0:

--(B1="") = 0
--(B2="") = 0
--(B3="") = 0
--(B4="") = 1
--(B5="") = 1
--(B6="") = 0

Now our MATCH lookup_value will match the *first 1* of that array which
would be the reference at B4. So, the evalauted range would be from B1:B4
but don't forget that in the original formula we're subtracting 1 from MATCH
so in the end the evaluated range would be B1:B3.

--
Biff
Microsoft Excel MVP

"Robert H" wrote in message

...



Im back :O


Once I got the my working using your sugestion I went back and am
trying to understand the formula you provided. Im am lost on the index
that is used for the Match, lookup_array. *In INDEX(--(B1:B100="") I
dont understand the --( *It looks like its used as a function but I
cant find any referece to that.- Hide quoted text -


- Show quoted text -




 
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
(Max - Min) for a dynamic range within a table [email protected] Excel Worksheet Functions 4 November 6th 07 01:32 AM
Dynamic range in Pivot table Wanna Learn Excel Discussion (Misc queries) 4 July 2nd 07 08:08 PM
Populate a table with a dynamic range Jeff Excel Worksheet Functions 3 February 22nd 07 06:47 AM
Dynamic Range in a Pivot Table Chris C Excel Discussion (Misc queries) 0 June 27th 06 06:11 PM
Crate group of date, with Dynamic Range in pivot table not working Tiya Excel Discussion (Misc queries) 3 March 1st 06 02:26 PM


All times are GMT +1. The time now is 06:47 PM.

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

About Us

"It's about Microsoft Excel"