If formula with a index and match not working

cgroup18

New Member
Joined
Jul 31, 2018
Messages
2
I have a few date ranges, Column A2 and down and Row 2B to the right.

I have multiple dates of the rows and would like a SUMIF formula to pick up the correct amount.

Example:
Sheet 1:

2/9/20182/9/20182/16/2018
2/1/2018521
2/2/2018123
2/3/2018456

<tbody>
</tbody>

Sheet 2: Need to pull from Sheet 1
2/2/20182/9/20182/16/2018
2/1/2018071
2/2/2018033
2/3/2018096

<tbody>
</tbody>


Current Formula I have is:

=SUMIF(Sheet1!$A$6:$A$65,'Sheet2'!$A14,INDEX(Sheet1!$B$6:$CC$65,1,MATCH('Sheet2'!P$8,Sheet1!$B$5:$CA$5,0)))


I get value '0' and not 7 for intersection 2/1/2018 and 2/9/2018.

Please help!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the Board.

Based on your sample sheets, try this in B2:

=SUMPRODUCT(Sheet1!$B$2:$D$4*(Sheet1!$A$2:$A$4=$A2)*(Sheet1!$B$1:$D$1=B$1))

Drag down and to the right as needed. Based on your formula, you'll need to adapt the ranges. Let us know if you need help with that.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,049
Members
449,206
Latest member
Healthydogs

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