sum a range using match and index

MartinL

Well-known Member
Joined
Oct 16, 2008
Messages
1,141
Office Version
  1. 365
Platform
  1. Windows
Hi
hope someone can point me in the right direction here. I have gleaned over the posts and may have missed the answer so here goes...

I have a number of worksheets with different bits of data on them but all have a common reference number and always in column A

I am trying to sum a row (say from BN:DF) based on a match and index formula.
these are my attempts.
  • =SUM(INDEX(Sales!BN:DF,MATCH(Sheet1!A2,Sales!A:A,0)))
  • =SUM(Sales!(match(A2,Sales!A:A,0)BN:(match(A2,Sales!A:A,0))))
It would appear that both are total drivel.
 
I don't think you need a match and index solution - try this.

Excel Workbook
ABCDEFGHI
1BillingDirect costMargin%Sales personSales person
227,6001400013,60049%AniketAniket27,600.00
3312,90025487558,02519%CalebCaleb1,090,005.00
4254,10022738226,71811%CalebPradeep125,000.00
575,000075,000100%PradeepI****a585,588.00
650,000050,000100%PradeepManish762,976.00
7273,0000273,000100%Caleb
830,000210009,00030%I****a
930,000210009,00030%I****a
10535,501394775140,72626%Manish
11250,00515812591,88037%Caleb
12112,5007000105,50094%Manish
13108,9757184537,13034%Manish
146,00040002,00033%Manish
15188,35112676561,58633%I****a
1653,81554131-316-1%I****a
17283,42218907594,34733%I****a
Sheet1
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi -- My formula is not summing...please help: need to sum column F after a double match of row 257 & 258 to column C and column D.


=SUM(INDEX('NMA EVENT TRACKER'!$F$4:$F$4000,MATCH('ACCT PLAN'!$E$257:$CJ$257&'ACCT PLAN'!$E$258:$CJ$258,'NMA EVENT TRACKER'!$C$4:$C$4000&'NMA EVENT TRACKER'!$D$4:$D$4000,0)))
 
Upvote 0
Thank you Ford, I will need a little more detail since I could not get this to work.


Header >Feb W1Feb W2Feb W3Feb W3Mar W1Mar W2DATAWeekSum these
Desired Output >311600078FEB115
FEB116
FEB217
MAR218
MAR219
MAR220
MAR221
Match ThisFEBFEBFEBFEBMARMARMAR
& Match this1234122

<tbody>
</tbody>
 
Upvote 0
Try this, copied across.

Excel Workbook
ABCDEFGHIJKL
1Feb W1Feb W2Feb W3Feb W3Mar W1Mar W2DATAWeekSum these
2311700078FEB115
3FEB116
4FEB217
5MAR218
6MAR219
7MAR220
8MAR221
SUMIFS
 
Upvote 0
Actually, this should also do:

=SUMIFS($L2:$L8,$J2:$J8,LEFT(A1,3),$K2:$K8,RIGHT(A1,1))
 
Upvote 0
Hi there,

As always many thanks in advance to the MrExcel community for support and guidance.
I'm attemtping to create an statement reconcilliation workbook using sum(index(match and am running into some problems.

When using some of the fomulas on this page, the sum calculates the entire column and not the row entries with the match criteria.
See attached workbook for more info.

Any assistance will be much appreciated.
Ryan

=SUM(INDEX($B$5:$B$14,,MATCH(C17,$C$5:$C$14,0)))

SUM(INDEX(MATCH












STATEMENT






-100
ACCOUNTING





-500
ADVERTISING





-50
BANK FEES





-100
RESEARCH





500
SALES





-50
ADVERTISING





750
SALES





-100
ADVERTISING





250
SALES





150
SALES












SUMMARY
Sum/Index/Match

MANUAL CHECK


PASS / FAIL
750
ACCOUNTING

-100
ACCOUNTING


#REF!
ADVERTISING

-650
ADVERTISING


#REF!
BANK FEES

-50
BANK FEES


#REF!
RESEARCH

-100
RESEARCH


#REF!
SALES

1650
SALES









0
EXPENSES

-900
EXPENSES

FAIL
750
INCOME

1650
INCOME

FAIL
750
EBITDA

750
EBITDA










<tbody>
</tbody>


LINK TO FILE: https://www.dropbox.com/s/ymzenayes05nq13/SUM.INDEX.MATCH.xlsx?dl=0
 
Upvote 0
Why not use a sumif instead of the sum match and index
=SUMIF($C$5:$C$14,C17,$B$5:$B$14) copied down
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,035
Members
449,092
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top