+ Reply to Thread
Results 1 to 16 of 16

Array formula with match index or any other required

  1. #1
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Array formula with match index or any other required

    HI,

    i have a file in which sheet "order" in cell E3 to S i want aan array formula which can show the exact result.
    i need to have total of E column (column order in sheet "unique entries". for all the po no. e2:s2 (sheet "order")

    and that po number column is Q in sheet "unique entries".

    i want to match column A,b,c,d and e2:s2 in sheet "order" and all of these columns will get match from sheet "unique entries" respectively q,b,c,d,a from sheet "unique entries.

    for example:- if we apply see po no. 4090 (f2) and after matching a3:d3 the result is 56.

    please solve this query.
    Attached Files Attached Files
    Last edited by akshay6s; 08-17-2021 at 09:23 AM.

  2. #2
    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,533

    Re: Array formula with match index or any other required

    Are SKUs not unique to columns B:D and therefore match on SKU and P.O

    In E3

    =IFERROR(INDEX(Sheet1!$E2:$E500,MATCH(order!E$2&order!$A3,Sheet1!$A2:$A500&Sheet1!$P2:$P500,0)),"")

    Enter with Ctrl+Shift+Enter

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

    Re: Array formula with match index or any other required

    You can use this formula in E3 of the Order sheet:

    =SUMIFS(Sheet1!$O:$O,Sheet1!$Q:$Q,E$2,Sheet1!$P:$P,$A3,Sheet1!$B:$B,$B3,Sheet1!$C:$C,$C3,Sheet1!$D:$D,$D3)

    (this is NOT an array formula), then copy across and down as required.

    Hope this helps.

    Pete

  4. #4
    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,533

    Re: Array formula with match index or any other required

    Shorter

    =SUMIFS(Sheet1!$E:$E,Sheet1!$A:$A,E$2,Sheet1!$P:$P,$A3)

    Based on SKU

  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,852

    Re: Array formula with match index or any other required

    John,

    to get the same results as my other formula, I had to use this:

    =SUMIFS(Sheet1!$O:$O,Sheet1!$Q:$Q,E$2,Sheet1!$P:$P,$A3)

    Maybe there are some numbers as text in the raw data.

    Pete

  6. #6
    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,533

    Re: Array formula with match index or any other required

    OP wanted data from Column E but I missed the requirement for column Q!

    =SUMIFS(Sheet1!$E:$E,Sheet1!$Q:$Q,E$2,Sheet1!$P:$P,$A3)

  7. #7
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    thanks, it is working but i wanted to have this as array formula so that there will be no need of dragging the formula. as the data will increase the result will come by itself. please make it array formula or if not possible with sum ifs then with any other. i am insisting on array because my original file is getting stucked too much as it contains too much data. here i have posted the excel file for example only. however i got the solution really thanks for that but please give me array formula.

  8. #8
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    and really thanks for you also. i have tried the last one formula and that is working fine but i really need an array formula. because i have 3 sheets and a very lengthy data. so really need that. thanks again for you formulas.

  9. #9
    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,533

    Re: Array formula with match index or any other required

    I don't understand what you mean by an "array formula" i this situation. Are you meaning a "spill" formula as per Excel 365 for example. as I assume "dragging" refers to copying the formula down the column If so, please update your profile to reflect your Excel version.

    And please post a file which represents the true situation as you state you have 3 sheets with data.

    Last edited by JohnTopley; 08-18-2021 at 11:22 AM.

  10. #10
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    please visit here on the link which i am posting below. this is my original google sheets file link. and please see E3 in sheet "lb order". i got that solved. but please visit to see what i meant with array formula so that in future there should be no problem. and when i am uploading excel file with my original data then file size is getting bigger than 1 mb which is not supported by the forum. so giving the link.

    https://docs.google.com/spreadsheets...#gid=877589508
    Last edited by akshay6s; 08-19-2021 at 12:45 AM.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,827

    Re: Array formula with match index or any other required

    So is this an Excel query or a Google Sheets query?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  12. #12
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    does array formula not work in excel. and firstly i had posted this as an excel query. because more then 1 mb file size is not allow to upload so i provided the link. now there are both options available excel and google sheet.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,827

    Re: Array formula with match index or any other required

    OK - the ARRAYFORMULA function is a Google Sheets function, not an Excel one. So, is this for Google Sheets or Excel?

  14. #14
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    i got the formula for my sheet. but still i need a little change in it. in cell E3 formula should be shown up the result only for po no. appears. i mean to say that we have given refrence in the formula for E2:S2. but po no. are available onlyb till E2:R2 in sheet shipped. so it is showing zero in s256:s and same for sheet "balance" I235:S

    so please adjust the formula in this way that it stay blank instead of zero if po no. are not present in any of the cell E2:S2

    and i want this change to have in my google sheets or give me formula here.

  15. #15
    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,533

    Re: Array formula with match index or any other required

    In Excel format cells as

    0;-0;;@

    This will suppress zeros.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Array formula with match index or any other required

    however you have solved my problem according to excel. so thanks a lot.

+ 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. Help required with Index, Match Formula
    By CPAC in forum Excel General
    Replies: 4
    Last Post: 04-20-2021, 08:25 AM
  2. [SOLVED] Assistant required on index & match formula
    By SteveSJ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2020, 05:02 AM
  3. [SOLVED] Is an array required for index-match with multiple criteria?
    By trolle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 05:29 AM
  4. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  5. [SOLVED] Formula required (Index, Match)
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 01:30 AM
  6. Index/Match Excel Formula assistance required
    By coyy in forum Excel General
    Replies: 3
    Last Post: 12-10-2012, 09:21 AM
  7. Index/Match Formula required
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 06:45 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