+ Reply to Thread
Results 1 to 5 of 5

Formula to return Yes or No

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Formula to return Yes or No

    Hi folks

    Cell B3 has "1,2,3,10" and I want "yes" in Cell N3 if Cell B3 has 10 as the final number and "no" if it does not.

    Similarly if Cell B4 has 8,9,10,11 I want "yes" in Cell N4 if 11 is the final number and "no" if it is not.

    So I would just adjust the formula to the final number required.

    There are no triple digit numbers.

    Cheers
    Hammer

  2. #2
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to return Yes or No

    Hi
    Think I needed to supply more information.
    Each final number (lets use 10) will have it's own sheet. But it will not always be the final number in the cells in that sheet.
    I want to be able to return yes when 10 is the final number in the cells in col b

    Likewise for all other numbers.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to return Yes or No

    just a guess:
    =IF(COUNTIF(B3,"*,10"),"yes","no")

    or if 10 is in a cell say M3, then:
    =IF(COUNTIF(B3,"*,"&M3),"yes","no")

    if it's possible 10 stands alone in B3, then:
    =IF(MID(","&B3,FIND("^",SUBSTITUTE(","&B3,",","^",LEN(","&B3)-LEN(SUBSTITUTE(","&B3,",",""))))+1,3)="10","yes","no")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to return Yes or No

    This "just a guess:
    =IF(COUNTIF(B3,"*,10"),"yes","no")
    "

    Exactly it, thank you.
    I almost worked it out for myself but had too many * in the formula.

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Formula to return Yes or No

    write at N3
    =IF(ISNUMBER(FIND(ROW(10:10),B3)),"Yes","No")

    copy down

+ 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 always return cell below what a vlookup would return
    By KCHEXCEL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 12:57 AM
  2. [SOLVED] IF statement to return 0 if 0 in cell if not return formula
    By CraigieL in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2013, 09:46 AM
  3. Formula that will return a formula that is based on the value in a cell.
    By vlambert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 02:13 PM
  4. Replies: 2
    Last Post: 04-23-2012, 05:01 PM
  5. Replies: 1
    Last Post: 06-30-2010, 04:36 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