+ Reply to Thread
Results 1 to 16 of 16

array formula index and match not delivering expected results for certain rows

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    array formula index and match not delivering expected results for certain rows

    I have a calculation sheet and a summary sheet in same workbook.

    The summary sheet represent a summary of products totals costs of the working sheet which has several headers .

    The headers concerned are columns C, D , E ,F,K and L of calculations sheets .

    Using the sumproduct formula in summary sheet for columns K of sheet calculations

    Please Login or Register  to view this content.
    For reconciliation from summary sheet column I with calculations sheets of columns L array formula is used

    Please Login or Register  to view this content.
    But however I am not getting the correct results at row 4 ,11 ,12 highlighted in yellow of calculation sheets, column M represent the figures that it should show .

    Can anyone assist what is going wrong .
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: array formula index and match not delivering expected results for certain rows

    Try this in L2 on the calculation sheet and copied down. It's an array formula so use Ctrl+Shft+Ent to confirm
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does that solve the issue?

    BSB

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: array formula index and match not delivering expected results for certain rows

    formulas are correct, strings must be exact
    Attached Files Attached Files

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

    Re: array formula index and match not delivering expected results for certain rows

    Or a non-array version:
    =INDEX(summary!F$2:F$13,MATCH(1,INDEX((summary!A$2:A$13=C2)*(summary!B$2:B$13=D2)*(summary!C$2:C$13=E2)*(summary!D$2:D$13=F2),0),0))
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: array formula index and match not delivering expected results for certain rows

    or can be use sumproduct give this try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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)

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: array formula index and match not delivering expected results for certain rows

    @tim201110


    Thanks I have adjusted , but one main issue as below

    reading 1 instead of 2

    That is row 4,11,12 should read 2 instead of 1 on calculation sheet

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: array formula index and match not delivering expected results for certain rows

    Any of the formulas in posts #2, #4 or #5 will give you the correct results.

    BSB

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

    Re: array formula index and match not delivering expected results for certain rows

    =INDEX(summary!F$2:F$13,MATCH(1,INDEX((summary!A$2:A$13=C2)*(summary!B$2:B$13=D2)*(summary!C$2:C$13=E2)*(summary!D$2:D$13=F2),0),0))

    works fine. By the way, the"concatenated" matches can be very slow and are best avoided.

  9. #9
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: array formula index and match not delivering expected results for certain rows

    @Glen
    @BSB
    @Shulka

    Your formula approaches works well, thank you

    I have attached file with the three approaches.

    @Glen thanks for your advise on concatenation,however can you explain me as below the match(1, and the ,(,0),0))

    However I am still why the concatenated array does not work, I have used it so far on three columns with no issue, but for the first time on 4 th columns it did not work .


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

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

    Re: array formula index and match not delivering expected results for certain rows

    Quote Originally Posted by JEAN1972 View Post
    However I am still why the concatenated array does not work, I have used it so far on three columns with no issue, but for the first time on 4 th columns it did not work .
    It is just because asterisk *, Match function become confuse to match exact lookup value while matching with condition = couldn't get confuse. Asterisk is wild card character in every programming language as well as in excel too.

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

    Re: array formula index and match not delivering expected results for certain rows

    I'm not 100% sure why it is failing... but i suspect that it is because the order of the pack size descriptions is confusing Excel.

    The basic formula BSB used:

    =INDEX(range,MATCH(1,(range1=crieterion1)*(range2=crieterion2)*(range3=crieterion3),0)) is an array formula where:

    red=TRUE
    blue=exact match

    can be made into a non-array formula by wrapping the criteria in another INDEX like this: INDEX(criteria,0) so the final version became:
    =INDEX(range,MATCH(1,INDEX((range1=crieterion1)*(range2=crieterion2)*(range3=crieterion3),0),0))

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

    Re: array formula index and match not delivering expected results for certain rows

    Thank you shukla!!

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

    Re: array formula index and match not delivering expected results for certain rows

    Quote Originally Posted by Glenn Kennedy View Post
    Thank you shukla!!
    Thank you Mr. Glenn for added reputation

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

    Re: array formula index and match not delivering expected results for certain rows

    Here's another non-array alternative...

    =LOOKUP(1,1/(summary!$A$2:$A$13=calculation!C2)/(summary!$B$2:$B$13=calculation!D2)/(summary!$C$2:$C$13=calculation!E2)/(summary!$D$2:$D$13=calculation!F2),summary!$F$2:$F$13)

  15. #15
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: array formula index and match not delivering expected results for certain rows

    To All of you guys

    Thank you for your assistance and solution provided

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

    Re: array formula index and match not delivering expected results for certain rows

    Quote Originally Posted by JEAN1972 View Post

    @Glen thanks for your advise on concatenation,however can you explain me as below the match(1, and the ,(,0),0))

    However I am still why the concatenated array does not work, I have used it so far on three columns with no issue, but for the first time on 4 th columns it did not work .
    Here you can use concatenated

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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 returning expected result
    By lukela85 in forum Excel General
    Replies: 4
    Last Post: 12-18-2017, 11:23 AM
  2. Sum of multiple Index/Match results using array formula
    By cray36 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-25-2015, 11:12 PM
  3. [SOLVED] Index/Match Formula is not updating as expected
    By tuph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2014, 11:21 PM
  4. [SOLVED] Sort results of INDEX/MATCH array formula remove blanks. . .
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2014, 01:53 PM
  5. Replies: 3
    Last Post: 04-01-2014, 05:54 PM
  6. 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
  7. [SOLVED] Not getting expected results from index match match
    By number1mm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2013, 03:56 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