+ Reply to Thread
Results 1 to 6 of 6

Formula to return Y if cell has data and N if cell has no data

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

    Formula to return Y if cell has data and N if cell has no data

    Hello,
    I need a formula that refers to a cell, and will return Y if there is data (a mix of letters or numbers) and N if the cell has not data (is empty).

    In case I need it for future, could I also have a separate formula, to return blank for blank cells.

    I am using Excel 2007.
    Thank you,
    SP

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Formula to return Y if cell has data and N if cell has no data

    Is this something you can use?
    Please Login or Register  to view this content.
    Change the "N" to "" to get a blank instead for blank cells.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Formula to return Y if cell has data and N if cell has no data

    For your future reference:

    =IF(ISBLANK(cell),"")

    or

    =IF(cell="","","other condition")
    If I've helped U pls click on d *Add Reputation

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

    Re: Formula to return Y if cell has data and N if cell has no data

    Thank you both for your response.
    I ran the formula and saw that each cell returned a Y as the referring cells have a 0 (zero), since it based from another formula.
    So, I guess I will need this formula to be something that will return Y, if there is a string? (text and numbers), and N if it is blank or only 0 (zero).
    I should have noted this in my original request, my apologies.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Formula to return Y if cell has data and N if cell has no data

    In comparison with 0, text/string or number that greater than 0 is greater than 0

    So try this:

    =IF(A1>0,"Y","N")
    Quang PT

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

    Re: Formula to return Y if cell has data and N if cell has no data

    Thank you Quang!
    Works very well.

+ 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. Replies: 4
    Last Post: 05-14-2015, 02:48 PM
  2. [SOLVED] Formula to Locate Matching Data in Worksheets and return Yes or No to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2015, 06:51 AM
  3. when i click the cell where i used Countifs formula it should return the data ?
    By uttam.mothe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2014, 11:19 AM
  4. Formula to Look Up Marked Cell, and Return Data Above
    By mcmathae in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 05:30 PM
  5. [SOLVED] Formula to return mulitple columns of data into one cell
    By Lizzie123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-13-2013, 06:54 PM
  6. Simple formula to return true if cell contains no data
    By Pyrex238 in forum Excel General
    Replies: 2
    Last Post: 11-17-2011, 11:46 AM
  7. Replies: 8
    Last Post: 05-14-2006, 12:30 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