+ Reply to Thread
Results 1 to 5 of 5

How to fill a column of cells on sheet1 with non adjacent cells on sheet2

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to fill a column of cells on sheet1 with non adjacent cells on sheet2

    Hello! I have an excel file with multiple worksheets. Sheet1 has my report and sheet2 has a report I am pasting in from another source. On sheet1 I would like to fill 90 adjacent cells, E5:E94, with information from sheet2. The information on sheet2 that I would like Sheet1 to reference starts at D5 and goes up 6 each time all the way to D539. So...

    E5=Sheet2!D5
    E6=Sheet2!D11
    E7=Sheet2!D17
    Etc.

    When I try to use the fill handle to fill in the remainder, E8:E94, excel does not reference the correct cells. I would rather not enter in each one manually and I'm sure it's a simple fix, I'm just a newb when it comes to excel. Please help!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: How to fill a column of cells on sheet1 with non adjacent cells on sheet2

    Put this in E5 of Sheet1:

    =INDEX(Sheet2!D:D,ROWS($1:1)*6-1)

    then you can copy this down to E94

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to fill a column of cells on sheet1 with non adjacent cells on sheet2

    That's amazing! Thank you! You have already done more than enough so please do not feel obligated to, but would you mind explaining how this formula works? I would greatly appreciate it!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: How to fill a column of cells on sheet1 with non adjacent cells on sheet2

    The term ROWS($1:1)*6-1 will initially return 5 (i.e. 1*6 - 1), but when it is copied onto the next row it will become ROWS($1:2)*6-1, which will evaluate to 11 (2*6 - 1), and then on the next row it becomes ROWS($1:3)*6-1, which is 17, and so on. These are the cell numbers in column D where you want to retrieve the data from, and the INDEX function allows you to do that.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-23-2013
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to fill a column of cells on sheet1 with non adjacent cells on sheet2

    Genius! Thank you again! That saved me a ton of time

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Using ComboBox to fill data in cells of sheet1 from sheet2
    By tiemann66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2013, 12:48 PM
  2. [SOLVED] sheet1 row with spaces between cells, pulled to sheet2 column with no spaces between cells
    By chestersneakers7 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2013, 05:56 PM
  3. Copy all cells in sheet1 that start with specific letters to one column in sheet2
    By jgabis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 05:01 PM
  4. [SOLVED] Increment only 1 column reference in sheet1 while pasting formula 9 cells apart in sheet2
    By lesliewheeler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2013, 06:46 AM
  5. Replies: 1
    Last Post: 12-30-2012, 07:52 PM

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