+ Reply to Thread
Results 1 to 8 of 8

Cell = sheet -1 Fill a cell with contents from the next sheet.

  1. #1
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Cell = sheet -1 Fill a cell with contents from the next sheet.

    Currently I have sheet 1 and sheet 2. I have a cell in sheet 1 Cell A2 that I would like to be equal to the next sheet cell A2. However when I copy sheet 1 to become sheet 3 and copy sheet 2 to become sheet 4 I would like Cell A2 in Sheet 3 to point to a new reference cell in sheet 4. Attached an example sheet. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    How you would like this to happen?
    A macro to update the formula for odd number sheet making reference to next even number sheet ??
    A macro launched by a key ??
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    Well essentially when I copy the sheet I would like it to point to the next sheet cell number. So rather than looking for the name of the sheet (sheet 4 cell A2) it will just look at the next sheet for the data. Can it be done without a macro and just do it with a formula? that would be ideal. If not a button or a macro would suffice.

  4. #4
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    Ideally I would like to have an option to put in something line like =sheet(next, A2). This would automatically look at the sheet to the right of whatever the sheet the formula is contained in.

  5. #5
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    Essentially I want to create my own function if it doesn't already exist in excel.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    Perhaps next code ...?
    In the sheet code put
    Please Login or Register  to view this content.
    in a module put
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    Almost but I don't want to have to write a sheet name, I can do that already. I want to only write the cell name that will be on the next sheet. So I want to write =NextSheet(A2) and it returns cell A2 in the sheet after the sheet the formula is written in. So the function would need to take the current sheet and add one to it then get the cell between () and return that to the cell in the original sheet.

  8. #8
    Registered User
    Join Date
    12-15-2017
    Location
    Fresno, CA
    MS-Off Ver
    2016
    Posts
    56

    Re: Cell = sheet -1 Fill a cell with contents from the next sheet.

    I think I got it. I used INDIRECT() and added this to a module. Now I just have to type =INDIRECT(NextSheetName()&"!A2") Thanks for the help!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by VShane; 02-09-2018 at 08:04 PM.

+ 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: 12-10-2015, 02:50 PM
  2. Function to copy cell contents from sheet 1 to sheet 2
    By cameron213 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2014, 08:13 PM
  3. Copy cell contents from one sheet to another sheet at a particular cell address
    By sfshah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2013, 11:42 AM
  4. Replies: 1
    Last Post: 04-19-2013, 04:00 PM
  5. look up on sheet 1 match data sheet 2 and fill in cell on first sheet
    By treborharris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-28-2013, 01:01 PM
  6. copy sheet to new sheet, rename it, return cell contents
    By soldstatic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2009, 01:49 PM
  7. [SOLVED] Lookup cell contents in on sheet based on a formula in second sheet
    By Michael Wright via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2005, 12:06 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