Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default Dynamic named range & Offset


I need some help w/ Dynamic named range. First time using them.

Here's the formula that I have now w/ the range being AH4:AH9.

=IF(ROWS(B$5:B5)<=$B$4,INDEX(*$AH$4:$AH$9*,SMALL(I F(COUNTIF(INDIRECT("'"&*$AH$4:$AH$9*&"'!B9"),""&$ AI$4),IF(COUNTIF(INDIRECT("'"&*$AH$4:$AH$9*&"'!B9" ),"<="&$AI$5),ROW(*$AH$4:$AH$*9)-ROW($AH$4)+1)),ROWS(B$5:$B5))),"")

Now I'm not sure if this is how I'm suppose to do it, but let's say I
want range AH4:AH30. So I highlight that and click insert, name,
define and name it - Employees. Do I have to change the "Refers to"
formula or keep it as is? Do I need to use an Offset formula there and
if so what would that be? Finally after that is all figured out, do I
change *$AH$4:$AH$9* to Employees?

Just to let you know the purpose, I have 6 employees, but want my
formula to change if I add employees or subtract some. The formula is
used for a full year, so 365 times and I want it to update
automatically if I add employees.

Any help appreciated. Am I anywhere close? Thanks.


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=538755

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Dynamic named range & Offset

You want to set the RefersTo for employees as

=OFFSET($AH$4,,,COUNTA($A$H4:$AH$3000),1))

and change the formula to

=IF(ROWS(B$5:B5)<=$B$4,INDEX(Employees,
SMALL(IF(COUNTIF(INDIRECT("'"&Employees&"'!B9")," "&$AI$4),
IF(COUNTIF(INDIRECT("'"&Employees&"'!B9"),"<="&$AI $5),ROW(Employees)-ROW(Emp
loyees)+1)),
ROWS(B$5:$B5))),"")

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"fastballfreddy"
<fastballfreddy.279p7a_1146720001.3908@excelforu m-nospam.com wrote in
message news:fastballfreddy.279p7a_1146720001.3908@excelfo rum-nospam.com...

I need some help w/ Dynamic named range. First time using them.

Here's the formula that I have now w/ the range being AH4:AH9.


=IF(ROWS(B$5:B5)<=$B$4,INDEX(*$AH$4:$AH$9*,SMALL(I F(COUNTIF(INDIRECT("'"&*$A
H$4:$AH$9*&"'!B9"),""&$AI$4),IF(COUNTIF(INDIRECT( "'"&*$AH$4:$AH$9*&"'!B9"),
"<="&$AI$5),ROW(*$AH$4:$AH$*9)-ROW($AH$4)+1)),ROWS(B$5:$B5))),"")

Now I'm not sure if this is how I'm suppose to do it, but let's say I
want range AH4:AH30. So I highlight that and click insert, name,
define and name it - Employees. Do I have to change the "Refers to"
formula or keep it as is? Do I need to use an Offset formula there and
if so what would that be? Finally after that is all figured out, do I
change *$AH$4:$AH$9* to Employees?

Just to let you know the purpose, I have 6 employees, but want my
formula to change if I add employees or subtract some. The formula is
used for a full year, so 365 times and I want it to update
automatically if I add employees.

Any help appreciated. Am I anywhere close? Thanks.


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile:

http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=538755



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
VLookup Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
Using a formula to create named range reference [email protected] Excel Worksheet Functions 4 June 29th 05 08:03 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


All times are GMT +1. The time now is 11:00 AM.

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"