+ Reply to Thread
Results 1 to 7 of 7

If cell value is blank, adjacent cell should be made blank as well. [Need formula please]

  1. #1
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    If cell value is blank, adjacent cell should be made blank as well. [Need formula please]

    Hi,

    I am working on a macro. I need a help. If one particular cell value turns out to be blank, then adjacent cell should be made blank (only if its blank this rule should be applied)

    for example if cell A1 returns blank value, then cell B1 should be made blank.

    if cell A1 returns some value, then cell B1 shouldn't be disturbed.

    Could you please help me with a formula for this. Thanks in advance.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    Quote Originally Posted by NickyC View Post
    Please Login or Register  to view this content.
    Thank you. But I am looking for some direct formula instead of code. is it possible via formula.?

  5. #5
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    I used this formula in B1

    =If(A1=" ", " ")

    But it returns FALSE whenever A1 is not spaces. which I don't want to happen. whenever A1 have some value it shouldn't disturb B1.
    Any leads will be highly appreciated.

  6. #6
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    Hi
    I don't think you can do it with a formula, but you could make it appear "blank" using conditional formatting if the cell's contents don't matter.

    for example, making this the condition:

    =A1=""

    and applying a custom number format of ;;; when this condition is met, means the cell will appear blank whenever A1 is blank

  7. #7
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: If cell value is blank, adjacent cell should be made blank as well. [Need formula plea

    Thank you. let me try that and get back

+ 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] Formula that will result the cell blank based on adjacent cell
    By LShepherd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2016, 01:04 PM
  2. Replies: 5
    Last Post: 08-15-2014, 08:33 AM
  3. Replies: 4
    Last Post: 05-15-2014, 09:32 AM
  4. [SOLVED] Formula to keep adjacent cell blank when no date is added!
    By Antligen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2014, 01:58 PM
  5. [SOLVED] Add formula if adjacent cell has name in it but remove formula in adjacent cell is blank
    By How How in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2013, 10:42 AM
  6. [SOLVED] Need a Cell (with formula) to be Blank if adjacent cell is blank - Help!!
    By mitrbikram in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-25-2012, 09:15 AM
  7. If cell blank than adjacent cell blank (with drop down)
    By pandagurl in forum Excel General
    Replies: 2
    Last Post: 10-06-2011, 03:27 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