+ Reply to Thread
Results 1 to 5 of 5

INDEX MATCH from 2 worksheets onto third worksheet

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    INDEX MATCH from 2 worksheets onto third worksheet

    Hello,

    So I'm using the following formula in 2 separate worksheets (sheet 1 & sheet 2) to count the yes'.

    Please Login or Register  to view this content.
    I then have a third worksheet that I'd like to pull all the yes' from both the worksheets and compile into 1 complete list. I'm using the following formula which works fine if I'm pulling info from 1 worksheet.

    Please Login or Register  to view this content.
    I cant seem to figure out how to index and match both worksheets. I've tried this..

    Please Login or Register  to view this content.
    But it doesn't work.

    Any help would be greatly appreciated

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: INDEX MATCH from 2 worksheets onto third worksheet

    I would change the first formula to this in I2 of both sheets:

    =IF(H2="Yes", MAX($I$1:$I1)+1,"")

    When you copy this down you just get consecutive sequentially-numbered records for those where column H is yes. In I1 of the second sheet (New Prospects) you need this formula:

    =MAX('Lapsed Customers'!$I:$I)

    so that the numbers follow on in the second sheet. Then in your 3rd sheet you can have this formula in column A:

    =IF(ROWS($1:1)>MAX('New Prospects'!$I:$I),"",IF(ROWS($1:1)<'New Prospects'!$I$1,INDEX('Lapsed Customers'!A:A,MATCH(ROWS($1:1),'Lapsed Customers'!$I:$I,0)),INDEX('New Prospects'!A:A,MATCH(ROWS($1:1),'New Prospects'!$I:$I,0))))

    and then copy across and down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Re: INDEX MATCH from 2 worksheets onto third worksheet

    Quote Originally Posted by Pete_UK View Post
    I would change the first formula to this in I2 of both sheets:

    =IF(H2="Yes", MAX($I$1:$I1)+1,"")

    When you copy this down you just get consecutive sequentially-numbered records for those where column H is yes. In I1 of the second sheet (New Prospects) you need this formula:

    =MAX('Lapsed Customers'!$I:$I)

    so that the numbers follow on in the second sheet. Then in your 3rd sheet you can have this formula in column A:

    =IF(ROWS($1:1)>MAX('New Prospects'!$I:$I),"",IF(ROWS($1:1)<'New Prospects'!$I$1,INDEX('Lapsed Customers'!A:A,MATCH(ROWS($1:1),'Lapsed Customers'!$I:$I,0)),INDEX('New Prospects'!A:A,MATCH(ROWS($1:1),'New Prospects'!$I:$I,0))))

    and then copy across and down as required.

    Hope this helps.

    Pete
    Hi Pete,

    Thanks, that seems to be working.

    However, It's matching row 1 from the New Prospects sheet which is the title for each column. How do I rectify that?

  4. #4
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Re: INDEX MATCH from 2 worksheets onto third worksheet

    Quote Originally Posted by Pete_UK View Post
    I would change the first formula to this in I2 of both sheets:

    =IF(H2="Yes", MAX($I$1:$I1)+1,"")

    When you copy this down you just get consecutive sequentially-numbered records for those where column H is yes. In I1 of the second sheet (New Prospects) you need this formula:

    =MAX('Lapsed Customers'!$I:$I)

    so that the numbers follow on in the second sheet. Then in your 3rd sheet you can have this formula in column A:

    =IF(ROWS($1:1)>MAX('New Prospects'!$I:$I),"",IF(ROWS($1:1)<'New Prospects'!$I$1,INDEX('Lapsed Customers'!A:A,MATCH(ROWS($1:1),'Lapsed Customers'!$I:$I,0)),INDEX('New Prospects'!A:A,MATCH(ROWS($1:1),'New Prospects'!$I:$I,0))))

    and then copy across and down as required.

    Hope this helps.

    Pete
    Hi Pete,

    Thanks, that seems to be working.

    However, It's matching row 1 from the New Prospects sheet which is the title for each column. How do I rectify that?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: INDEX MATCH from 2 worksheets onto third worksheet

    Just change the less than symbol to less than or equal, as shown in red below:

    =IF(ROWS($1:1)>MAX('New Prospects'!$I:$I),"",IF(ROWS($1:1)<='New Prospects'!$I$1,INDEX('Lapsed Customers'!A:A,MATCH(ROWS($1:1),'Lapsed Customers'!$I:$I,0)),INDEX('New Prospects'!A:A,MATCH(ROWS($1:1),'New Prospects'!$I:$I,0))))

    then copy across and down.

    Hope this helps.

    Pete

+ 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] INDEX/MATCH across several worksheets
    By hennakao in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-25-2016, 08:07 AM
  2. Using INDEX, MATCH to search several worksheets
    By Teebag180 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2015, 10:59 AM
  3. INDEX and MATCH across two worksheets
    By murleyj in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 07-13-2014, 01:41 PM
  4. Use Index/Match/CountIf from several worksheets?
    By Nola111 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2013, 11:14 AM
  5. Index and Match from different worksheets
    By djbcktt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2013, 03:27 PM
  6. Need to use MATCH and INDEX over 2 worksheets
    By khedger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 09:55 AM
  7. Replies: 1
    Last Post: 04-29-2012, 01:03 PM

Tags for this Thread

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