Can't understand why two values are different

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. 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.
Code:
=AVERAGE(H12:H33)
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?
Code:
=IFERROR(AVERAGEIFS(income!H12:H500,income!F12:F500,"<"&EDATE(personal_info!E9,(65*12))),0)


Excel 2016 (Windows) 32 bit
FGH
122017-08-18$ 649.33
132017-09-01$ 490.24
142017-09-15$ 655.48
152017-10-13$ 360.70
162017-10-27$ 1,587.13
172017-11-10$ 827.74
182017-11-24$ 459.91
192017-12-08$ 1,622.77
202017-12-22$ 1,242.05
212018-01-05$ 1,140.84
222018-04-13$ 474.12
232018-04-27$ 1,365.53
242018-05-11$ 1,503.07
252018-05-25$ 520.41
262018-06-08$ 906.12
272018-06-22$ 1,222.30
282018-07-06$ 710.66
292018-07-20$ 1,336.39
302018-08-03$ 364.27
312018-08-17$ 1,535.57
322018-08-31$ 1,931.79
332018-09-14$ 875.29
342018-09-28$ 1,066.78
352018-10-12$ 124.75
362018-11-09$ 368.40
372018-11-23$ 1,128.81
382018-12-07$ 437.85
392018-12-21$ 665.36
402019-01-04$ 1,279.62
412019-01-18$ 1,435.47
422019-02-01$ 1,266.38
432019-02-15$ 246.81
442019-05-10$ 971.00
452019-05-24$ 872.42
462019-06-07$ 826.59
472019-06-21$ 727.93
482019-07-05$ 514.64
492019-07-19$ 994.67
502019-08-02$ 588.82
income



Excel 2016 (Windows) 32 bit
E
7Date of Birth
8
91953-09-23
personal_info
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
When I copied your data, this formula:
Code:
=AVERAGE(H12:H33)
returned $990.08 for me (as did the other formula).

Are you sure that you have place that formula on the correct page?

Check to see what these formulas return:
=COUNTIF(F12:F33,">0")
=COUNTIF(H12:H33,">0")

They should both return 22. If they do not, they you probably have one or more entries entered as Text and not Numeric.
 
Last edited:
Upvote 0
maybe:
Code:
=IFERROR(ROUND(AVERAGEIFS(H12:H50,F12:F50,"<"&EDATE(E9,(65*12))),2),0)
complete the formula with the names of the worksheets
 
Last edited:
Upvote 0
Many thanks to Fluff, Joe & Sandy! I found that I had an extra row on my worksheet that was blank and therefore messing up the data! Thanks to all for your assistance!

Cheers!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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