+ Reply to Thread
Results 1 to 4 of 4

Change cell reference

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2000
    Posts
    14

    Change cell reference

    I have several cells that reference a cell on a different worksheet. Everyday this reference will change.

    Example: cell A1 might have the referece ='Current Balance'!D1

    Tomorrow that reference will be ='Current Balance'!E1.

    In other words, the column will change daily, but the row will stay the same.

    This code gives me the column I need from the other worksheet, but I can't seem to figure out how to use that info to change the formula.

    Please Login or Register  to view this content.
    Trying to use the INDIRECT function didn't seem to work either. Someone please point me in the right direction.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Change cell reference

    try using offset, something like this

    =OFFSET(Sheet2!B4,0,x)

    where x is a referene to how many columns over you need the refference to be.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2000
    Posts
    14

    Re: Change cell reference

    Guess I didn't even need vba for that one. Thank you, sir!

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Change cell reference

    no problem, glad to assist.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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