Index Match Formula Shows Wrong Result

Enjoylyfe

New Member
Joined
Apr 29, 2020
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have two table, this one is the initial table that contains raw data (on Sheet 2)
coba final.xlsx
ABCDEF
1NoUserDateTimeActivityDescription
2A-1Staff 305/06/20209:00testtest
3A-1Staff 305/06/20209:30testtest
4A-1Staff 305/06/202010:00testtest
5A-1Staff 305/06/202010:30testtest
6A-3Staff 130/04/202010:00t1t1
7A-3Staff 130/04/202010:30t1t1
8A-3Staff 130/04/202011:00t1t1
9A-3Staff 130/04/202011:30t1t1
10A-4Staff 630/04/20208:30testtest1
11A-4Staff 630/04/20209:00testtest1
12A-4Staff 630/04/20209:30testtest1
Sheet2

And the second table (on Sheet 1) contains formula based on data from first table
coba final.xlsx
ABCDEFGH
130-Apr-20
2Staff 1Staff 2Staff 3Staff 4Staff 5Staff 6Staff 7
38:30       
49:00     test 
59:30       
610:00       
710:30t1      
811:00       
911:30       
1012:00       
1112:30       
1213:00       
1313:30       
1414:00       
1514:30       
1615:00       
1715:30       
1816:00       
1916:30       
2017:00       
2117:30       
Sheet1
Cell Formulas
RangeFormula
B3:H21B3=IFERROR(INDEX(Sheet2!$E$2:$E$12,MATCH(Sheet1!$B$1&Sheet1!B$2&Sheet1!$A3,Sheet2!$C$2:$C$12&Sheet2!$B$2:$B$12&Sheet2!$D$2:$D$12,0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.

But as we can see on the table, the formula doesn't produce right result. Could you please help me to modify the formula?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Most likely a rounding error with the times.
Also, best not to use the sheet name of the sheet that your formula is on. It isn't needed and can lead to errors when sorting etc.

Try this in B3 of Sheet1 and copy across and down.
=IFERROR(INDEX(Sheet2!$E$2:$E$12,MATCH($B$1&B$2&ROUND($A3,6),Sheet2!$C$2:$C$12&Sheet2!$B$2:$B$12&ROUND(Sheet2!$D$2:$D$12,6),0)),"")

.. or if your 365 version has the FILTER function you could also try
=FILTER(Sheet2!$E$2:$E$12,(Sheet2!$C$2:$C$12=$B$1)*(Sheet2!$B$2:$B$12=B$2)*(ROUND(Sheet2!$D$2:$D$12,6)=ROUND($A3,6)),"")
 
Upvote 0
Most likely a rounding error with the times.
Also, best not to use the sheet name of the sheet that your formula is on. It isn't needed and can lead to errors when sorting etc.

Try this in B3 of Sheet1 and copy across and down.
=IFERROR(INDEX(Sheet2!$E$2:$E$12,MATCH($B$1&B$2&ROUND($A3,6),Sheet2!$C$2:$C$12&Sheet2!$B$2:$B$12&ROUND(Sheet2!$D$2:$D$12,6),0)),"")

.. or if your 365 version has the FILTER function you could also try
=FILTER(Sheet2!$E$2:$E$12,(Sheet2!$C$2:$C$12=$B$1)*(Sheet2!$B$2:$B$12=B$2)*(ROUND(Sheet2!$D$2:$D$12,6)=ROUND($A3,6)),"")
It works, thank you
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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