Results 1 to 7 of 7

Using SUMPRODUCT/ARRAY formula instead of helper column

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Using SUMPRODUCT/ARRAY formula instead of helper column

    Hi all,

    I want to somehow simplify below formula to make it easier to maintain. I assume it could be written as a SUM/INDEX or SUMPRODUCT array formula instead?

    =IF($B6="","",SUM(IF(E6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AH$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*E$2),IF(F6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AI$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*F$2),IF(G6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AJ$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*G$2),IF(H6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AK$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*H$2),IF(I6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AL$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*I$2),IF(J6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AM$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*J$2),IF(K6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AN$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*K$2),IF(L6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AO$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*L$2),IF(M6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,AP$4),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(INDEX(IA!$A:$ZZ,0,BA$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*X$2),IF(Y6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BB$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*Y$2),IF(Z6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BC$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*Z$2),IF(AA6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BD$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AA$2),IF(AB6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BE$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AB$2),IF(AC6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BF$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AC$2),IF(AD6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BG$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AD$2),IF(AE6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BH$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AE$2),IF(AF6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BI$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AF$2),IF(AG6="",0,IFERROR(SUMIFS(INDEX(IA!$A:$ZZ,0,BJ$4),IA!$C:$C,$C6,IA!$A:$A,"JAPAN",IA!$B:$B,$D6),0)*AG$2)))
    See sample file attached... the red columns are the helper columns I want to get rid of, the yellow cells are the numbers I need to get to. I previously used the helper columns to get there, then removed them and created the looong formula above, which obviously makes it hard to maintain. Could someone have a look?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Adapt array formula to remove need for helper row
    By JayUSA in forum Excel General
    Replies: 2
    Last Post: 09-20-2017, 10:56 PM
  2. A Simple Formula/Helper Column To Transpose a Range
    By chullan88 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-24-2016, 09:09 AM
  3. [SOLVED] Fill down dates overwriting times ( vba ) or by adding a helper column with formula
    By Kerryx in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-23-2016, 06:14 AM
  4. Sort by helper column even if values in helper are alike
    By NoSleepForMe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2016, 04:14 AM
  5. [SOLVED] Using array formula instead of creating a helper column
    By jasonleewkd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-10-2014, 12:55 PM
  6. Array Formulas instead of helper columns
    By ElmerS in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2009, 03:52 PM
  7. Modify Sumproduct to include helper column
    By JDarling in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-17-2007, 06:03 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