+ Reply to Thread
Results 1 to 3 of 3

Problem with an IF formula

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problem with an IF formula

    Hi Folks,

    Sorry for the stupidity of this question, I'm a complete noob to formulas in Excel!

    I am looking for a formula that says "If cell D20 contains the letter Y then return the number 1, if the cell contains the letter N then return 0"
    Or it could be written along the lines of "If cell D20 contains Y, Yes, yes or YES then return 1, otherwise return 0."

    Can anyone help me?

    Thanks!
    Last edited by gillmcc; 02-26-2013 at 08:10 AM. Reason: Forum Rules

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Problem with an IF formula

    Hi gillmcc

    Try:
    =IF(D20="Y",1,IF(D20="N",0,""))
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  3. #3
    Registered User
    Join Date
    02-26-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problem with an IF formula

    Thanks Kevin! That worked perfectly!

    Much appreciated! :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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