+ Reply to Thread
Results 1 to 5 of 5

Offset formula - Error

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Offset formula - Error

    Dear all

    Have no idea i tried to define a "dynamic range"with Offset formular but invaid

    Appreciate your help


    =OFFSET(Sheet1!$A$5,,,COUNTA(Sheet1!$A$5:$A$8))

    Also if you can enlight me how to make a range with few column?!

    Thanks in advance


    See attached file

    Eric
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Offset formula - Error

    First, in the attached Excel file, there is a space before the formula "=". That makes the "formula" text, not a bona fide formula. I presume that is not part of the problem; merely your way of displaying the formula. In the future, attach Excel files that demonstrate the original problem. Obviously, we can see the formula(s) by selecting the cell(s).

    The formula translates into OFFSET(A5,,,4). That specifies an array of 4 elements, starting with A5. As such, the formula should be array-entered: press ctrl+shift+Enter instead of just Enter. And as a standalone expression (not passed to a function), you would normally select 4 cells and array-enter the formula in order to see the entire array.

    If your intent is to select the 4th cell after A5, use OFFSET(Sheet1!$A$5,COUNTA(Sheet1!$A$5:$A$8),0).

    But that is a "volatile" formula, which is recalculated every time any cell in the workbook is edited.

    Better: INDEX($A$5:$A$9,COUNTA($A$5:$A$9),1).

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Offset formula - Error

    For your dynamic data validation formula, use:
    Please Login or Register  to view this content.
    or:
    Please Login or Register  to view this content.
    For Index/match or VLookup with two columns use:
    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by protonLeah; 09-23-2018 at 04:54 PM.
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Offset formula - Error

    Dear all guru

    I have no idea why it does not work.
    See attached

    I want to make a dynamic range for 2 columns and apply this range to the Advance filter - list range
    =OFFSET(Sheet1!$A$5,1,0,COUNTA(Sheet1!$A:$A)-1,2)

    Can you help me out

    Thanks
    Eric
    Attached Files Attached Files
    Last edited by Eric Tsang; 09-24-2018 at 11:32 PM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Offset formula - Error

    Looking at the file it would seem that in cell G17 you want to be able to choose a last name and have H17 automatically display the corresponding first name.
    However that's not what either the description in post #1 or post #4 states.
    I feel as if it would be better if you could describe, or better yet give us an example, of what outcome you expect.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Error with Sum offset formula
    By excelnabb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2018, 04:22 AM
  2. OFFSET #VALUE error in formula, but okay when F9 evaluates
    By jlawton1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2016, 03:43 PM
  3. [SOLVED] Run Time Error '13' with offset formula
    By marius1304 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2015, 11:21 AM
  4. Offset Formula Error
    By Philipsfn in forum Excel General
    Replies: 2
    Last Post: 02-11-2015, 05:35 PM
  5. [SOLVED] #Value Error When Using Offset Formula
    By pkatz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 04:22 PM
  6. [SOLVED] error in formula of match and offset
    By jpbisani in forum Excel General
    Replies: 2
    Last Post: 05-30-2012, 05:51 AM
  7. Offset Formula Error
    By Badvgood in forum Excel General
    Replies: 5
    Last Post: 12-19-2011, 12:33 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