+ Reply to Thread
Results 1 to 4 of 4

Delete a cell that is referred to in a formula without getting REF error?

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Delete a cell that is referred to in a formula without getting REF error?

    Hi all,

    I need to delete a cell that is referencfed in a formula. Please help!

    B2 contains just the word 'Danny' B6 on a seperate worksheet contains =Plan!B2

    Obviously when Idelete B2 the formula shows a REF error. I thought I would try $B$2 to stop the problem but this also doesn't work. Anything you could suggest would be much appreciated.

    Thanks,

    Danny

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Delete a cell that is referred to in a formula without getting REF error?

    Hi Danny,

    Do you have to actually delete the cell rather than clearing its contents?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,499

    Re: Delete a cell that is referred to in a formula without getting REF error?

    If you always want to refer to row 2 in column B, you could use INDEX(B:B,2).

    Or, if Danny is a key field, you could use VLOOKUP or INDEX/MATCH to locate the correct entry.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Delete a cell that is referred to in a formula without getting REF error?

    Maybe this...

    =INDIRECT("Plan!B2")

    That will ALWAYS refer to Plan!B2.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Keep reference the same when cell referred to is moved.
    By aschrag in forum Excel General
    Replies: 3
    Last Post: 09-15-2014, 12:59 PM
  2. [SOLVED] Is there a formula that allows you to reference the cell referred to in a UDF?
    By Excel2010101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2014, 07:37 AM
  3. e cell referred to in a UDF?
    By Excel2010101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2014, 01:15 AM
  4. Protecting cell data from being referred in formulas
    By varun.kaul in forum Excel General
    Replies: 0
    Last Post: 03-24-2014, 07:40 AM
  5. [SOLVED] How to make a cell value dynamic when the referred value changes?
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2013, 01:14 PM
  6. Multiple cells referred to in IF formula query
    By Danofire in forum Excel General
    Replies: 5
    Last Post: 06-24-2008, 07:00 PM
  7. Conditional format but referred from other cell
    By Lamb Chop in forum Excel General
    Replies: 2
    Last Post: 07-28-2006, 04:55 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