+ Reply to Thread
Results 1 to 6 of 6

If formula to show blank for cell if its blank

  1. #1
    Forum Contributor
    Join Date
    03-04-2008
    MS-Off Ver
    Office 2007/2010
    Posts
    127

    If formula to show blank for cell if its blank

    A basic question sorry! I have this formula below, I would like it to show blank (so nothing) if there is nothing in the cell its looking at. At the moment it still shows 'Debiting' when I copy it down.

    =IF(A2>0,"Crediting","Debiting")


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,030

    Re: If formula to show blank for cell if its blank

    Try this in B2 and copied down.

    =IF(A2="","",IF(A2>0,"Crediting","Debiting"))

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: If formula to show blank for cell if its blank

    You could try >> =IF(A2<>"",IF(A2>0,"Crediting","Debiting"),"")
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    10-12-2023
    Location
    New Plymouth, New Zealand
    MS-Off Ver
    365 app for business
    Posts
    4

    Re: If formula to show blank for cell if its blank

    You may need to add another IF condition to account for the three options Debiting, Crediting and empty cell.
    e.g. =IF(A6>0,"Crediting",IF(A6<0,"Debiting",""))

  5. #5
    Forum Contributor
    Join Date
    03-04-2008
    MS-Off Ver
    Office 2007/2010
    Posts
    127

    Re: If formula to show blank for cell if its blank

    Thanks both they work

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,030

    Re: If formula to show blank for cell if its blank

    You are welcome.

+ 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] Editing a formula to show a blank cell if another cell is blank
    By nickpavlov in forum Excel General
    Replies: 3
    Last Post: 04-25-2021, 03:18 PM
  2. Replies: 4
    Last Post: 10-21-2018, 01:05 PM
  3. [SOLVED] Dragging formula to add two columns, but need to show blank when other cell is blank
    By doesntexist in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-05-2018, 11:18 PM
  4. [SOLVED] Formula to show blank if two cells are blank
    By adrenom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2016, 05:10 PM
  5. [SOLVED] Reference cell formula returning 0 when BLANK, need BLANK to show
    By williamc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2016, 04:23 PM
  6. Averaging with a blank cell, needs to show blank calculation
    By Pstreicher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2015, 08:08 AM
  7. Replies: 1
    Last Post: 09-23-2010, 01:24 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