Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Multiple Named Ranges in the Same Column

I have three named ranges in Column B.
The range data is always numbers.
I am using =OFFSET('Sheet1'!$B3,0,0,COUNTA(Sheet1!!$B3:$B24),-1) to define
Range BFP
I am using =OFFSET('Sheet1'!$B35,0,0,COUNTA(Sheet1!!$B35:$B44 ),-1) to define
Range OHAC
I am using =OFFSET('Sheet1'!$B50,0,0,COUNTA(Sheet1!!$B50:$B65 ),-1) to define
Range MSE
My problem is that when I insert a new row in say the BFP range, the OHAC &
MSE range kept the same starting rows and were off by one row. I removed the
$ in from of the row numbers, but then it added like 10 more rows to the
range.

How do I fix this so that when I add a row in any of the ranges, all the
ranges will stay correct?
Each of the ranges does have a label in Column A one row before the range
actually starts. These will always be one row above the starting range of
numbers. Maybe do a search for the label and start the range one row below?
But then how to end the range? I can create the range in VBA if you have
suggestions? Thanks again!

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Multiple Named Ranges in the Same Column

hi,
these are not named ranges. look up naming ranges in xl help on how to
define a named range. formulas do not name ranges. they just reference a
group of cells on the sheet and i think that may be your problem. if BFP does
not appear in the name box left of the formula bar, then it's not a named
range.
to name range BFP... highlight the range B3:B24. ckick Insertnamedefine.
enter BFPclick addclick ok. the name BFP will now appear in the name box.
you can add or delete rows to BFP. the named range will expand or shrink as
to add or delete rows. any named ranged below BFP will shift up or down as
you add or delete rows. to count BFP. use this formula....=counta(BFP). you
can put it anywhere because it's not referencing a group of cells specified
in a formula. it is referenced a defined named range and the fomula will
always reference BFP regardless of how many row you add and i think your
named ranges will now do what you want.

hope this clairfied things.
Regards
FSt1

"David" wrote:

I have three named ranges in Column B.
The range data is always numbers.
I am using =OFFSET('Sheet1'!$B3,0,0,COUNTA(Sheet1!!$B3:$B24),-1) to define
Range BFP
I am using =OFFSET('Sheet1'!$B35,0,0,COUNTA(Sheet1!!$B35:$B44 ),-1) to define
Range OHAC
I am using =OFFSET('Sheet1'!$B50,0,0,COUNTA(Sheet1!!$B50:$B65 ),-1) to define
Range MSE
My problem is that when I insert a new row in say the BFP range, the OHAC &
MSE range kept the same starting rows and were off by one row. I removed the
$ in from of the row numbers, but then it added like 10 more rows to the
range.

How do I fix this so that when I add a row in any of the ranges, all the
ranges will stay correct?
Each of the ranges does have a label in Column A one row before the range
actually starts. These will always be one row above the starting range of
numbers. Maybe do a search for the label and start the range one row below?
But then how to end the range? I can create the range in VBA if you have
suggestions? Thanks again!

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Multiple Named Ranges in the Same Column

Looks like I was trying to make it too complicated. Although not technically
named so you can see them in the dropdown box, they were dynamic ranges...but
I tried it you way, got what I needed, and THANK YOU VERY MUCH!!!


"FSt1" wrote:

hi,
these are not named ranges. look up naming ranges in xl help on how to
define a named range. formulas do not name ranges. they just reference a
group of cells on the sheet and i think that may be your problem. if BFP does
not appear in the name box left of the formula bar, then it's not a named
range.
to name range BFP... highlight the range B3:B24. ckick Insertnamedefine.
enter BFPclick addclick ok. the name BFP will now appear in the name box.
you can add or delete rows to BFP. the named range will expand or shrink as
to add or delete rows. any named ranged below BFP will shift up or down as
you add or delete rows. to count BFP. use this formula....=counta(BFP). you
can put it anywhere because it's not referencing a group of cells specified
in a formula. it is referenced a defined named range and the fomula will
always reference BFP regardless of how many row you add and i think your
named ranges will now do what you want.

hope this clairfied things.
Regards
FSt1

"David" wrote:

I have three named ranges in Column B.
The range data is always numbers.
I am using =OFFSET('Sheet1'!$B3,0,0,COUNTA(Sheet1!!$B3:$B24),-1) to define
Range BFP
I am using =OFFSET('Sheet1'!$B35,0,0,COUNTA(Sheet1!!$B35:$B44 ),-1) to define
Range OHAC
I am using =OFFSET('Sheet1'!$B50,0,0,COUNTA(Sheet1!!$B50:$B65 ),-1) to define
Range MSE
My problem is that when I insert a new row in say the BFP range, the OHAC &
MSE range kept the same starting rows and were off by one row. I removed the
$ in from of the row numbers, but then it added like 10 more rows to the
range.

How do I fix this so that when I add a row in any of the ranges, all the
ranges will stay correct?
Each of the ranges does have a label in Column A one row before the range
actually starts. These will always be one row above the starting range of
numbers. Maybe do a search for the label and start the range one row below?
But then how to end the range? I can create the range in VBA if you have
suggestions? Thanks again!

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
named ranges in multiple criteria formula ferde Excel Discussion (Misc queries) 4 April 4th 07 03:58 PM
Sumproduct using named ranges and multiple criteria A.Gates Excel Discussion (Misc queries) 5 January 26th 07 11:41 PM
Range matching multiple named Ranges ben simpson Excel Discussion (Misc queries) 0 March 15th 06 06:45 PM
Named ranges - column/row question Carole O Excel Discussion (Misc queries) 5 May 11th 05 02:40 PM
How to Link named ranges from multiple Workbooks into a single Wo. PMAP_HELP Excel Discussion (Misc queries) 1 December 14th 04 05:51 PM


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