Index match - formula moving columns and rows

%3CLINGO-SUB%20id%3D%22lingo-sub-2793649%22%20slang%3D%22en-US%22%3EIndex%20match%20-%20formula%20moving%20columns%20and%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2793649%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20time%20poster%2C%20long%20time%20excel%20user!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20issue%20is%20that%20as%20i%20copy%20my%20formula%20across%20to%20the%20next%20column%2C%20the%20index-match%20formula%20seems%20to%20move%20down%20a%20row.%20Each%20time%20i%20copy%20the%20formula%20to%20the%20next%20column%20it%20moves%20down%20again%20and%20sums%20the%20wrong%20data.%20I%20have%20made%20sure%20all%20formulas%20are%20locked%20appropriately%20but%20cannot%20figure%20out%20why%20it%20is%20doing%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20note%20the%20bordered%20cells%20are%20the%20figures%20the%20formula%20is%20picking%20up%2C%20when%20it%20should%20be%20returning%20the%20sum%20of%20the%20sales%20centre%20for%20the%20particular%20month.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mtn629_0-1632874470164.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313451i0A84EFEDC32E9363%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mtn629_0-1632874470164.png%22%20alt%3D%22mtn629_0-1632874470164.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EScreenshot%20with%20formulas%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mtn629_1-1632874719597.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313452iDE7D95D66AA1240F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mtn629_1-1632874719597.png%22%20alt%3D%22mtn629_1-1632874719597.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20really%20appreciate%20some%20help%20as%20i%20cannot%20find%20a%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2793649%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2793823%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20match%20-%20formula%20moving%20columns%20and%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2793823%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1169447%22%20target%3D%22_blank%22%3E%40mtn629%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20may%20try%20something%20like%20this...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DSUMIF(%24C%245%3A%24C%2418%2C%24A24%2CINDEX(%24D%245%3A%24O%2418%2C%2CMATCH(B%2423%2C%24D%243%3A%24O%243%2C0)))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi guys,

 

First time poster, long time excel user!

 

Briefly, i am trying to automate a data import to show the total sales per sales centre per month using a combination of SUM IF and INDEX-MATCH.

 

My issue is that as i copy my formula across to the next column, the index-match formula seems to move down a row. Each time i copy the formula to the next column it moves down again and sums the wrong data. I have made sure all formulas are locked appropriately but cannot figure out why it is doing this. 

 

Please note the bordered cells are the figures the formula is picking up, when it should be returning the sum of the sales centre for the particular month.

 

mtn629_0-1632875054088.png

 

 

Screenshot with formulas:

 

mtn629_1-1632874719597.png

 

Would really appreciate some help as i cannot find a solution.

 

Thanks!

 

 

3 Replies

@mtn629 

 

You may try something like this...

 

=SUMIF($C$5:$C$18,$A24,INDEX($D$5:$O$18,,MATCH(B$23,$D$3:$O$3,0)))

@Subodh_Tiwari_sktneer 

 

Excellent, that worked!

 

May i ask what i was doing wrong and what the double comma between index and match does? I have never seen that before?

 

Thank you once again!

@mtn629 

Please pay attention to the array you are passing inside the Index function, the first argument. I have used a two-dimensional array which is the key of the formula.

 

If that takes care of your original question, please take a minute to accept the post with the proposed solution as a Best Response to mark your question as Solved.