Meter readings negative value?!

Jordz1991

New Member
Joined
May 12, 2016
Messages
1
I use a spreadsheet at my workplace to record meter readings. However. One of the meters has just reset to zero after surpassing its max of 9999999. So this now shows of course in the overal total as a minus figure. E.g -9877607.

Is there a way to tell the spreadsheet that when it goes back to 00000000 this is not negative and that it's actually just started again?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
maybe this...
A​
B​
1​
100​
2​
200​
100​
3​
900​
700​
4​
100​
100​
5​
300​
200​
B2=IF(A2 < A1,A2,A2-A1)
copied down

(I know there is a simpler way, cant think of it right now)
 
Last edited:
Upvote 0
AB
1100
2200100
3900700
4100200
5300200

<tbody>
</tbody>

@FDibbins, I believe cell B4 in your example should return 200, not 100 as you show.

Either of these formulas will work in B2 and copied down:

=IF(A2 < A1,1000,0)+A2-A1
or
=1000*(A2 < A1)+A2-A1
 
Upvote 0
I use a spreadsheet at my workplace to record meter readings. However. One of the meters has just reset to zero after surpassing its max of 9999999. So this now shows of course in the overal total as a minus figure. E.g -9877607.

Is there a way to tell the spreadsheet that when it goes back to 00000000 this is not negative and that it's actually just started again?

You ask for a formula which will automatically return result 0 for the reading "00000000" (start of a new meter) and a result 100000000 for the same argument "00000000" (just after completing the whole turn). Unless you use iterative calculations, a single formula cannot give two different results for two identical inputs.

So there is no method for that using plain spreadsheet formulas.

You must either use iterative computations or manually enter an info for the spreadsheet about the number of whole turns of the meter made so far, and update it manually after each such event.

J.Ty.
 
Upvote 0
Not sure how you get 200?

I inferred that the value wanted was the quantity used in the interval between meter readings. Passing through zero is common with mechanical counters and totalizing flow meters, and you have to correct for it when you require an accurate "overall total."
 
Upvote 0

Forum statistics

Threads
1,215,362
Messages
6,124,502
Members
449,166
Latest member
hokjock

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