+ Reply to Thread
Results 1 to 5 of 5

Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is blank

  1. #1
    Registered User
    Join Date
    04-18-2017
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Cool Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is blank

    Hi,

    I am looking for a formula by which the value in the target cell will be zero if the adjacent cell is zero, and a value from another cell will be copied if the adjacent cell is blank.
    For example, in the attached sheet, I require cell G3 to be zero if the user inputs a value of zero in cell F3, and G3 to display the value of cell E3 if the user leaves F3 blank. Please note that I will be using conditional formatting using icon sets to display an icon in F3 when the user keys in zero in this cell.

    I would greatly appreciate any help with this. Thank you.
    Attached Files Attached Files
    Last edited by SS503; 04-18-2017 at 06:42 AM. Reason: I got the answer

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is bl

    Welcome to the forum!

    Try this:

    =IF(F3="",E3,F3)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-18-2017
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Re: Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is bl

    Thank you very much for your reply and for the welcome! In between my posting of my question, and seeing your reply, however, I managed to get hold of the formula: =IF(ISBLANK(F5),E5, (F5))

    I do appreciate your prompt reply
    Last edited by SS503; 04-18-2017 at 06:50 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is bl

    You're welcome! Be aware, though, that the ISBLANK function will only work with truly blank cells, not those whose apparent blankness is the result of a formula.

  5. #5
    Registered User
    Join Date
    04-18-2017
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Re: Require cell to be zero if adjacent cell is zero, & copy a cell if adjacent cell is bl

    Thank you for the caution. In the sheet I am working on, the blank cells have nothing in them at all. I need the user to leave the cells blank if an item is not available, and to input a zero if it is. I hope the user doesn't mess with my grand plans though!

+ 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] Copy Cell Adjacent to Blank Cell in Range.
    By NewExcelUser in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2015, 07:45 PM
  2. Replies: 3
    Last Post: 07-21-2015, 05:10 PM
  3. Copying data from adjacent cell to blank cell (left side)
    By raghunaik in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-14-2015, 08:20 AM
  4. Need loop to copy value on a column until cell adjacent to it is blank.
    By boonboonzzz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2014, 02:04 AM
  5. Macro to copy adjacent cell into a blank cell
    By BowHunter09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2013, 03:06 PM
  6. User form to display adjacent cell value and move to next blank cell
    By Ketel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2008, 03:15 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