+ Reply to Thread
Results 1 to 7 of 7

Copying formulas from irregular cell locations

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    Manchester, England
    MS-Off Ver
    Office 2013
    Posts
    4

    Copying formulas from irregular cell locations

    Hi all,
    I’m a new member but have been visiting the forum for a while now. I have low to medium skill levels with Excel due to not regularly using the software causing me to forget useful code and functions.
    I need some insight into solving the following:

    I have 2 worksheets called “Entry” and “Results”, both of which are in the same workbook.

    I want to reference cells that are in Entry to locations in Results
    .
    The spacing between the columns where the cells are located in Entry are as follows:
    Entry!J7, Entry!N7, EntryR7 through to Entry!JK7 (i.e. there are 4 columns separating each location).

    The destination cells in Results are in Column alphabetical order (i.e. G10, H10, I10 etc).

    If I enter =Entry!J7 in Results and drag it across the row it will naturally not reference Entry!J7, Entry!N7, EntryR7 through to Entry!JK7.

    Can someone please provide a formula that can be input in a cell in Results and dragged across the row?

    Apologies for length of post and if it is as clear as mud!. Please let me know if more info is required.

    Version: 2013
    Platform: Window 10


    Many thanks in advance.
    Pini

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Copying formulas from irregular cell locations

    Hello Pini welcome to the forum.

    One way would be:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The Index range would of course need to reference the 'Entry' sheet.

    DBY

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Copying formulas from irregular cell locations

    Try

    =INDEX(Entry!7:7,(COLUMNS($G10:G10)-1)*4+10)

    *4+10 is the key part here, the results are 4 columns apart, with the first result coming from column J, which is the 10th column in the row.

    @DBY

    It's better to use ROWS() with the cell holding the first formula as the starting point for the row / column count, Using ROW(A1) as you have, will cause the formulas to fail if A1 is removed from the sheet by means of right click / delete.
    Last edited by jason.b75; 06-17-2016 at 12:16 PM.

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Copying formulas from irregular cell locations

    @ jason
    Yes you're correct. I'm truly chastised!

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Copying formulas from irregular cell locations

    Quote Originally Posted by DBY View Post
    I'm truly chastised!
    Sounds a bit harsh for a Friday

    A trivial bit of info for you, you don't need to specify row 1 in index when there is only 1 row of data, you can use the row as the column, =INDEX(1:1,10) will return J1, even though the 10 is technically row, not column.

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Copying formulas from irregular cell locations

    Thanks for the heads up on the being able to omit the row argument in this instance. It makes sense now you point it out. Back to the Naughty Step!

  7. #7
    Registered User
    Join Date
    06-15-2016
    Location
    Manchester, England
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Copying formulas from irregular cell locations

    Many thanks DBY and Jason for your more than prompt replies! Works a treat!

    Creating this spreadsheet as a volunteer for a charity group but I'm starting a new job soon meaning I won't have time to volunteer so really need to finish the work within the next week or so. Now for the next problem!

    Thanks again,
    Pini

+ 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. Replies: 3
    Last Post: 01-12-2016, 02:37 AM
  2. Copying Pivot Tables & Graphs to Duplicate Locations
    By Davek81 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-22-2014, 02:43 AM
  3. Replies: 1
    Last Post: 05-07-2013, 02:49 PM
  4. auto filling irregular formulas
    By Marcusant in forum Excel General
    Replies: 6
    Last Post: 08-27-2012, 11:29 AM
  5. How to copy and paste formulas/link locations
    By bhighsmith in forum Excel General
    Replies: 1
    Last Post: 05-04-2012, 11:05 AM
  6. [SOLVED] copying formulas to another cell
    By Julieeeee in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  7. copying formulas to another cell
    By greg in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM

Tags for this Thread

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