+ Reply to Thread
Results 1 to 11 of 11

index,match, mmult, Fomula not working properly

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    index,match, mmult, Fomula not working properly

    see attachtment.
    i have data that looks like this
    a b c d e f g
    1 1000 2 3 5 449
    2 1001 91 92 93 94 95 43
    3 1001 96
    4 1002 97 98 99 100 101
    5 1002 97 98 99 100 101
    6 1001 102 104 417
    the formula in column a is
    =IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$B3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$C3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$D3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$E3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$F3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),IFERROR(INDEX($A$2:$A2,MATCH(1,MMULT(--($B$2:$H2=$G3),TRANSPOSE(COLUMN($B$2:$H2)^0)),0)),MAX(A$2:A2)+1))))))

    i have random data in columns b-h. my goal is to find any overlapping data. as i insert new row of data in column b-h, i am trying to find rows above it sharing any of the numbers and if it finds one above it it should share the same "ID" in column a. if it doesnt find it should insert the next "ID" number. in my example row 3 should automatically update to "1003" being that "96" isnt found in any rows above it. the formula works well as long as there is no data in column g. however as soon as i put data in column g the next row doesnt update properly. what is wrong with my formula.

    thanks
    Attached Files Attached Files
    Last edited by excel wannabe pp; 02-07-2024 at 06:55 PM.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: index,match, mmult, Fomula not working properly

    Please show in column A manually typed expected results (with an explanation) instead of a non working formula.

  3. #3
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: index,match, mmult, Fomula not working properly

    i have updated the attachment. i hope it is more clear. Thanks for the guidance
    Attached Files Attached Files

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: index,match, mmult, Fomula not working properly

    Please try in A3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: index,match, mmult, Fomula not working properly

    i am trying to find rows above it sharing any of the numbers
    Slightly modified the HansDouwe's formula, since it has to cover all the above rows.
    In A3
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 02-08-2024 at 02:29 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: index,match, mmult, Fomula not working properly

    this works great for my current table, thanks!
    if you dont mind helping a but further, is it possible to have column A index the matching row instead of the Sum of (a2)+0? your option works perfectly if the data is organized in order, however i would like to anticipate cases where the matching cell is found a few rows up and therefore would like column A to index the # found in Column A of the matching row to include cases where it isnt the row directly above it?
    i hope that makes sense somewhat, thanks!

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: index,match, mmult, Fomula not working properly

    So it is important to provide for a realistic example.

    If it is not necessary that the data is in a special order, please provide for such example (including expected results).

  8. #8
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: index,match, mmult, Fomula not working properly

    thanks for your patience.
    attached updated table
    Attached Files Attached Files
    Last edited by excel wannabe pp; 02-08-2024 at 04:55 PM.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: index,match, mmult, Fomula not working properly

    Please try in A3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: index,match, mmult, Fomula not working properly

    beautiful! thank you. works flawlessly

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: index,match, mmult, Fomula not working properly

    You are Welcome!

    Thanks for the feedback and rep. .

    Glad to have helped.

+ 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 formula not working properly, keeps returning 0
    By reddwarf in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-23-2023, 11:47 AM
  2. [SOLVED] Index/Match formula not working properly from data in Pivot Tables - HELP!
    By Pooger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2020, 04:24 PM
  3. Index Match formula not working properly
    By nikhil.mehta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2020, 06:33 AM
  4. [SOLVED] Index Match fomula, How to remove duplicates ?
    By garashidi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2019, 08:23 AM
  5. error N/A when use index and match fomula
    By thaimic in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2016, 04:12 AM
  6. Index and Match across multiple rows and columns look up not working properly
    By jollyfella in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2015, 12:06 AM
  7. [SOLVED] Multiple IF's & Index/Match - Not working properly
    By Pooger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2015, 04:01 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