+ Reply to Thread
Results 1 to 7 of 7

Find first data

  1. #1
    Forum Contributor
    Join Date
    05-09-2005
    Location
    SC
    Posts
    196

    Find first data

    Hello,

    I need a formula that will find the first Y in a range of cells from A1:A10.

    Thanks,
    EMoe

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    I'm not sure what you want to do with the information once you get it....but, maybe one of these will help:

    Returns the position of the first "Y" in the list of cells (1 through 10):
    =MATCH("Y",A1:A10,0)

    Returns the cell address of the first cell containing "Y":
    =ADDRESS(MATCH("Y",A1:A10,0),1)

    Am I on the right track here?

    Ron

  3. #3
    Forum Contributor
    Join Date
    05-09-2005
    Location
    SC
    Posts
    196
    Not quit! Lets try a different approach.

    How do I write a formula; if cell B1 is greater than 9 but less than 11, return Yes as the value?

    Thanks,
    EMoe

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Here's what you asked for:
    =IF(AND(B1>9,B1<11),"Yes","")

    But, isn't that just:
    =IF(B1=10,"Yes","")

    ?

    Ron

  5. #5
    Forum Contributor
    Join Date
    05-09-2005
    Location
    SC
    Posts
    196
    Thanks Ron,

    Yes your right, its the same as the 2nd formula, but I just used that as an example. The first formula lets me adjust the ranges as needed.

    Regards,
    EMoe

  6. #6
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Hi, Ron: You are assuming the OP is dealing strictly with integers. e.g. 9.001 and 10.999 would also meet his criteria =IF(AND(B1>9,B1<11),"Yes",""), but fail =IF(B1=10,"Yes","").

    Cheers!

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Just trying to make sure EMoe got what was needed....not just what was asked for.

    Thanks (and welcome back from vacation)

    Ron

+ 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