+ Reply to Thread
Results 1 to 6 of 6

Creating the OFFSET formula with a dynamic reference cell

Hybrid View

  1. #1
    Registered User
    Join Date
    05-21-2015
    Location
    Orlando, Florida
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Creating the OFFSET formula with a dynamic reference cell

    Hi,

    I have created the formula =OFFSET(A20, 0, 1, 10, 13). The formula works but I want the beginning cell reference, A20, to be dynamic. The cell A20 contains a particular text value (a name) that will always be the same text and would be the point of reference for the OFFSET function. However, that name may appear anywhere in column A. Tomorrow it could be in A25 or A30. What function could I use in the place of a direct cell reference that would find that text value in a specified range of column A and return the cell reference where the text is found?

    Thanks!

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Creating the OFFSET formula with a dynamic reference cell

    This sheet shows one way that might work. The formula in C22 gets the reference and the formula in E22 shows how your offset formula could use that reference.

    Edit: I thought A20 held the text that you would be referencing every time. I read the question wrong. The answers below work much better.
    Attached Files Attached Files
    Last edited by nigelbloomy; 05-21-2015 at 03:49 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: Creating the OFFSET formula with a dynamic reference cell

    Try this jmillikan:

    =OFFSET(INDIRECT("A"&MATCH("TEXT",$A:$A,0),1),0,1,10,13)

    Let me know if it works.
    If I've helped U pls click on d *Add Reputation

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Creating the OFFSET formula with a dynamic reference cell

    You may replace A20 in the offset formula with Index/Match to find the text in col. A like this.....

    =OFFSET(INDEX($A:$A,MATCH("Name",$A:$A,0)), 0, 1, 10, 13)
    Where "Name" is the text you are looking in col. A
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    05-21-2015
    Location
    Orlando, Florida
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Re: Creating the OFFSET formula with a dynamic reference cell

    Thanks bhenlee and sktneer! Both methods worked. I had tried to use both of those methods and couldn't get it to work, but obviously I had something wrong. I'm just not sure what. Thanks for the quick response! I have added reputation to both!

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Creating the OFFSET formula with a dynamic reference cell

    You're welcome. Glad we could 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: 1
    Last Post: 04-10-2015, 11:53 AM
  2. Using Offset formula to change cell reference
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 03-23-2015, 02:14 PM
  3. Dynamic Reference with Offset
    By cooly53 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2013, 12:25 PM
  4. Offset a cell using a dynamic (moving) reference cell
    By wavelet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2010, 09:10 AM
  5. Offset using formula for cell reference
    By Gus80 in forum Excel General
    Replies: 8
    Last Post: 05-15-2008, 12:35 AM

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