leopardhawk
Well-known Member
- Joined
- May 31, 2007
- Messages
- 611
- Office Version
- 2016
- Platform
- Windows
Hello forum friends, I am testing a workbook to make sure there are no errors and I am having problems figuring out why these two values are different when they should be exactly the same. If anyone has any ideas as to why, I will be very grateful.
There are two columns on one worksheet (income), one with dates that are two weeks apart and the other with dollar amounts (see below). This formula returns $947.03.
The other worksheet (personal_info) has a date of birth for the user (see below).
This formula returns $990.08, a difference of $43.05! This is what I can't figure out, if the user is under 65 years of age, the formula should be returning the same amount, no?
There are two columns on one worksheet (income), one with dates that are two weeks apart and the other with dollar amounts (see below). This formula returns $947.03.
Code:
=AVERAGE(H12:H33)
This formula returns $990.08, a difference of $43.05! This is what I can't figure out, if the user is under 65 years of age, the formula should be returning the same amount, no?
Code:
=IFERROR(AVERAGEIFS(income!H12:H500,income!F12:F500,"<"&EDATE(personal_info!E9,(65*12))),0)
Excel 2016 (Windows) 32 bit | |||||
---|---|---|---|---|---|
F | G | H | |||
12 | 2017-08-18 | $ 649.33 | |||
13 | 2017-09-01 | $ 490.24 | |||
14 | 2017-09-15 | $ 655.48 | |||
15 | 2017-10-13 | $ 360.70 | |||
16 | 2017-10-27 | $ 1,587.13 | |||
17 | 2017-11-10 | $ 827.74 | |||
18 | 2017-11-24 | $ 459.91 | |||
19 | 2017-12-08 | $ 1,622.77 | |||
20 | 2017-12-22 | $ 1,242.05 | |||
21 | 2018-01-05 | $ 1,140.84 | |||
22 | 2018-04-13 | $ 474.12 | |||
23 | 2018-04-27 | $ 1,365.53 | |||
24 | 2018-05-11 | $ 1,503.07 | |||
25 | 2018-05-25 | $ 520.41 | |||
26 | 2018-06-08 | $ 906.12 | |||
27 | 2018-06-22 | $ 1,222.30 | |||
28 | 2018-07-06 | $ 710.66 | |||
29 | 2018-07-20 | $ 1,336.39 | |||
30 | 2018-08-03 | $ 364.27 | |||
31 | 2018-08-17 | $ 1,535.57 | |||
32 | 2018-08-31 | $ 1,931.79 | |||
33 | 2018-09-14 | $ 875.29 | |||
34 | 2018-09-28 | $ 1,066.78 | |||
35 | 2018-10-12 | $ 124.75 | |||
36 | 2018-11-09 | $ 368.40 | |||
37 | 2018-11-23 | $ 1,128.81 | |||
38 | 2018-12-07 | $ 437.85 | |||
39 | 2018-12-21 | $ 665.36 | |||
40 | 2019-01-04 | $ 1,279.62 | |||
41 | 2019-01-18 | $ 1,435.47 | |||
42 | 2019-02-01 | $ 1,266.38 | |||
43 | 2019-02-15 | $ 246.81 | |||
44 | 2019-05-10 | $ 971.00 | |||
45 | 2019-05-24 | $ 872.42 | |||
46 | 2019-06-07 | $ 826.59 | |||
47 | 2019-06-21 | $ 727.93 | |||
48 | 2019-07-05 | $ 514.64 | |||
49 | 2019-07-19 | $ 994.67 | |||
50 | 2019-08-02 | $ 588.82 | |||
income |
Excel 2016 (Windows) 32 bit | |||
---|---|---|---|
E | |||
7 | Date of Birth | ||
8 | |||
9 | 1953-09-23 | ||
personal_info |