+ Reply to Thread
Results 1 to 3 of 3

Need to find first occurence of data in a range of cells

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Fredericksburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need to find first occurence of data in a range of cells

    I have a range of cells from Jan-Dec that show when an item is awarded. I need a formula that returns the month the initial award appears so I can then compare this to the month the first sales appear.

    The attached file shows examples.

    ThanksFirstOccurenceExample.xls

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

    Re: Need to find first occurence of data in a range of cells

    Use this array formula

    =INDEX($B$1:$M$1,MATCH(TRUE,B2:M2<>0,0))


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    or this non-array one..

    =INDEX($B$1:$M$1,MATCH(1,INDEX((B2:M2<>0)+0,0),0))
    Last edited by Ace_XL; 11-12-2013 at 03:13 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-12-2013
    Location
    Fredericksburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need to find first occurence of data in a range of cells

    thank you so much. The non-array worked exactly as I hoped

+ 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: 2
    Last Post: 09-09-2013, 06:44 PM
  2. [SOLVED] How do I find the first occurence of a series of data in a range and return the value
    By bparrott in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 07:05 PM
  3. Countif to find 2nd occurence in range
    By BHudPE in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-02-2011, 06:55 PM
  4. Find the last occurence of data in a list
    By Bernman in forum Excel General
    Replies: 5
    Last Post: 06-26-2007, 12:47 AM
  5. [SOLVED] Find 1st occurence of value in Range 1 in Range 2
    By Ozbobeee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2005, 09:06 AM

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