|
|
| Next: my mouse pointer is a star I want a plus |
| Author |
Message |
Lori External

Since: Mar 16, 2006 Posts: 99
|
Posted: Sun Dec 31, 2006 9:53 am Post subject: copy a specified name range Archived from groups: microsoft>public>excel>newusers (more info?) |
|
|
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 |
|
| Back to top |
|
 |
Max External

Since: Mar 17, 2004 Posts: 1751
|
Posted: Mon Jan 01, 2007 2:51 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
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 |
|
| Back to top |
|
 |
Lori External

Since: Mar 16, 2006 Posts: 99
|
Posted: Tue Jan 02, 2007 4:01 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
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 |
|
| Back to top |
|
 |
Max External

Since: Sep 08, 2003 Posts: 3335
|
Posted: Wed Jan 03, 2007 10:41 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
> =IF($C$16="BPOH",BPOH,OFFSET(INDIRECT($C$16),ROW(A1)-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(A1)-1,COLUMN(A1)-1))
>
> --
> Lori |
|
| Back to top |
|
 |
Max External

Since: Sep 08, 2003 Posts: 3335
|
Posted: Thu Jan 04, 2007 5:30 am Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
> 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" <Lori.DeleteThis@discussions.microsoft.com> wrote in message
news:D321E4E3-3B45-43A0-ADFC-5F33B9AB4754@microsoft.com...
> 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 |
|
| Back to top |
|
 |
Lori External

Since: Mar 16, 2006 Posts: 99
|
Posted: Thu Jan 04, 2007 5:30 am Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
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(A1)-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" <Lori DeleteThis @discussions.microsoft.com> wrote in message
> news:D321E4E3-3B45-43A0-ADFC-5F33B9AB4754@microsoft.com...
> > 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
>
>
> |
|
| Back to top |
|
 |
Lori External

Since: Mar 16, 2006 Posts: 99
|
Posted: Thu Jan 04, 2007 4:04 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thank you, it finally worked this time by rewriting it to match yours and
replacing my source cell of C16. The first few times I tried it exactly as
you had it written, all I got was blank cells, so I rewrote it trying to get
it to work. The drop down box for the range name selection is really neat.
Is it easy to create?
--
Lori
"Max" wrote:
> > =IF($C$16="BPOH",BPOH,OFFSET(INDIRECT($C$16),ROW(A1)-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(A1)-1,COLUMN(A1)-1))
> >
> > --
> > Lori
>
> |
|
| Back to top |
|
 |
Max External

Since: Sep 08, 2003 Posts: 3335
|
Posted: Thu Jan 04, 2007 5:17 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Glad you got it up there, Lori !
> .. The drop down box for the range name selection is really neat.
> Is it easy to create?
Yes, it is, using data validation.
In the sample's instance,
I just select the cell for the droplist ie B2,
then click Data > Validation
Under Allow: choose "List"
Then input the 4 range names within "Source:", viz:
MyRange1,MyRange2,MyRange3,MyRange4
Click OK, and we're done
For more info, try Debra Dalgleish's marvellous coverage
on the steps for data validation (DV) at her:
http://www.contextures.com/xlDataVal01.html
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Lori wrote:
> Thank you, it finally worked this time by rewriting it to match yours and
> replacing my source cell of C16. The first few times I tried it exactly as
> you had it written, all I got was blank cells, so I rewrote it trying to get
> it to work. The drop down box for the range name selection is really neat.
> Is it easy to create?
> --
> Lori |
|
| Back to top |
|
 |
Lori External

Since: Mar 16, 2006 Posts: 99
|
Posted: Tue Jan 09, 2007 2:50 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thank you for the advice on the drop down list, it works great and I am using
it in my estimate program file a number of times. Thanks again for your help.
--
Lori
"Max" wrote:
> Glad you got it up there, Lori !
>
> > .. The drop down box for the range name selection is really neat.
> > Is it easy to create?
>
> Yes, it is, using data validation.
>
> In the sample's instance,
> I just select the cell for the droplist ie B2,
> then click Data > Validation
> Under Allow: choose "List"
> Then input the 4 range names within "Source:", viz:
> MyRange1,MyRange2,MyRange3,MyRange4
> Click OK, and we're done
>
> For more info, try Debra Dalgleish's marvellous coverage
> on the steps for data validation (DV) at her:
> http://www.contextures.com/xlDataVal01.html
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> Lori wrote:
> > Thank you, it finally worked this time by rewriting it to match yours and
> > replacing my source cell of C16. The first few times I tried it exactly as
> > you had it written, all I got was blank cells, so I rewrote it trying to get
> > it to work. The drop down box for the range name selection is really neat.
> > Is it easy to create?
> > --
> > Lori
>
> |
|
| Back to top |
|
 |
Max External

Since: Sep 08, 2003 Posts: 3335
|
Posted: Wed Jan 10, 2007 9:13 pm Post subject: Re: copy a specified name range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Pleasure` Lori.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lori" <Lori RemoveThis @discussions.microsoft.com> wrote in message
news:52C4EC4C-CC17-411A-A768-157CD0F2D937@microsoft.com...
> Thank you for the advice on the drop down list, it works great and I am
> using
> it in my estimate program file a number of times. Thanks again for your
> help.
> --
> Lori |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|