+ Reply to Thread
Results 1 to 8 of 8

Formula to return N for cells with 0 and empty cells, and Y for cells with data

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Formula to return N for cells with 0 and empty cells, and Y for cells with data

    Hi and Happy 2016!
    I need a formula that will return N if the referred cell is blank or if it is 0. If the referred cell has data then it should return Y. My formula IF(A2>0, “Y, “N”) is returning the N and Y correctly when A2 has data. When A2 is blank, it returns Y. FYI, A2 is a formula cell i.e. the data in A2 is based on a formula.
    Thanks.
    SP

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    =if(A2="","N","Y")

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    How about:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    That gives Y with a 0.

    Try:
    =IF(OR(A2="",A2=0),"N","Y")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    answered same as posted earlier by ConneXionLost and Glenn as page could not refresh and I saw last post only.
    Last edited by hemesh; 01-13-2016 at 01:32 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    ...which, in turn, was the same as ConnexionLost's !!!

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    @ Glenn I edited post 5, I really could not see that!

  8. #8
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Formula to return N for cells with 0 and empty cells, and Y for cells with data

    Thank you all for your quick and great responses. The formula works well.
    SP

+ 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 to count cells that are not empty excluding cells with formulas
    By Imbizile in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2015, 07:08 AM
  2. Find empty cells and use data from neighboring cells to populate a list?
    By Margate in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2015, 05:33 PM
  3. Replies: 1
    Last Post: 08-28-2014, 12:48 AM
  4. [SOLVED] I need a formula that will return block of empty cells and their relvent times
    By john dalton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 09:01 AM
  5. Data sort, empty formula cells to bottom merged cells!
    By ikkuh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-09-2013, 03:10 AM
  6. Replies: 0
    Last Post: 11-03-2012, 06:11 PM
  7. writing a formula to return non-empty cells
    By pmetzak in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2007, 03:34 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