This is a thinker: Sumproduct with Index/Match

Wannabepro

New Member
Joined
Nov 13, 2017
Messages
8
Hi Everyone,

So this is my equation

{=IFERROR(SUMPRODUCT(--('1'!$A$5:$A$33='Monthly'!A2), INDEX('1'!$N$5:$N$33,,MATCH('Monthly'!A2, '1'!$A$5:$A$33, 0))),"")}
{=IFERROR(SUMPRODUCT(--('1'!$A$5:$A$33='Monthly'!A3), INDEX('1'!$N$5:$N$33,,MATCH('Monthly'!A3, '1'!$A$5:$A$33, 0))),"")}

It is taking a group of people who work and ads their pay. The problem I am coming across is that it will only add the first person's pay and only if I put them in the first line A5. If I put that same person in subsequent cells it ads them just fine but if I start them in say A6 or further it will not add them at all. In addition this should be adding different names as it goes down the list but it will only take the one name if any. That is what the 'Monthly'!A2, A3 is for. To select a different name.

Any help would be appreciated!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
What is the problem you want to solve? Care to post 5 rows from column A of 1 and 5 rows from column N of 1?
 
Upvote 0
INDEX/MATCH will always only find the 1st match it gets to, then stop looking. If you want to add stuff, use SUMIFS instead
 
Upvote 0
using SUMIF or SUMPRODUCT will yield the same result. Either way I only get the the sum of the name if the name is on A5 first if the name I am looking for starts on any other line like A6 or A10 it will not start adding them up. This baffles me. And then the second part of the issue is that moving down the line it ignores the next name you are looking for. I would be willing to use SUMIF definitely but I don't get a different outcome.
 
Upvote 0
How do I post clips from my spreadsheet? I would post examples if I could figure that out. This is my first time posting on a forum.
 
Upvote 0
Here is sample column "A" on tab '1'
1 DATE: 01 November 2017
2
3 NAME
4
5 Chrystal
6 Barbara
7 Carrie
8 Claudia
9 Chrystal
10 Carrie

Here is sample column "A" on tab 'Monthly'

1 NAME
2 Alex
3 Barbara
4 Carrie
5 Chrystal



Here is sample column "N" on tab '1'
1
2
3 $ to Check
4
5 100.00
6 45.00
7 10.00
8 0.00
9 50.00
10 10.00

So for example: if I am looking for Chrystal it will give me the $150 but if I am looking for Carrie it will not give me the $20 unless Carrie's name is in the 5 position? But then it will not give me Chrystal's information even on a new equation looking for just her name because she now longer occupies the first line. Any ideas on how to fix this?
 
Upvote 0
Sheet: 1

Row\Col
A​
B​
N​
1​
DATE: 01 November 2017
2​
3​
NAME$ to Check
4​
5​
Chrystal
100​
6​
Barbara
45​
7​
Carrie
10​
8​
Claudia
0​
9​
Chrystal
50​
10​
Carrie
10​
11​

Sheet: Monthly

Row\Col
A​
B​
1​
NAMETotal $
2​
Alex
0​
3​
Barbara
45​
4​
Carrie
20​
5​
Chrystal
150​

In B2 of Monthly just enter and copy down:

=SUMIFS('1'!N:N,'1'!A:A,$A2)
 
Upvote 0
Thank you soooooo much!!! The equation worked... I think I was doing the sumif incorrectly. =SUMIFS('1'!N:N,'1'!A:A,$A2) and your visual brought it all together! I love you all :)
 
Upvote 0

Forum statistics

Threads
1,214,409
Messages
6,119,339
Members
448,888
Latest member
Arle8907

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