Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 272
Default copy a specified name range

I have an estimating program file with 30+ worksheets in which I need to be
able to specify a specific range name from four available, then paste the
data from a 5 column by 6 row range relating to that named range to a
different worksheet to calculate overheads, field supervision, AFDC and
profit using the specified range name (the four range names have different
values). I think an 'IF' statement would work but I do not know how to tell
it to choose the range and then paste it to the specific area on the 1st
worksheet and be able to overwrite that data if another range name is used.
I originally created this program in Lotus 1-2-3 using a macro.
--
Lori
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copy a specified name range

Perhaps something like this ..

In the target sheet,

Assuming B2 will house the input of the range name,

Put in say, the formula bar for B4:
=IF($B$2="","",OFFSET(INDIRECT($B$2),ROW(A1)-1,COLUMN(A1)-1))

Array-enter the formula in B4 by pressing CTRL+SHIFT+ENTER,
instead of just pressing ENTER

Copy B4 across to F4, fill down to F9
to populate the range size (5C x 6R)

B4:F9 will return the required results* depending on the input in B2
*the contents of the named range

For a neater look, suppress display of extraneous zeros in the sheet
via clicking Tools Options View tab Uncheck "Zero values" OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lori" wrote:
I have an estimating program file with 30+ worksheets in which I need to be
able to specify a specific range name from four available, then paste the
data from a 5 column by 6 row range relating to that named range to a
different worksheet to calculate overheads, field supervision, AFDC and
profit using the specified range name (the four range names have different
values). I think an 'IF' statement would work but I do not know how to tell
it to choose the range and then paste it to the specific area on the 1st
worksheet and be able to overwrite that data if another range name is used.
I originally created this program in Lotus 1-2-3 using a macro.
--
Lori

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 272
Default copy a specified name range

Tried your answer and got a partial response. Here is the data that should
appear:

55.0% 55.0% 55.0%
30.0% N/A 30.0%
8.0% N/A N/A
N/A
N/A

The data that prints out is 55% in all cells. What could I be doing wrong?

--
Lori


"Max" wrote:

Perhaps something like this ..

In the target sheet,

Assuming B2 will house the input of the range name,

Put in say, the formula bar for B4:
=IF($B$2="","",OFFSET(INDIRECT($B$2),ROW(A1)-1,COLUMN(A1)-1))

Array-enter the formula in B4 by pressing CTRL+SHIFT+ENTER,
instead of just pressing ENTER

Copy B4 across to F4, fill down to F9
to populate the range size (5C x 6R)

B4:F9 will return the required results* depending on the input in B2
*the contents of the named range

For a neater look, suppress display of extraneous zeros in the sheet
via clicking Tools Options View tab Uncheck "Zero values" OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lori" wrote:
I have an estimating program file with 30+ worksheets in which I need to be
able to specify a specific range name from four available, then paste the
data from a 5 column by 6 row range relating to that named range to a
different worksheet to calculate overheads, field supervision, AFDC and
profit using the specified range name (the four range names have different
values). I think an 'IF' statement would work but I do not know how to tell
it to choose the range and then paste it to the specific area on the 1st
worksheet and be able to overwrite that data if another range name is used.
I originally created this program in Lotus 1-2-3 using a macro.
--
Lori

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copy a specified name range

The data that prints out is 55% in all cells...

Is the calc mode accidentally set to Manual?
Check Tools Options Calculation tab

Pl post the actual formula you are using over there
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lori" wrote in message
...
Tried your answer and got a partial response. Here is the data that
should
appear:

55.0% 55.0% 55.0%
30.0% N/A 30.0%
8.0% N/A N/A
N/A
N/A

The data that prints out is 55% in all cells. What could I be doing wrong?

--
Lori



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 272
Default copy a specified name range

The calc mode is set to automatic.
formula: (cell C16 is where BPOH choice is entered)
=IF($C$16="BPOH",BPOH,OFFSET(INDIRECT($C$16),ROW(A 1)-1,COLUMN(A1)-1))

--
Lori


"Max" wrote:

The data that prints out is 55% in all cells...


Is the calc mode accidentally set to Manual?
Check Tools Options Calculation tab

Pl post the actual formula you are using over there
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lori" wrote in message
...
Tried your answer and got a partial response. Here is the data that
should
appear:

55.0% 55.0% 55.0%
30.0% N/A 30.0%
8.0% N/A N/A
N/A
N/A

The data that prints out is 55% in all cells. What could I be doing wrong?

--
Lori






  #6   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copy a specified name range

=IF($C$16="BPOH",BPOH,OFFSET(INDIRECT($C$16),ROW(A 1)-1,COLUMN(A1)-1))

The above wasn't consistent with what was suggested earlier

=IF($C$16="BPOH",BPOH, ...

should read as:

=IF($C$16="","", ...


Try this working sample file which illustrates the earlier suggestion:
http://www.savefile.com/files/387065
Display specified name range.xls

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Lori wrote:
The calc mode is set to automatic.
formula: (cell C16 is where BPOH choice is entered)
=IF($C$16="BPOH",BPOH,OFFSET(INDIRECT($C$16),ROW(A 1)-1,COLUMN(A1)-1))

--
Lori


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
user input decides cell copy range beatrice25 Excel Discussion (Misc queries) 0 May 17th 06 06:51 PM
copy named range to powerpoint confused Excel Worksheet Functions 1 October 17th 05 03:23 PM
CheckBox Code to copy & paste range Casey Excel Discussion (Misc queries) 0 October 13th 05 05:32 PM
help with range copy saziz Excel Discussion (Misc queries) 4 September 29th 05 06:34 PM
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM


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