+ Reply to Thread
Results 1 to 2 of 2

OFFSET formula with Defined Name not selecting complete column.

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    1

    OFFSET formula with Defined Name not selecting complete column.

    Could someone help me please. I've created a search box for a price list, but some of the values come up with #REF. After many attempts I noticed that each of the formulas I created on the price list page came up with a different result for the values highlighted in each column. The formula is the same for each column, the column numbers being the only difference - for instance:
    Column A = code - the formula is =OFFSET(Pricelist!$A$3,0,0,COUNTA(Pricelist!$A:$A)-1). In this column, if I go to Name Manager and select the formula and click in the first part of the formula, it selects all the entries in that column.
    Column D = colour - the formula is the same, but reads $D$3 and $D:$D. When I go to Name Manager and check this formula, it only selects the first 105 entries in the column. There are about 380 entries and more may be added at various stages.
    I have formulas for five other columns and they do exactly the same thing, but each column stops at a different entry.
    I have never seen this before and I have no idea how to fix it.
    I'm working in Excel 2007, but it's a 2003 document.
    Thanks
    Ria

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: OFFSET formula with Defined Name not selecting complete column.

    I would guess this is happening because you have an empty cell somewhere in your list. You could use the following as an alternates..

    $A$3:INDEX($A:$A,MATCH("zzzzzz",$A:$A,1)) for text data or

    $A$3:INDEX($A:$A,MATCH(9.9999e307,$A:$A,1)) for numbers.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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] Selecting an entire column using a reference defined in another cell
    By Pippin66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2012, 10:03 PM
  2. Complete multiple web forms and extract data with vbA - object not defined
    By excelseo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2012, 07:11 PM
  3. Selecting whole column after offset
    By bungaree in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2010, 05:10 PM
  4. User Defined formula, selecting range
    By p.strijbosch@chello.nl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2006, 05:30 AM
  5. error: ActiveCell.Offset(0, -1).Select = Application-defined or object-defined error
    By -[::::Shamran::::]- in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2005, 10:05 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