+ Reply to Thread
Results 1 to 3 of 3

Help with automatic sheet referencing

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Help with automatic sheet referencing

    Hi all,

    I had a question regarding automatic sheet referencing within a formula.

    I have the below formula:

    IF(VLOOKUP($Y4,'Pivot Paste'!A:G,5,FALSE)="TCOE",VLOOKUP($Y4,'Pivot Paste'!A:G,6,FALSE),IF(AND(AG4<>"0",COUNTIF('Pivot Paste'!A:A,'Oct''19'!Y4)>1),INDEX('Pivot Paste'!A:G,MATCH($Y4,'Pivot Paste'!A:A,0)+1,6),0))

    'Oct 19' in the formula is the name of the sheet the formula is on. Would there be a way to write this formula so that if I were to post it on a sheet called 'Nov 19' It would automatically refer to that sheet?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,894

    Re: Help with automatic sheet referencing

    Just remove the 'Oct 19'! (i.e. Sheet reference). As long as the cell/range reference refers to the same sheet as the cell holding the formula. It will work.
    Last edited by CK76; 11-06-2019 at 10:51 AM. Reason: Grammar
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Help with automatic sheet referencing

    Hi armando12345,

    Yes you could simply use find and replace (ctrl + H) to find 'Oct 19' and replace it with 'Nov 19'. Make sure you just select the relevant cells though before you do the find and replace, otherwise it will apply it to the whole worksheet.

    Regards,

    Snook

+ 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. Automatic Absolute referencing
    By jlheath01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2015, 02:49 PM
  2. Replies: 0
    Last Post: 01-09-2013, 06:58 AM
  3. VBA code to insert formula with automatic cell referencing & size
    By vbatech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2012, 04:32 AM
  4. Referencing automatic combo boxes in VBA
    By WorldBridge in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2012, 05:50 PM
  5. [SOLVED] Automatic date referencing condition ?
    By Diandude in forum Excel General
    Replies: 1
    Last Post: 06-15-2012, 04:17 PM
  6. Automatic Referencing
    By dermaeher88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2010, 01:22 PM
  7. [SOLVED] Automatic Sort with VLOOKUP/LARGE Functions-referencing a range
    By G in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-24-2005, 04:05 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