+ Reply to Thread
Results 1 to 8 of 8

If Isblank on a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    3

    If Isblank on a range of cells

    Hello, Excel Gurus:

    Please help on this one!!

    I have five columns of data. Some columns have data, some are empty.

    Goal:
    1. Create a new Column, with value "Yes" or Blank. And do checking.
    2. For each row, check the five cells in those five columns, if any of the cells have value, then return "Yes", Else return Blank.

    For Example,
    "Mary", Blank, Blank, "Tom", Blank Result: "Yes"
    Blank, Blank, Blank, Blank, Blank Result: Blank

    My function:
    IF(ISBLANK(F3:J3), ";", "Yes") "Yes" checking return correctly, However, if all cells are blank, it still return "Yes"

    Please Help!!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: If Isblank on a range of cells

    try this: =IF(AND(ISBLANK(F4),ISBLANK(G4),ISBLANK(H4),ISBLANK(I4),ISBLANK(J4)),";","Yes")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-30-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    3

    Re: If Isblank on a range of cells

    Thank you!!

    I just tried with your suggestion. Sorry, the checking when all five cells are blank, it still return "Yes".

    Please help!!

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: If Isblank on a range of cells

    You can use counta() also

    =IF(COUNTA(A2:E2)>0,"yes","Blank")
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,892

    Re: If Isblank on a range of cells

    alansidman's formula works just fine for me. Are these "blank" cells truly blank? The ISBLANK() function returns TRUE only when a cell contains nothing. A formula that returns empty string "" (like we frequently do) is not blank. At this point, only you can know if the "blanks" in your example data are true blanks or formulas that return empty string. If they are not true blanks, then simply modify your If condition to something other than ISBLANK(). Maybe IF(AND(F4="",G4="",...)...).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,960

    Re: If Isblank on a range of cells

    Or try this ...

    =IF(COUNTBLANK(F3:J3)=5,";","Yes")

  7. #7
    Registered User
    Join Date
    09-30-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    3

    Re: If Isblank on a range of cells

    Bingo Thank you so much guys!! You make it working!!

    @MrShorty, you are correct. Thanks for your remind!! Those cells are NOT Truly Blank!! I guess. Once switch "", it works!!
    If we remain as it is in the five columns, @Phuocam, your countblank formula also works!!

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: If Isblank on a range of cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] using IF(ISBLANK with cells that contain equations returns #VALUE!
    By osteolass in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-01-2013, 04:50 PM
  2. [SOLVED] Use ISBLANK Function with Named Range Instead of Cell Address
    By Toner in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-11-2012, 02:33 PM
  3. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  4. ISBLANK function and Cell range
    By AndyF19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2010, 09:33 AM
  5. ISBLANK with NETWORKDAYS and empty cells
    By gibbsmachine in forum Excel General
    Replies: 2
    Last Post: 05-01-2009, 08:21 AM
  6. Clearing cells / =IsBlank
    By jc0r in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2007, 08:13 PM
  7. ISBLANK for a Range
    By Sige in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-28-2005, 04:05 PM
  8. [SOLVED] Can you test for a range (Q16:19) any cell is ISBLANK
    By CRayF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2005, 02:05 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