Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Pulling data from one column to another column with a formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jp - 12 Nov 2007 22:37 GMT
Say I have the following sheet

      A
1      c
2      a
3      b
4      c
5      d
6      a
7      c
8      a
9      b
10    c

How can I create a column in B that displays the values in A1, A3, A5,
A7, A9.  Excel will not allow me to just put "=A1" in B1 and "=A3" in
B2 and then drag that pattern down.  It does not recognize that
pattern.  Help!  The answer sheet needs to look like this:
       A       B
1      c        c
2      a        b
3      b        d
4      c        c
5      d        b
6      a
7      c
8      a
9      b
10    c
Gord Dibben - 13 Nov 2007 00:07 GMT
In B1 enter  =A1

In B2 enter this and copy down.

=OFFSET($A$1,2*ROW()-2,0)

Gord Dibben  MS Excel MVP

>Say I have the following sheet
>
[quoted text clipped - 25 lines]
>9      b
>10    c
jp - 13 Nov 2007 22:40 GMT
Thanks so much for your help!  That is a tremendous time saver!
carlo - 13 Nov 2007 00:14 GMT
> Say I have the following sheet
>
[quoted text clipped - 25 lines]
> 9      b
> 10    c

paste this formula in A1 and copy it down:

=INDIRECT("A"&(ROW()-1)*2+1)

if you want to show "" if column A is empty you can do that

=IF(INDIRECT("A"&(ROW()-1)*2+1)="","",INDIRECT("A"&(ROW()-1)*2+1))

hth

Carlo
RagDyer - 13 Nov 2007 01:23 GMT
Non-volatile approach:

=INDEX(A:A,2*ROWS($1:1)-1)

Enter anywhere, and copy down as needed.
Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> Say I have the following sheet
>
[quoted text clipped - 25 lines]
> 9      b
> 10    c
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.