Help!

Autopopulating formulass horizontally?

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  Values in Combo Box after adding to original Vali..  
Author Message
Leonhardtk
External


Since: Jul 09, 2007
Posts: 15



PostPosted: Mon Jun 22, 2009 2:36 pm    Post subject: Autopopulating formulass horizontally?
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

If I create the formula in A1:

=Worksheet!I4

I want to drag this to the right to copy the formula to other cells to the
right.

By default, A2 would equal:
=Worksheet!J4

If I procede the I4 with a $, I get the same value all accross:

A2: =Worksheet!$I4
A3: =Worksheet!$I4

How do I get
A2: =Workstheet!I5
A3: =Worksheet!I6

etc.

Thanks.
Back to top
Sean Timmons
External


Since: Dec 17, 2006
Posts: 372



PostPosted: Mon Jun 22, 2009 3:06 pm    Post subject: RE: Autopopulating formulass horizontally? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I assume you mean,
A2: =Worksheet!I5
B2: =Worksheet!I6

One way is to have a row of numbers.. so in row 3, have 5, 6, 7 across the
row.

then, in A2:

=INDIRECT("Worksheet!I"&A3)

And copy across.

The value in cell A2 would be the value in Worsheet!I5, then B2 would be I6,
etc.

"Leonhardtk" wrote:

>
> If I create the formula in A1:
>
> =Worksheet!I4
>
> I want to drag this to the right to copy the formula to other cells to the
> right.
>
> By default, A2 would equal:
> =Worksheet!J4
>
> If I procede the I4 with a $, I get the same value all accross:
>
> A2: =Worksheet!$I4
> A3: =Worksheet!$I4
>
> How do I get
> A2: =Workstheet!I5
> A3: =Worksheet!I6
>
> etc.
>
> Thanks.
>
Back to top
Don Guillett
External


Since: Jan 04, 2006
Posts: 2988



PostPosted: Mon Jun 22, 2009 5:12 pm    Post subject: Re: Autopopulating formulass horizontally? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

try this idea
=INDIRECT("j"&COLUMN(A1))
=INDIRECT("sourcesheetnamehere!j"&COLUMN(A1))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1.DeleteThis@austin.rr.com
"Leonhardtk" <Leonhardtk.DeleteThis@discussions.microsoft.com> wrote in message
news:7AA28FA6-816F-46BF-A7BB-1F751D4B8AB8@microsoft.com...
>
> If I create the formula in A1:
>
> =Worksheet!I4
>
> I want to drag this to the right to copy the formula to other cells to the
> right.
>
> By default, A2 would equal:
> =Worksheet!J4
>
> If I procede the I4 with a $, I get the same value all accross:
>
> A2: =Worksheet!$I4
> A3: =Worksheet!$I4
>
> How do I get
> A2: =Workstheet!I5
> A3: =Worksheet!I6
>
> etc.
>
> Thanks.
>
Back to top
Bassman62
External


Since: Mar 26, 2009
Posts: 10



PostPosted: Mon Jun 22, 2009 5:37 pm    Post subject: Re: Autopopulating formulass horizontally? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> If I create the formula in A1: =Worksheet!I4
> I want to drag this to the right to copy the formula to other cells to the
> right

> How do I get
> A2: =Workstheet!I5
> A3: =Worksheet!I6

If dragging to the right, the references should be B1=Worksheet!I5 &
C1=Worksheet!I6
In this case you'll need to transpose a vertical source to a horizontal
result.
First select a range of cells on your result sheet beginning in A1 and
extending the exact number of cells to the right as your source range
(Worksheet4!I-) is long. In other words if your source is from I4 to I23
your result range will be A1:T1. Both ranges being 20 cells in length.
With the cells selected enter this formula as an array formula:
=TRANSPOSE(Worksheet!$I$4:$I$23)
To commit the formula as an array formula, press Ctrl-Shift-Enter. If done
correctly you'll see that each formula is enclosed in brackets{}.

Best wishes.
Dave


"Leonhardtk" <Leonhardtk DeleteThis @discussions.microsoft.com> wrote in message
news:7AA28FA6-816F-46BF-A7BB-1F751D4B8AB8@microsoft.com...
>
> If I create the formula in A1:
>
> =Worksheet!I4
>
> I want to drag this to the right to copy the formula to other cells to the
> right.
>
> By default, A2 would equal:
> =Worksheet!J4
>
> If I procede the I4 with a $, I get the same value all accross:
>
> A2: =Worksheet!$I4
> A3: =Worksheet!$I4
>
> How do I get
> A2: =Workstheet!I5
> A3: =Worksheet!I6
>
> etc.
>
> Thanks.
>
Back to top
Bassman62
External


Since: Mar 26, 2009
Posts: 10



PostPosted: Mon Jun 22, 2009 5:54 pm    Post subject: Re: Autopopulating formulass horizontally? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Another way to transpose without the use of an array formula:
Place this formula in A1 and copy to the right as needed.
=INDEX(Worksheet!$I$4:$I$23,COLUMN(),1)

Dave



"Leonhardtk" <Leonhardtk DeleteThis @discussions.microsoft.com> wrote in message
news:7AA28FA6-816F-46BF-A7BB-1F751D4B8AB8@microsoft.com...
>
> If I create the formula in A1:
>
> =Worksheet!I4
>
> I want to drag this to the right to copy the formula to other cells to the
> right.
>
> By default, A2 would equal:
> =Worksheet!J4
>
> If I procede the I4 with a $, I get the same value all accross:
>
> A2: =Worksheet!$I4
> A3: =Worksheet!$I4
>
> How do I get
> A2: =Workstheet!I5
> A3: =Worksheet!I6
>
> etc.
>
> Thanks.
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
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