Its hard to explain, but i try to lay it out here. All the data comes from big tables, so that i cannot really post a mini-section of the worksheet that can be worked with.
I have an array formula which attempts to count the values between two tables that are equal. Its results (SPILL) are in Col 2 of the paste below. As you see, the SUM it returns 26. The array formula is:
The problem is in row 26 of the result, where the array formula in Col 2 returns FALSE, but in every other way that i can think of to test, it appears that it should return TRUE.
Here is a screen shot of 30 rows and 7 columns, and the explanation of the columns.
Co1 1 - numbers 1 to 30 for the index function to use (column R in the formulas)
Col 2 - An array formula that spills its results to 30 rows. It is the above array formula, without the SUM() function
Col 3 - Index to the values that the array function gets from the table rng_data
Col 4 - Index to the values that the array function gets from the table rng_wt
Col 5 - Difference Col 3- Col 4. as you see, row 26 returns 0. All other rows return 0 if Col 2 is 1. I have increased decimal to 16, and it is 0s all the way
Col 6 - A logical function that tests whether the values in the two tables are equal. Row 26 returns TRUE. All other row consistent with Col 2.
Col 7 - Absolute value of the difference in Col 2 and Col 3 < .00001. Row 26 returns TRUE. All other rows consistent with Col 2.
Does anybody have an explanation for what is going on here, why row 26, when equality is tested by the array formula returns FALSE, but when the same data is tested in 3 other ways, TRUE is the result? If it was just a matter of the precision of the number, would not all these other tests also all return FALSE? Should not row 26 be consistent for all of columns 2, 5, 6, 7?
Thank you if you can offer some thoughts on this!
I have an array formula which attempts to count the values between two tables that are equal. Its results (SPILL) are in Col 2 of the paste below. As you see, the SUM it returns 26. The array formula is:
Excel Formula:
=SUM(IF(OFFSET(rng_data[[#Headers],[Wt]],TodayRwCal,0,-30,1)-OFFSET(rng_Wt[[#Headers],[WtCalc]],TodayRwCal,0,-30,1)=0,1))
Here is a screen shot of 30 rows and 7 columns, and the explanation of the columns.
Co1 1 - numbers 1 to 30 for the index function to use (column R in the formulas)
Col 2 - An array formula that spills its results to 30 rows. It is the above array formula, without the SUM() function
Excel Formula:
=IF(OFFSET(rng_data[[#Headers],[Wt]],TodayRwCal,0,-30,1)-OFFSET(rng_Wt[[#Headers],[WtCalc]],TodayRwCal,0,-30,1)=0,1)
Excel Formula:
=INDEX(OFFSET(rng_data[[#Headers],[Wt]],TodayRwCal,0,-30,1),$R37,1)
Excel Formula:
=INDEX(OFFSET(rng_Wt[[#Headers],[WtCalc]],TodayRwCal,0,-30,1),$R37,1)
Excel Formula:
=T37-U37
Excel Formula:
=INDEX(OFFSET(rng_data[[#Headers],[Wt]],TodayRwCal,0,-30,1),$R37,1)=INDEX(OFFSET(rng_Wt[[#Headers],[WtCalc]],TodayRwCal,0,-30,1),$R37,1)
Excel Formula:
=ABS(T37-U37)<0.00001
Does anybody have an explanation for what is going on here, why row 26, when equality is tested by the array formula returns FALSE, but when the same data is tested in 3 other ways, TRUE is the result? If it was just a matter of the precision of the number, would not all these other tests also all return FALSE? Should not row 26 be consistent for all of columns 2, 5, 6, 7?
Thank you if you can offer some thoughts on this!