+ Reply to Thread
Results 1 to 3 of 3

Array formula returning #N/A when inserting new rows.

  1. #1
    annysjunkmail@tiscali.co.uk
    Guest

    Array formula returning #N/A when inserting new rows.

    Hi,

    Tom Ogilvy provided this excellent array formula for me a while ago
    which looks up and returns data that contains the keyword "Playing" in
    another worksheet. I have the formula in 5 columns and 11 rows. It
    works great but it causes problems when I try to insert rows above the
    formula, as it returns #N/A.

    here is the formula...

    =OFFSET(Teams!$A$1,SMALL(IF(Teams!$C$83:$C$105="Playing",ROW($C$83:$C$105)),ROW($A1))-1,4)

    If I insert a row above it recalulates the formula to...

    =OFFSET(Teams!$A$1,SMALL(IF(Teams!$C$83:$C$105="Playing",ROW($C$83:$C$106)),ROW($A1))-1,4)

    Note that the first ROW has increased from $C$105 to $C$106.

    Can someone help?

    Thanks
    Tony


  2. #2
    Tom Ogilvy
    Guest

    Re: Array formula returning #N/A when inserting new rows.

    since ROW is returning a row number, it didn't make any difference what
    sheet it was on - so I referred to the sheet with the formula. However, to
    avoid problem, refer to the lookup sheet like this:

    =OFFSET(Teams!$A$1,SMALL(IF(Teams!$C$83:$C$105="Playing",ROW(Teams!$C$83:$C$
    106)),ROW(Teams!$A1))-1,4)

    since you won't be adding rows there.

    --
    Regards,
    Tom Ogilvy



    <annysjunkmail@tiscali.co.uk> wrote in message
    news:1129323124.194136.96270@g49g2000cwa.googlegroups.com...
    > Hi,
    >
    > Tom Ogilvy provided this excellent array formula for me a while ago
    > which looks up and returns data that contains the keyword "Playing" in
    > another worksheet. I have the formula in 5 columns and 11 rows. It
    > works great but it causes problems when I try to insert rows above the
    > formula, as it returns #N/A.
    >
    > here is the formula...
    >
    >

    =OFFSET(Teams!$A$1,SMALL(IF(Teams!$C$83:$C$105="Playing",ROW($C$83:$C$105)),
    ROW($A1))-1,4)
    >
    > If I insert a row above it recalulates the formula to...
    >
    >

    =OFFSET(Teams!$A$1,SMALL(IF(Teams!$C$83:$C$105="Playing",ROW($C$83:$C$106)),
    ROW($A1))-1,4)
    >
    > Note that the first ROW has increased from $C$105 to $C$106.
    >
    > Can someone help?
    >
    > Thanks
    > Tony
    >




  3. #3
    annysjunkmail@tiscali.co.uk
    Guest

    Re: Array formula returning #N/A when inserting new rows.

    Tom,
    You are a gem. Thanks again
    Tony


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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