+ Reply to Thread
Results 1 to 5 of 5

Using OFFSET to select a value from filtered list

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Using OFFSET to select a value from filtered list

    I have a sample file for better clarification.

    In my file, you will see I have products and the category they reside in. I have filters on the data and one is applied so that only Benchtop Ionizers appear from my Tertiary Category column. What I want to happen, is cell D1 to display the name of whatever category is filtered upon. I tried the Offset but that will only show cell C6. When I filter to another category D1 will remain displayed as Benchtop Ionizers. Try for yourself. I saw that people are using Indexs and Matches, coupled with the Subtotal and Offset functions, but I cannot replicate it properly. I have the SUBTOTAL formula working okay by itself where it counts only the number of skus based on the filter. This is in cell B1. Can anyone help me out here?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Using OFFSET to select a value from filtered list

    This might be what you're looking for.

    In cell D1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using OFFSET to select a value from filtered list

    Ahh quekbc, you are a life saver, that was it. I was missing the lookup value in the match with that formula. Adding that did the trick. Thanks a ton for your help!

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using OFFSET to select a value from filtered list

    when you have a moment, can you explain why the height needs to be 1? I am not understanding that part of the formula.

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Using OFFSET to select a value from filtered list

    =OFFSET(reference, rows, columns, [height], [width]) for convenience
    That's because the reference range within the OFFSET function is referring to cells with a height of 16 (row 6 to 21). Doing an OFFSET without re-specifying the height will maintain it at a height of 16 cells.

    Setting the height to 1 ensures that you're looking at individual cells, and thus the COUNTA function will only return 1s for visible cells or 0 for non-visible cells. (If height is not set to 1, hidden cells may be counting visible cells as it references 16 cells below it).

    For example,
    =OFFSET(A1:A3,0,1) gives you B1:B3.
    =OFFSET(A1:A3,0,1,1) gives you B1

+ 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. Select offset variable offset cells
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2014, 06:12 AM
  2. [SOLVED] Excel VBA - Issue in Naming Filtered Range on a Filtered List.
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 01:17 PM
  3. [SOLVED] Help! Select blank cell in a filtered list
    By yoko21 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2013, 01:02 PM
  4. [SOLVED] Macro to select visible rows containg data in filtered list
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 01:22 PM
  5. Replies: 3
    Last Post: 04-11-2013, 04:13 AM
  6. Select the first cell of a filtered list?
    By Shane Moore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2010, 03:18 PM
  7. [SOLVED] Select data in filtered list
    By Stephen Rainey in forum Excel General
    Replies: 2
    Last Post: 07-28-2006, 07:40 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