+ Reply to Thread
Results 1 to 9 of 9

Index & Match Formula +1 Increments

  1. #1
    Registered User
    Join Date
    12-02-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Index & Match Formula +1 Increments

    Hi All,

    Formula: =INDEX(B:B,MATCH("Site B",A:A,0)+0,1)

    Data:

    Sites Full Name
    Site A Mr A
    Site A Mr B
    Site B Mr C
    Site B Mr D
    Site B Mr E
    Site B Mr F
    Site C Mr AA

    When I drag the following formula down, I would like the increments to change by 1 so for eg. the formula for the cell below would be =INDEX(B:B,MATCH("Site B",A:A,0)+1,1).

    The results should be as follows:

    Mr C
    Mr D
    Mr D
    Mr E
    Mr F

    I only want the dataset for Site B.

    Can you provide a quick solution please? Many thanks in advance.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index & Match Formula +1 Increments

    Assuming your formula starts in A5, replace your +0 with

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index & Match Formula +1 Increments

    or... +rows($A$5:A5) again assuming thta your data start in A5...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    12-15-2012
    Location
    In a bin
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Index & Match Formula +1 Increments

    Hi

    Try the following, I have placed the formula in D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index & Match Formula +1 Increments

    Sorry Glen / Crisp

    The first formula must return 0 not 1 so

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-02-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Re: Index & Match Formula +1 Increments

    It has almost worked guys so thank you for your help so far. The formula I used is: =INDEX(B:B,MATCH("Site B",A:A,0)+ROWS($1:1)-1,1) This gave me the following results:

    MR C
    MR D
    MR E
    MR F
    MR AA

    The only incorrect outcome was "MR AA" as this belongs to Site C opposed to Site B.

    Can anyone help me amend my formula please to only include Site B Data?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index & Match Formula +1 Increments

    Try it like this...

    Data Range
    A
    B
    C
    D
    2
    Site A
    Mr A
    Mr C
    3
    Site A
    Mr B
    Mr D
    4
    Site B
    Mr C
    Mr E
    5
    Site B
    Mr D
    Mr F
    6
    Site B
    Mr E
    7
    Site B
    Mr F
    8
    Site C
    Mr AA
    9
    ------
    ------
    ------
    ------


    This formula entered in D2:

    =IF(ROWS(D$2:D2)>COUNTIF(A:A,"Site B"),"",INDEX(B:B,MATCH("Site B",A:A,0)+ROWS(D$1:D1)-1))

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    12-02-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Re: Index & Match Formula +1 Increments

    It worked! Thank you.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index & Match Formula +1 Increments

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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: 5
    Last Post: 10-16-2016, 02:33 AM
  2. Index & Match Formula +1 Increments
    By mbhogal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2015, 09:07 AM
  3. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  4. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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