Calculating the average difference between a series of numbers

wynandbecker

New Member
Joined
Feb 23, 2021
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to calculate the average mileage done per company vehicle. Since there will be an initial reading, I thought it would be best to try and calculate the average difference between odometer readings, and ignoring the blank cells from future readings.

I apologize XL2BB won't paste, this is what it looks like:
 

Attachments

  • Capture.PNG
    Capture.PNG
    10.1 KB · Views: 69

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try using the aggregate function.
Excel Formula:
=AGGREGATE(1,4,J2:O2)
 
Upvote 0
Seems I missed the point here.
Can you add a correct calculation you do manually , so we have a reference?
 
Upvote 0
Seems I missed the point here.
Can you add a correct calculation you do manually , so we have a reference?
WEEK1(INITIAL): 10540
WEEK2: 10870
WEEK3: 11010
WEEK4: 11350

WEEK1:10870-10540: 330
WEEK2: 11010-10870: 140
WEEK3:11350-11010: 340

AVERAGE DIFFERENCE: (330+140+340)/3=270 per week

And there are 20 weeks in total, so it must ignore those blank future ones until they are put in.
 
Upvote 0
You may try
Book1
ABCDEFGHIJKLMNO
1
227010540108701101011350
3
4
5
Sheet2
Cell Formulas
RangeFormula
G2G2=AVERAGE(IFERROR(K2:INDEX(K2:AC2,COUNT(K2:AC2))-J2:INDEX(J2:AC2,COUNT(J2:AC2)),""))
 
Upvote 0
Solution
Most welcome. Thanks for the mark.
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,162
Members
449,295
Latest member
DSBerry

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