+ Reply to Thread
Results 1 to 4 of 4

Having trouble inserting OFFSET() as variable twice in formula

  1. #1
    Registered User
    Join Date
    05-23-2019
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    2

    Having trouble inserting OFFSET() as variable twice in formula

    Hi everyone,

    Long time lurker, first time poster. Online Excel 365.

    I have several sheets that I am running through to total sections and I want them to be dynamic based on raw data placed in a master list. Here is what I have so far:

    Please Login or Register  to view this content.
    This works just fine, and the
    Please Login or Register  to view this content.
    works great as a variable range.

    However, instead of hard coding the
    Please Login or Register  to view this content.
    , I was hoping to apply the same principle that worked for the first variable range.

    When trying:
    Please Login or Register  to view this content.
    so that the
    Please Login or Register  to view this content.
    just replaces the
    Please Login or Register  to view this content.
    , I get a reference error.

    I must be doing something wrong with the quotes, but have tried in vain different combos and when I plainly type the
    Please Login or Register  to view this content.
    into a cell, it returns the correct array. Any idea what I am doing wrong? Thank you!
    Last edited by Techgique; 03-24-2022 at 01:18 PM.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Having trouble inserting OFFSET() as variable twice in formula

    INDIRECT needs the address of the range, not the range itself. I think you can re-arrange your formula like this:

    Please Login or Register  to view this content.
    But it's tricky without a sample sheet to look at.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Having trouble inserting OFFSET() as variable twice in formula

    Oh. I guess you also want the second part:

    Please Login or Register  to view this content.
    WBD

  4. #4
    Registered User
    Join Date
    05-23-2019
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    2

    Re: Having trouble inserting OFFSET() as variable twice in formula

    Thank you WBD, this is precisely what was missing and works exactly like the hard-coded version, but this time the range is dynamic and populates the data automatically, allowing for growth. Many thanks!

+ 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] Trouble with Sumifs + Offset + Match (or other formula that might do the trick)
    By Absalon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2017, 04:34 AM
  2. Having trouble with macro formula referencing - offset? variable? help!
    By cljohnston64 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2015, 10:37 AM
  3. trouble inserting formula...
    By Bedlam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2011, 03:29 PM
  4. Replies: 3
    Last Post: 05-24-2011, 11:11 PM
  5. Trouble inserting a formula
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2010, 06:43 PM
  6. Trouble performing a lookup in VBA (by inserting a formula)
    By Unreal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2007, 03:18 PM
  7. offset formula trouble
    By Don Juan in forum Excel General
    Replies: 1
    Last Post: 09-20-2006, 08:43 PM

Tags for this Thread

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