+ Reply to Thread
Results 1 to 7 of 7

IF A1="" THEN "make A2 empty

  1. #1
    Registered User
    Join Date
    09-11-2017
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    8

    IF A1="" THEN "make A2 empty

    I've new to Excel. I'm trying to see if a certain cell is empty and if it is then make a another cell empty also. (IF A1="" THEN "make A2 empty)

    I've tried this, but it doesn't work.
    =IF(A1="",A2="",)

    This does work
    =IF(A1="",TRUE,FALSE)
    Depending on whether A1 is empty or not, I get either TRUE or FALSE

    I've spent a lot of time searching the Internet, but haven't found an answer. Maybe I'm not asking the proper question.

    What am I missing?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF A1="" THEN "make A2 empty

    An Excel function is used in a cell to give a value to that same cell. You cannot use a function in one cell that puts a value into a different cell.

    The way to do this is to put the following formula in A2:

    =IF(A1="","","?")

    The question mark is what goes into A2 if A1 is not blank--I don't know what you want to do in that case.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF A1="" THEN "make A2 empty

    It depends on what is in A2.

    If you have a formula in A2 then wrap
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    around your formula.

    If you are uncertain what is in A2 then you need a macro.

    Right Click on your sheet name at the bottom of excel and select view code.

    Paste this code into the module that opens and close it. Save your workbook as macro enabled.

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    09-11-2017
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    8

    Re: IF A1="" THEN "make A2 empty

    The cell I want to make empty (A2) is a cell that the user enters numbers into. It has no formula. Because this is the case, I don't think I can write a formula in A2.

    I would prefer not to use any macros on the sheet. Do I have anyother options?

    I appreciate your help.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF A1="" THEN "make A2 empty

    No other option. Sorry.

  6. #6
    Registered User
    Join Date
    09-11-2017
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    8

    Re: IF A1="" THEN "make A2 empty

    I may have a different solution that would require user intervention.

    Here is my actual formula. I entered this in a cell next to the one I want to clear IF another cell is empty.
    =IF(AND(F9="",G10<>""),"Remove date from G10",)

    The I Conditionally Formatted the Cell to turn RED if the conditions was met in order to highlight the message.
    =AND($F$9="",$G$10<>"")

    Do you foresee any issues with this?

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF A1="" THEN "make A2 empty

    It can work but any time you require user cooperation it is out of your control.

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Replies: 4
    Last Post: 02-03-2008, 05:11 PM
  7. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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