+ Reply to Thread
Results 1 to 5 of 5

How can I return a blank cell as blank using the IF function?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-31-2024
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    12

    How can I return a blank cell as blank using the IF function?

    How can I return a blank cell as blank using the IF function?

    Screenshot 2024-08-31 114104.png
    For example, I want the E3 cell blank to be represented as B3 (not "0") due to the calculation result of the IF function.

    Anyone help?
    Last edited by yui_2000; 08-31-2024 at 12:17 PM. Reason: Solved

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

    Re: How can I return a blank cell as blank using the IF function?

    Welcome to the forum.

    Maybe this:

    =IF(D2="N",IF(C2="","",C2),IF(B2="","",B2))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-31-2024
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    12

    Re: How can I return a blank cell as blank using the IF function?

    Thank you, it worked

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

    Re: How can I return a blank cell as blank using the IF function?

    Try
    Formula: copy to clipboard
    IF(D3="N",C3,IF(B3="","",B3))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    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


  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,487

    Re: How can I return a blank cell as blank using the IF function?

    You're welcome.



    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Return blank cell for IFS formula for Vlookup data with blank cells.
    By kmac1903 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2023, 10:04 AM
  2. Replies: 2
    Last Post: 08-13-2018, 02:30 AM
  3. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  4. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  5. Return first non blank cell (cells have formulas that return blank)
    By BG1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2016, 04:06 PM
  6. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  7. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 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