I'm trying to prepare vehicle mileage report based on each vehicle number and date
is it possible to have in E a formula to do the subtraction of C based on same month in A ? same applies whenever vehicle number changes in B
Im a little confused by your example data, rows 1-2 make sense in that the difference between them is calculated, but then why are rows 4-6 the total? what makes that different to calculating the difference as per rows 1-2?
If someone has helped you then please add to their Reputation
I'm confused after seeing the numbers in column E.
I don't understand what the point is.
It seems that each value in this column has a different meaning.
Sometimes a difference, sometimes an addition?
Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
MS-Off Ver
MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
Posts
81,091
Re: Automatic subtraction
Explain the numbers in column E.
Ali Enthusiastic self-taught user of MS Excel who's always learning! Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish. Forum Rules (updated August 2023): please read them here.
number in E should be the difference between last and first value of C, based on if B has the same plate number and A has the same month
I'm trying to do subtraction of kms of each plate number for each month
I hope it is clear, and thank you all for your help
Thanks for your effort and time however when i inserted real values, the formula worked well till E39 !
when i copied all values down in J,K,L,M,O and E i got #NUM!
Bookmarks