A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Autopopulating formulass horizontally?



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2009, 10:36 PM posted to microsoft.public.excel.worksheet.functions
Leonhardtk
external usenet poster
 
Posts: 26
Default Autopopulating formulass horizontally?


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.

  #2  
Old June 22nd, 2009, 11:06 PM posted to microsoft.public.excel.worksheet.functions
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Autopopulating formulass horizontally?

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.

  #3  
Old June 22nd, 2009, 11:12 PM posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
 
Posts: 6,167
Default Autopopulating formulass horizontally?

try this idea
=INDIRECT("j"&COLUMN(A1))
=INDIRECT("sourcesheetnamehere!j"&COLUMN(A1))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Leonhardtk" wrote in message
...

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.


  #4  
Old June 22nd, 2009, 11:37 PM posted to microsoft.public.excel.worksheet.functions
Bassman62
external usenet poster
 
Posts: 75
Default Autopopulating formulass horizontally?

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" wrote in message
...

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.



  #5  
Old June 22nd, 2009, 11:54 PM posted to microsoft.public.excel.worksheet.functions
Bassman62
external usenet poster
 
Posts: 75
Default Autopopulating formulass horizontally?

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" wrote in message
...

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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.