+ Reply to Thread
Results 1 to 4 of 4

OFFSET with dynamic "reference"

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Portugal
    MS-Off Ver
    Office for MAC
    Posts
    3

    OFFSET with dynamic "reference"

    Hi guys!

    So i'm building a formula where i get values from a dynamic list using this method OFFSET('Husson - Cameleo'!$A$4;0;0;COUNTA('Husson - Cameleo'!$A:$A)-1) where "Husson - Cameleo" is the sheet name where I'm getting the values from.
    My question is: can that sheet name be change to a cell ref where I've a drop list with my sheet names?


    Thanks!

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: OFFSET with dynamic "reference"

    Yes, use the INDIRECT function in a manner like this:

    A1 = dropdown
    B1 = OFFSET(INDIRECT("'"&A1&"'!$A$4");0;0;COUNTA(INDIRECT("'"&A1&"'!$A:$A"))-1)

    Well, that's untested though.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,496

    Re: OFFSET with dynamic "reference"

    Probably, using INDIRECT. See this thread: http://www.excelforum.com/excel-form...formation.html


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    07-30-2014
    Location
    Portugal
    MS-Off Ver
    Office for MAC
    Posts
    3

    Re: OFFSET with dynamic "reference"

    Thanks! It's really that! I was close on my tests but hess I has missing a ).....

+ 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. [SOLVED] Dynamic Range For "SMALL" Function Then Offset LookUp
    By david.nicholls in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-08-2013, 07:15 AM
  2. Replies: 9
    Last Post: 11-06-2012, 08:59 AM
  3. How to change "From" & to have a dynamic "Subject" line in Excel Mailing
    By andy_iyeng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2012, 03:04 AM
  4. OFFSET func dynamic "reference"
    By debio4ko in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-04-2007, 09:13 AM
  5. "Dynamic cell reference" problems
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 8
    Last Post: 09-07-2005, 03: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