+ Reply to Thread
Results 1 to 2 of 2

#REF after row deletion

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    2

    #REF after row deletion

    Hi All,

    Is it possible to do the below statement:

    =(COUNTIF(Sheet1!$D$7:$M$12,A7)*Sheet1!B7)+(COUNTIF(Sheet1!$D$7:$M$12,A8)*Sheet1!B8)+(COUNTIF(Sheet1!$D$7:$M$12,A9)*Sheet1!B9)

    but if row 7/8/9's row was deleted or a row was added between these, would there be a way for this formula to still refer to A7/A8/A9. Currently if anything is added or deleted it messes up my calculation and puts #REF.

    I have deleted Row 7 and this is my formula

    =(COUNTIF(Sheet1!$D$7:$M$12,#REF!)*Sheet1!#REF!)])+(COUNTIF(Sheet1!$D$7:$M$12,A8)*Sheet1!B8)+(COUNTIF(Sheet1!$D$7:$M$12,A9)*Sheet1!B9)

    Many thanks
    Scott

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: #REF after row deletion

    May be this.........
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. row deletion
    By jusciusr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2013, 10:08 AM
  2. Row deletion
    By mtfd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2011, 11:15 AM
  3. No Deletion!
    By Peanut_M in forum Excel General
    Replies: 2
    Last Post: 01-11-2011, 05:31 AM
  4. Row Deletion
    By ringrim in forum Excel General
    Replies: 1
    Last Post: 08-20-2008, 05:21 PM
  5. Preventing deletion.
    By Big Rick in forum Excel General
    Replies: 5
    Last Post: 08-15-2005, 04:05 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