+ Reply to Thread
Results 1 to 11 of 11

Match index value return all the corresponding line item

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Match index value return all the corresponding line item

    Good Afternoon sir.

    I have create a summary Table form Raw Data corresponding to branch and Insert drop down list in B1 from Required format sheet.B2,B3,B4 and B5 manual entry.

    I need breakup details for the summary table.From Required format sheet B1 to B5 against return all the corresponding line item.

    DATA;

    NAME INVOICE NO INVOICE DATE VALUE DISPATCH DATE CBB WEIGHT TRANSPORT DOC NO
    AFGHANISTAN 7218 04/04/2015 47181.94 04/04/2015 24 300 TC 5891
    AFGHANISTAN 7219 04/04/2015 61973.02 04/04/2015 24 300 TC 5891
    AFGHANISTAN 7253 04/04/2015 79456.08 04/04/2015 24 300 TC 5891
    AFGHANISTAN 7254 04/04/2015 34619.45 04/04/2015 24 300 TC 5891
    AFGHANISTAN 7255 04/04/2015 40430.83 04/04/2015 24 300 TC 5891

    SUMMARY TABLE:

    NAME AFGHANISTAN
    DISPATCH DATE 04/04/2015
    CBB 24
    WEIGHT 300
    TRANSPORTER TC

    REQUIRED FORMAT:

    NAME INVOICE NO INVOICE DATE VALUE
    AFGHANISTAN 7218 42098 47181.94
    AFGHANISTAN 7219 04/04/2015 61973.02
    AFGHANISTAN 7253 04/04/2015 79456.08
    AFGHANISTAN 7254 04/04/2015 34619.45
    AFGHANISTAN 7255 04/04/2015 40430.83

    Please help me.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Match index value return all the corresponding line item

    I would use Pivot Table for easiest view.
    Attached Files Attached Files

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Match index value return all the corresponding line item

    Try in sheet REQ FORMAT


    C8=INDEX('RAW DATA'!$A$2:$I$189,SMALL(IF('RAW DATA'!$A$2:$A$189='REQ FORMAT'!$B$1,IF('RAW DATA'!$C$2:$C$189='REQ FORMAT'!$B$2,ROW('RAW DATA'!$A$2:$A$189)-ROW('RAW DATA'!$A$2)+1)),ROWS($C$7:C7)),MATCH('REQ FORMAT'!C$7,'RAW DATA'!$A$1:$I$1,0)) with CRTL+SHIFT+ENTER and drag towards the cell and down.

    or

    C8=IFERROR(INDEX('RAW DATA'!$A$2:$I$189,AGGREGATE(15,6,ROW('RAW DATA'!$A$2:$A$189)-ROW('RAW DATA'!$A$2)+1/('RAW DATA'!$A$2:$A$189='REQ FORMAT'!$B$1)*('RAW DATA'!$C$2:$C$189='REQ FORMAT'!$B$2),ROWS($C$7:C7)),MATCH('REQ FORMAT'!C$7,'RAW DATA'!$A$1:$I$1,0)),"") without CTRL+SHIFT+ENTER
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Match index value return all the corresponding line item

    thank you so much for your help and suggestion Mr.Zbor sir.

    i have apply the following formula in C8='=IFERROR(INDEX(INDEX('RAW DATA'!A$2:A$189,MATCH('REQ FORMAT'!$B$2,'RAW DATA'!$E$2:$E$189,0)):INDEX('RAW DATA'!A$2:A$189,MATCH('REQ FORMAT'!$B$2,'RAW DATA'!$E$2:$E$189)),ROWS(C$8:C8)),"") from required format.

    But i have try match multiple range(B1,B2,B3,B4 and B5) value return blanks.Please help me.

    attached file for your reference.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Match index value return all the corresponding line item

    Your examples are confusing: you imply that the search is on different columns e.g Invoice date in Example 3, value in Example 4 and Despatch date in Example 5.

    How are we to differentiate between an Invoice and Despatch Date as the same date will occur in both columns at some point?

    And in Example 3, why are the Antigua and Barbuda entries missing as the have the same Invoice Date?

  6. #6
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Match index value return all the corresponding line item

    Mr.shukla.ankur281190:

    Thanks you so much for your help sir.Array formula return to the corresponding line item fine.some of the branch return #.

    Example:Branch Name:CHAD belongs to 19 line item.but formulas picked last one line item rest of column # and

    ANTIGUA AND BARBUDA and AUSTRALIA belongs to 2 line item.but formula return 1 line item.

    Non array formula return blanks. file attached please help me.

    Request: You have mentioned match range B1 and b2.How do Match Range B1 to B5

    Mr.JohnTopley

    Sorry sir i forgot remove example file.actual required is required format sheet.

    sorry for the inconvenience.please give me your suggestion.
    Attached Files Attached Files

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Match index value return all the corresponding line item

    try

    C8=IFERROR(INDEX('RAW DATA'!$A$2:$I$189,SMALL(IF('RAW DATA'!$A$2:$A$189&'RAW DATA'!$C$2:$C$189&'RAW DATA'!$F$2:$F$189&'RAW DATA'!$G$2:$G$189&'RAW DATA'!$H$2:$H$189='REQ FORMAT'!$B$1&'REQ FORMAT'!$B$2&'REQ FORMAT'!$B$3&'REQ FORMAT'!$B$4&'REQ FORMAT'!$B$5,ROW('RAW DATA'!$A$2:$A$189)-ROW('RAW DATA'!$A$2)+1),ROWS($C$7:C7)),MATCH('REQ FORMAT'!C$7,'RAW DATA'!$A$1:$I$1,0)),"") with CRTL+SHIFT+ENTER

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Match index value return all the corresponding line item

    Try

    =IFERROR(INDEX('RAW DATA'!$A$2:$I$189,SMALL(IF(('RAW DATA'!$A$2:$A$189=$B$1)*('RAW DATA'!$E$2:$E$189=$B$2),ROW('RAW DATA'!$A$2:$A$189)-ROW('RAW DATA'!$A$2)+1,""),ROWS($A$2:A2)),COLUMNS($A:A)),"")

    Enter with Ctrl+Shift +Enter

    Match on Country and Despatch Date only

    There would be NO matches if other parameters are included (CBB, Weight, Tranporter)

  9. #9
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Match index value return all the corresponding line item

    Mr.shukla.ankur281190 thanks a lot to continuous reply my thread formulas working fine way.

  10. #10
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Match index value return all the corresponding line item

    Mr.JohnTopley thanks so much for your help to consider my query and explanation about parameter.formals return the value is perfectly.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Match index value return all the corresponding line item

    If you have the answer to your problem could please mark the 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. [SOLVED] Find header against return corresponding line item
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-14-2015, 03:45 AM
  2. How do index match exact value in each item
    By Vandini.S in forum Excel General
    Replies: 9
    Last Post: 07-11-2015, 11:18 AM
  3. Item Match between TABS (Index,Match???)
    By jespo1351 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2014, 03:28 PM
  4. Replies: 9
    Last Post: 05-21-2011, 12:14 AM
  5. Index and match function for same item in the table
    By ronlau123 in forum Excel General
    Replies: 3
    Last Post: 05-15-2011, 02:11 AM
  6. If column A is a June date, return the dollar value for that line item.
    By dearickmilton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2009, 08:39 AM
  7. [SOLVED] Match return #NA ...though item exists!
    By Sige in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 10:50 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