+ Reply to Thread
Results 1 to 3 of 3

Changing reference cells...

Hybrid View

Lanner7 Changing reference cells... 09-14-2011, 07:18 PM
MarvinP Re: Changing reference... 09-14-2011, 08:39 PM
TonyB51 Re: Changing reference... 09-14-2011, 08:48 PM
  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    Reno, Nevada
    MS-Off Ver
    Excel 2007
    Posts
    1

    Changing reference cells...

    Hello!

    I'm attempting to save myself hours of work. Essentially I need to copy cells from one excel worksheet into a second excel worksheet with a different format. The change in format is very methodical. For example:

    Worksheet 1 has data in cells:
    A1
    A3
    A5
    A7

    And I would like to copy the data from those cells to Worksheet 2 into:
    A1
    B1
    C1
    D1

    Without copying and pasting A1 to A1, A3 to B1, A5 to C1, A7 to D1

    Obviously this doesn't work, but I in order to demonstrate my objective, I was thinking something along the lines of:

    A1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$1
    B1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$1+2
    C1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$1+4
    D1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$1+6

    The bold parts being the most important ones. As of right now I'm doing this, but I'm having to type out the entire line, and change only the end. For example:

    A1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$1
    B1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$3
    C1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$5
    D1(Worksheet 2) ='[Worksheet 1.xls] Sheet1'!$A$[B]7[/B

    Doing this hundreds and hundreds of times gets extremely tedious....

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: Changing reference cells...

    Hi Lanner7 and welcome to the forum.

    Put this in Sheet2 cell A1 and pull across to the right.
    =INDIRECT("Sheet1!A" & 2*COLUMN() -1)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-31-2009
    Location
    Childers QLD, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2013
    Posts
    128

    Re: Changing reference cells...

    Hi,

    I have attached an example of how you can achieve your results using VLOOKUP.

    See What you think.

    Cheers

    TonyB
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1