craigexcel
Active Member
- Joined
- Jun 28, 2006
- Messages
- 298
- Office Version
- 2016
- Platform
- Windows
I am working with some payroll data, where one field is a direct download of HR system data, and the comparator field was derived from some other related data.
My goal is to be able to use a formula (i.e. no helper Column(s)) that will summarize the differences between the 2 fields, such that those values with a +- difference of $0.01 can be assumed to be rounding differences, and all others can be assumed to be 'not a match'. Further, I'd like to be able to change a parameter in the formula that increases the $0.01 threshold, to see the effect of how many more 'matches' there would be by increasing that threshold.
In the attached, Columns D:H have formulas, and I manually entered "MATCH" in Column I where the differences would be considered a 'match' at the $0.01 threshold.
Increasing the threshold parameter to $0.03 would then find 3 'matches'.
I want to be able to share with the requestor the scale of 'matches' based on the threshold parameter
I've tried numerous iterations & combinations of IF, COUNT, COUNTIF, SUMPRODUCT, and maybe some others, but all without success.
I'd appreciate any suggestions for a formula (again, ideally, without helper columns), or a different approach to achieve this analysis.
My goal is to be able to use a formula (i.e. no helper Column(s)) that will summarize the differences between the 2 fields, such that those values with a +- difference of $0.01 can be assumed to be rounding differences, and all others can be assumed to be 'not a match'. Further, I'd like to be able to change a parameter in the formula that increases the $0.01 threshold, to see the effect of how many more 'matches' there would be by increasing that threshold.
In the attached, Columns D:H have formulas, and I manually entered "MATCH" in Column I where the differences would be considered a 'match' at the $0.01 threshold.
Increasing the threshold parameter to $0.03 would then find 3 'matches'.
I want to be able to share with the requestor the scale of 'matches' based on the threshold parameter
I've tried numerous iterations & combinations of IF, COUNT, COUNTIF, SUMPRODUCT, and maybe some others, but all without success.
I'd appreciate any suggestions for a formula (again, ideally, without helper columns), or a different approach to achieve this analysis.
payroll matched values - COUNT by criteria.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | actual values | ROUNDed values (displayed with 2 dec places) | delta - actual values: Field1 vs Field2 | delta - ROUNDed & displayed to 2 dec places | |||||||
2 | Field1 | Field2 | Field1 | Field2 | |||||||
3 | 15.2654 | 15.27 | 15.27 | 15.27 | (0.004600) | - | |||||
4 | 9.34108 | 9.34 | 9.34 | 9.34 | 0.001080 | - | |||||
5 | 12.1128 | 12.1 | 12.11 | 12.10 | 0.012800 | 0.01 | MATCH | ||||
6 | 20.2 | 20.201 | 20.20 | 20.20 | (0.001000) | - | |||||
7 | 4.699 | 5.34 | 4.70 | 5.34 | (0.641000) | (0.64) | |||||
8 | 18.4 | 18.4 | 18.40 | 18.40 | - | - | |||||
9 | 14.555 | 14.55 | 14.56 | 14.55 | 0.005000 | - | |||||
10 | 10.25 | 14.6 | 10.25 | 14.60 | (4.350000) | (4.35) | |||||
11 | 11.1 | 9.86 | 11.10 | 9.86 | 1.240000 | 1.24 | |||||
12 | 16.4 | 16.43 | 16.40 | 16.43 | (0.030000) | (0.03) | |||||
13 | 4.2 | 4.21 | 4.20 | 4.21 | (0.010000) | (0.01) | MATCH | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D3:E13 | D3 | =ROUND(A3,2) |
G3:G13 | G3 | =A3-B3 |
H3:H13 | H3 | =ROUND(G3,2) |