+ Reply to Thread
Results 1 to 4 of 4

Can this be done? - When a lookup cell is removed, can the number remain as a value?

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    117

    Can this be done? - When a lookup cell is removed, can the number remain as a value?

    Please see attached example.

    What I want is that if A1 is removed, cell F1 will then automatically switch to the value red.

    Currently I am copy and pasting F1 as a value before I remove A1 but if there is a way to avoid this that would be great to know.

    Not looking for anything Macro related.

    Thanks
    Attached Files Attached Files
    Last edited by PaddyP; 08-04-2021 at 08:30 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    33,431

    Re: Can this be done? - When a lookup cell is removed, can the number remain as a value?

    What do you mean by "removed"? Deleting the content of the cell, which (with your current formula) would give you #N/A! error? Or deleting the cell, and maybe the cell next to it, which I was expecting would give a #REF! error but (at least in Excel 365) also gives a #N/A! error.

    To be honest, I don't think there is any option. Even with VBA, deleting the entry from the lookup table is likely to be problematic. A worksheet Change Event handler might be able to UNDO the deletion, determine what was previously in the cell with the VLOOKUP formula, convert it to a value, and restore the deletion.

    But, if you don't want VBA ...
    Trevor Shuttleworth - Excel Aid

    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


  3. #3
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Can this be done? - When a lookup cell is removed, can the number remain as a value?

    Yes I want to delete the content in A1 but instead of it showing #N/A I want to it show RED, and the formula is essentially removed from that cell.

    I didn't think it was possible but I thought I would ask. You guys have proved me wrong before!

    If it is too complicated I will simply copy and paste F1 before I remove the content in cell A1.

    Thanks for the reply.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    33,431

    Re: Can this be done? - When a lookup cell is removed, can the number remain as a value?

    You're welcome. Thanks for the rep.


    You can't convert a formula to a value without VBA (or doing it manually). Sorry

+ 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. Replies: 1
    Last Post: 11-20-2019, 02:12 PM
  2. [SOLVED] Padding a Number String with Zeros to remain as a Multiple of 3's in length (in VBA)
    By MohsenAlyafei in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2019, 05:44 AM
  3. [SOLVED] Move column with remain format cells and number stored as text
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2017, 09:44 AM
  4. How to make number format remain same even if vba executed from different geolocations?
    By Richavlaues in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-09-2016, 11:15 AM
  5. Replies: 14
    Last Post: 05-26-2016, 12:00 PM
  6. [SOLVED] Trying to get a value to remain copy into a cell and remain the same when condition met
    By shadowlost in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2013, 11:47 AM
  7. Another Filter (edited removed lookup)
    By blakrapter in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2009, 04:35 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