+ Reply to Thread
Results 1 to 8 of 8

trouble w/ if formula finding values within a column

  1. #1
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    trouble w/ if formula finding values within a column

    This should be pretty easy for anyone who knows what they're doing, for me its a bit hard. I've attached the small file to make it easier to conceptualize.

    I have a list of numbers in A1:A28.

    I want to see if the number in D1 is in that list. So in D2 I wrote this formula:
    =IF(A1:A28=D1,"YES","NO")

    I'm always getting a no tho. Why would that be?


    Fil.xlsx

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,463

    Re: trouble w/ if formula finding values within a column

    Perhaps
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: trouble w/ if formula finding values within a column

    Hi

    Working on an answer for you that will work but looking at your formula A1:A28 would all have to have the same value as D1 to get a yes.


    Chris
    Click my star if I helped Thanks

  4. #4
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: trouble w/ if formula finding values within a column

    Quote Originally Posted by dogberry View Post
    Hi

    Working on an answer for you that will work but looking at your formula A1:A28 would all have to have the same value as D1 to get a yes.


    Chris
    really?

    basically i just want a yes if D1 is in the list somewhere.

  5. #5
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: trouble w/ if formula finding values within a column

    Hi

    I think you have been given the solution by Pepe

    Chris

    Yes just tried it and it works.

    C
    Last edited by dogberry; 11-13-2012 at 04:11 PM.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: trouble w/ if formula finding values within a column

    Another way

    =IF(ISNUMBER(MATCH(D1,A1:A28,0)),"Yes","No")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,463

    Re: trouble w/ if formula finding values within a column

    Forgot the references
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: trouble w/ if formula finding values within a column

    that worked, thanks Pepe! as well as Ace & Dogberry for making the effort.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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