SUMIFS(INDEX(MATCH #Value

Dtex20

Board Regular
Joined
Jan 29, 2018
Messages
50
Hi Guys,

Code:
=SUMIFS(INDEX(Service!$E$4:$AM$45,MATCH(pay_table[@[Employee Number]],Service!$A$4:$A$45,0),0),Service!$E$3:$AM$3,">="&Data!$C$2,Service!$E$3:$AM$3,"<="&Data!$D$2)

This is my formula that works great, but i'm trying to add another parameter to the SUMIF. Which only adds values that match cell value 40. When i add this parameter i get #value , can someone explain to me why?

Code:
=SUMIFS(INDEX(Service!$E$4:$AM$45,MATCH(pay_table[@[Employee Number]],Service!$A$4:$A$45,0),0),Service!$E$3:$AM$3,">="&Data!$C$2,Service!$E$3:$AM$3,"<="&Data!$D$2,Service!$E$4:$AM$45,40)

Thanks,
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
That's because the ranges being referenced are not all the same size...

Code:
[I][B]INDEX(Service!$E$4:$AM$45,MATCH(pay_table[@[Employee Number]],Service!$A$4:$A$45,0),0) [/B][/I]refers to a 1-Row by 35-column range

[I][B]Service!$E$3:$AM$3 [/B][/I] also refers to a 1-Row by 35-column range

[I][B]Service!$E$4:$AM$45 [/B][/I]refers to a 42-Row by 35-Column range

So, as you can see, the last range being referenced differs in size than the other ones.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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