+ Reply to Thread
Results 1 to 9 of 9

HELP - Referencing cells from different sheets using fixed increment

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011 OSX
    Posts
    5

    HELP - Referencing cells from different sheets using fixed increment

    Hey,

    I am trying to reference a cell from one sheet to another one with increments of 40, been trying to find a solution in the forum but got too confused.

    Currently when I drag down, it increases by 1:
    ='Export invoices'!$C35
    ='Export invoices'!$C36
    ='Export invoices'!$C37

    Ideally I would like to drag it so it follows a set pattern (+40) as such:
    ='Export invoices'!$C35
    ='Export invoices'!$C75
    ='Export invoices'!$C115

    Thank you in advance!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: HELP - Referencing cells from different sheets using fixed increment

    Hi,

    Something like this copied down.

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


    You'll need to adjust the ROW() reference as necessary. This assumes the formula starts in C1. Were ut to start in say C3 you'd need to 'rebalance' it with a -2 correction. i.e.

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011 OSX
    Posts
    5

    Re: HELP - Referencing cells from different sheets using fixed increment

    Hey, Thanks for the quick reply!
    I tried it and it doesn't seem to work properly.. for some reason it jumped ahead 500 rows when i dragged it down..
    Am I missing something?

    Thanks a bunch

    Edit: Also, I am not mirroring formulas, simply alphanumeric values.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: HELP - Referencing cells from different sheets using fixed increment

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    03-01-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011 OSX
    Posts
    5

    Re: HELP - Referencing cells from different sheets using fixed increment

    Thanks, I have attached a sample workbook.
    All of my data is in the 'Export Invoices' sheet and I want to mirror it to 'Sheet 1'.
    The items I am trying to mirror have been highlighted in red..
    I basically would like to input one row of data set (1 invoice) and be able to drag that formula down so that excel mirrors all my data from 'Export Invoices' to my summary table in 'Sheet 1'. The data repeats every 40 rows...
    Hope I explained my issue properly. Thanks fellas

    Workbook1.xlsx

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: HELP - Referencing cells from different sheets using fixed increment

    Hi,

    See attached where I've created a copy of Sheet1 and added the formulae.

    However note that your last invoice is not consistent with the others. This should start on row 161 (i.e. 40 rows on from the previous invoice) and not row 163.

    I obviously don't know precisely how you operate this system but if as I suspect you are using it to create invoices to issue can I suggest that you do it differently.
    Create a proper database of invoices and have a single row for every invoice, with each piece of data occupying a different column.

    Then create a template workbook in which you will manually enter a particular invoice number. The other cells in the Invoice template will all be VLOOKUP formulae which look up the relevant column from the new database.

    You'll simplify things immensely and moreover you've then got the basis for a Pivot Table where you can analyse your data in ways you've not even thought of yet.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-01-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011 OSX
    Posts
    5

    Re: HELP - Referencing cells from different sheets using fixed increment

    Hi Richard,

    Thank you so much for the help!
    I like your suggestion of having every invoice in one row, is there a guide/template out there which I could use to get me started?
    You saved me lots of time, thank you again!

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: HELP - Referencing cells from different sheets using fixed increment

    See the attached which contains a typical database based on your invoices.

    You could either manually add each row, but given that there are repeats of information like the date, invoice no, etc, a smarter way to do it would be to use a front end menu, which would simply be a blank template of your current invoice.

    When creating a new set of records for the database a macro would first clear the invoice template, then after entering details much as you do now, you would click a button and the details from the template would be copied to the database, and the repeated items copied to as many rows as necessary.

    The template could also be used to suck data out of the database when you want to recreate an invoice. And of course a pivot table based on the data will allow you to dice and slice the data and allow you to analyse statistics for management reporting should that be required.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-01-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011 OSX
    Posts
    5

    Re: HELP - Referencing cells from different sheets using fixed increment

    Thank you so much for your help!

+ 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: 2
    Last Post: 03-23-2012, 07:41 AM
  2. Maintain Formatting when referencing cells from other sheets
    By joninmal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2010, 05:10 AM
  3. Replies: 13
    Last Post: 08-03-2009, 12:20 PM
  4. [SOLVED] formula referencing same cells but different sheets
    By jmosso in forum Excel General
    Replies: 2
    Last Post: 02-21-2008, 02:40 PM
  5. Referencing cells on non-active sheets
    By KellyB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2005, 03:06 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