Comparing two tables for accuracy date and employee time

ltgreat

New Member
Joined
May 10, 2017
Messages
2
I'm trying to figure a way to compare two tables for accuracy that are generated for employees tracking their time worked. These are completed at two different locations and are hundreds long making daily comparisions cumbersome to say the least. All I'm after is a way to compare these for accuracy and if there is a descripsency make it easily identifiable. I've included an example of these two tables below. Thanks for any help!

1/1/20171/2/20171/3/20171/4/20171/5/2017
John SmithOvertimeStraightOffStraightOff
Jane Smith OffOvertimeOvertimeStraightOff
David JonesStraightOffOffStraightOvertime

<tbody>
</tbody><colgroup><col><col><col><col span="3"></colgroup>


NameDateDesc
John Smith1/1/2017Overtime
Jane Smith 1/2/2017Off
David Jones1/1/2017Straight
John Smith1/2/2017Straight
Jane Smith 1/3/2017Overtime
David Jones1/3/2017Off
John Smith1/4/2017Straight
Jane Smith 1/4/2017Straight
David Jones1/4/2017Straight
John Smith1/5/2017Off
Jane Smith 1/5/2017Off
David Jones1/5/2017Overtime
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="64" style="width: 48pt;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;"> <tbody> </tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You need the microsoft cloud xD

sorry but those commercials are so annoying and this made me think of it xD

i will assume you want to just write a formula next to the table that will tell you something like true or false for accurate or not and both tables start at A1...

if that 2nd table in D1, label the column "Accurate?"

in D2 write this formula...


=C2=INDEX(Table1Sheet!$B$2:$F$4,MATCH(A2,Table1Sheet!$A$2:$A4$,0),MATCH(B2,Table1Sheet!$B$1:$F$1,0))

that will lookup the value on table 1 for the corresponding employee and date and compare with the record on the row your formula is on
 
Upvote 0
LOL those commercials....

So tried your fourmla (wow... need a course in excel) and got about half not available and half with answers but one seems to be wrong. I've put both on one page for simplicity sake and included the results with the formula below. THoughts?
NameDateDesc
John Smith1/1/2017Overtime#N/A
Jane Smith 1/2/2017Off#N/A
David Jones1/1/2017Straight#N/A
John Smith1/2/2017Straight#N/A
Jane Smith 1/3/2017Overtime#N/A
David Jones1/3/2017Off#N/A
John Smith1/4/2017StraightTRUE
Jane Smith 1/4/2017StraightFALSE
David Jones1/4/2017StraightTRUE
John Smith1/5/2017OffTRUE
Jane Smith 1/5/2017OffTRUE
David Jones1/5/2017OvertimeTRUE

<tbody>
</tbody><colgroup><col><col><col><col></colgroup>

=C3=INDEX($B$2:$F$4,MATCH(A3,$A$2:$A$4,0),MATCH(B3,$B$1:$F$1,0))
 
Upvote 0
Just make sure you are referencing the values to lookup correctly (in above formula you have C3, A3, B3 being compared to the table in B2:F4)

I know this is wrong because that 2nd table must be located somewhere else... i believe that is the issue and when you drag it down it hits the actual table so your results are offset
 
Upvote 0
if you look on your results, that very first true on the row for John Smith 1/4/2017 is actually referencing the first record for John Smith on 1/1/2017 and that false on the next row is comparing Jane Smith's data for 1/2/2017 and she wrote Overtime when it was supposed to be Off.

Which means you pasted that table on row 8 and the first record is actually row 9 and the formula should be on D9...

=C9=INDEX($B$2:$F$4,MATCH(A9,$A$2:$A$4,0),MATCH(B9,$B$1:$F$1,0))

(you were 6 rows off it looks like)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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