loudnoiseman
Board Regular
- Joined
- Dec 31, 2004
- Messages
- 219
- Office Version
- 365
- Platform
- Windows
Hi Everyone,
My AVERAGEIF range contains fractional numbers but my criteria is whole numbers and I think I need to somehow adapt with a rounding function I suppose so I can get correct average range figures. I'm not sure if pasting this example will work but this illustrates how the fractional numbers are being ignored.
Thanks!
My AVERAGEIF range contains fractional numbers but my criteria is whole numbers and I think I need to somehow adapt with a rounding function I suppose so I can get correct average range figures. I'm not sure if pasting this example will work but this illustrates how the fractional numbers are being ignored.
Thanks!
Fractional numbers | To Average | Criteria | AVERAGEIF ignores fractional numbers | formula | ||
1 | 10 | 1 | 10 | AVERAGEIF(A2:A22,E2,B2:B22) | ||
1.2 | 100 | 2 | 500 | AVERAGEIF(A2:A22,E3,B2:B22) | ||
1.4 | 200 | 3 | 1000 | AVERAGEIF(A2:A22,E4,B2:B22) | ||
1.6 | 300 | 4 | 1500 | AVERAGEIF(A2:A22,E5,B2:B22) | ||
1.8 | 400 | 5 | 2000 | AVERAGEIF(A2:A22,E6,B2:B22) | ||
2 | 500 | |||||
2.2 | 600 | |||||
2.4 | 700 | |||||
2.6 | 800 | |||||
2.8 | 900 | |||||
3 | 1000 | |||||
3.2 | 1100 | |||||
3.4 | 1200 | |||||
3.6 | 1300 | |||||
3.8 | 1400 | |||||
4 | 1500 | |||||
4.2 | 1600 | |||||
4.4 | 1700 | |||||
4.6 | 1800 | |||||
4.8 | 1900 | |||||
5 | 2000 |