Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Named ranged selection problem

Hope someone can help with this, I have a workbook allocating men to machines. The details are in a range 3Cx9R for each rota and there are 9 variations of the rota in named ranges rota a, rota b, rota c, etc
What I need to be able to do is read a letter from a cell and replace the current rota with one corresponding to the new letter for example rota a this week, rota b next week.

Hope this makes sense, let me know if more information would be helpful

Thanks in anticipation of a solution

Martin


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Named ranged selection problem

Think you could use a simple multi-cell array formula to do this easily

Here's a sample to illustrate:
http://www.freefilehosting.net/download/3a1c7
Rota selection.xls

Assuming you have 3 defined ranges, viz:
rota_a =Sheet1!$A$1:$C$9
rota_b =Sheet1!$A$11:$C$19
rota_c =Sheet1!$A$21:$C$29

In another sheet,

With A1 containing a data validation* list to allow
the easy selection of the 3 defined ranges: rota_a, rota_b, etc

Select a 3C x 9R range, say C2:E10
Paste into the formula bar:
=IF(A1="","",INDIRECT(A1))
Press CTRL+SHIFT+ENTER to confirm the formula (ie "array-enter")
C2:E10 will return the contents of the defined range selected in A1

*one way to create the dv:
Select A1, click Data Validation
Allow: List
Source: rota_a, rota_b, rota_c
Click OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Martin B" wrote in message
...
Hope someone can help with this, I have a workbook allocating men to
machines. The details are in a range 3Cx9R for each rota and there are 9
variations of the rota in named ranges rota a, rota b, rota c, etc
What I need to be able to do is read a letter from a cell and replace the
current rota with one corresponding to the new letter for example rota a
this week, rota b next week.

Hope this makes sense, let me know if more information would be helpful

Thanks in anticipation of a solution

Martin



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Named ranged selection problem

Thanks Max, played around with your formula a bit but it's done the trick
nicely

Have a great 2008

Martin

"Max" wrote in message
...
Think you could use a simple multi-cell array formula to do this easily

Here's a sample to illustrate:
http://www.freefilehosting.net/download/3a1c7
Rota selection.xls

Assuming you have 3 defined ranges, viz:
rota_a =Sheet1!$A$1:$C$9
rota_b =Sheet1!$A$11:$C$19
rota_c =Sheet1!$A$21:$C$29

In another sheet,

With A1 containing a data validation* list to allow
the easy selection of the 3 defined ranges: rota_a, rota_b, etc

Select a 3C x 9R range, say C2:E10
Paste into the formula bar:
=IF(A1="","",INDIRECT(A1))
Press CTRL+SHIFT+ENTER to confirm the formula (ie "array-enter")
C2:E10 will return the contents of the defined range selected in A1

*one way to create the dv:
Select A1, click Data Validation
Allow: List
Source: rota_a, rota_b, rota_c
Click OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Martin B" wrote in message
...
Hope someone can help with this, I have a workbook allocating men to
machines. The details are in a range 3Cx9R for each rota and there are 9
variations of the rota in named ranges rota a, rota b, rota c, etc
What I need to be able to do is read a letter from a cell and replace the
current rota with one corresponding to the new letter for example rota a
this week, rota b next week.

Hope this makes sense, let me know if more information would be helpful

Thanks in anticipation of a solution

Martin





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Named ranged selection problem

Welcome, Martin
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Martin B" wrote in message
...
Thanks Max, played around with your formula a bit but it's done the trick
nicely

Have a great 2008

Martin



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
Testing selection against named range [email protected][_2_] Excel Discussion (Misc queries) 5 April 17th 12 04:19 PM
Selecting Multiple Columns in a Named Selection Griffithpt Excel Worksheet Functions 0 August 9th 06 10:54 PM
Cell selection problem DanG Excel Discussion (Misc queries) 2 March 17th 06 05:15 PM
Vlookup - Using a named ranged for col_index_num [email protected] Excel Discussion (Misc queries) 2 June 1st 05 05:38 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM


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