+ Reply to Thread
Results 1 to 4 of 4

In an INDEX(/MATCH( array formula need to go down X number of rows until a term is found

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2014
    Location
    Raleigh
    MS-Off Ver
    Excel 2010
    Posts
    3

    In an INDEX(/MATCH( array formula need to go down X number of rows until a term is found

    My issue concerns going down X number of rows in a data set. Due to the fact that the data set I am pulling from is not standarized, and roughly 10% of the data set has two extra rows of extraneous data below the reference cell (foreign currency balances which I don't need). The point in my formula I need help with is the "+2" (down two rows) condition. I needed it so that the "+2" is replaced with a condition inwhich after the reference cell in the INDEX( and MATCH( function is found the command goes down "X" number of rows until the term "USD" is found. My formula is as follows:

    {=IFERROR(INDEX('SHEET1'!$A$9:$O$10000,MATCH((RIGHT(C7,8)),(LEFT('SHEET1'!$A$9:$A$10000,8)),0)+2,11),INDEX('SHEET1'!$A$9:$O$10000,MATCH((RIGHT(C8,8)),(LEFT('SHEET1'!$A$9:$A$10000,8)),0)+2,11))}

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: In an INDEX(/MATCH( array formula need to go down X number of rows until a term is fou

    Hi and welcome to the forum

    It would be easier to help if you provided some sample data?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-27-2014
    Location
    Raleigh
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: In an INDEX(/MATCH( array formula need to go down X number of rows until a term is fou

    An example of the reference data is provided below: The first account (Mr. Pink) has the extraneous data (information for the YEN); the second account (Mr. White) does not have the extraneous data, and lists the USD balance two rows down from the reference account number and 11 columns over. With the current construction of my formula, and account which has the extraneous YEN data, returns that data, and I am looking for a solution so that following the formula finding the reference account number the next condition looks for the term "USD", and once found returns the cell 11 columns over from that cell.

    XX5309 Mr. Pink

    YEN 0.00886700 3,575,050.00 49.72 3,575,050.00 49.72 0.00 0.00 0.00 3,575,050.00 49.72 3,575,050.00
    USD 1.00000000 $32,054.11 50.28 $32,054.11 50.28 $0.00 $0.00 $0.00 $32,054.11 50.28 $32,054.11

    xx8761 Mr. White

    USD 1.00000000 $392.60 0.56 $392.60 0.56 $0.00 $0.00 $0.00 $392.60 0.56 $392.60 $392.60

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: In an INDEX(/MATCH( array formula need to go down X number of rows until a term is fou

    can you upload a sample workbook please

+ 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. Index match function without array formula for multiple rows.
    By markb141 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2014, 10:35 AM
  2. [SOLVED] Array index with 3 way match criteria of 2 rows and 1 column cant get to work!
    By volchik696 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 01-20-2014, 06:18 AM
  3. Macro to copy paste if match not found "go to next"
    By HawksOkeyoJr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2013, 05:28 AM
  4. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  5. Replies: 3
    Last Post: 07-12-2006, 10:15 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