Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm working on a spreadsheet to record meter readings from some oil loading
pumps and I've got everything sort ed expect for the following; The meter numbers we record are 8 digits and when they get to 99999999 they reset to 00000000, I need a formula which will work out the difference between the two as if they were carrying on as normal. I.E; Meter Total Difference 99028990 490500 99519490 490500 00009990 490500 The second thing is that every time I enter a figure starting with 0, Excel automatically removes the 0 from the beginning which is something I don't want. Many thanks for you help Nathanael |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Firstly apply a custom format of 000000000 to your cells (That's 9 zeroes) Then with your meter readings in a1 down but this in B2 and drag down an additiona cell eaxh time you enter a reading in column A =IF(A2A1,A2-A1,(999999999-A1)+A2) Mike "Nathanael" wrote: I'm working on a spreadsheet to record meter readings from some oil loading pumps and I've got everything sort ed expect for the following; The meter numbers we record are 8 digits and when they get to 99999999 they reset to 00000000, I need a formula which will work out the difference between the two as if they were carrying on as normal. I.E; Meter Total Difference 99028990 490500 99519490 490500 00009990 490500 The second thing is that every time I enter a figure starting with 0, Excel automatically removes the 0 from the beginning which is something I don't want. Many thanks for you help Nathanael |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Many thanks
I had to adapt it a bit but that's just what I was looking for. I ended up with the formula looking like this; =IF(C21=0,,(IF(C21C20,C21-C20,(999999999-C20)+C21-899999999))) Thanks again You've saved me many hours of frustration and the PC from going out the window. Nathanael "Mike H" wrote: Hi, Firstly apply a custom format of 000000000 to your cells (That's 9 zeroes) Then with your meter readings in a1 down but this in B2 and drag down an additiona cell eaxh time you enter a reading in column A =IF(A2A1,A2-A1,(999999999-A1)+A2) Mike "Nathanael" wrote: I'm working on a spreadsheet to record meter readings from some oil loading pumps and I've got everything sort ed expect for the following; The meter numbers we record are 8 digits and when they get to 99999999 they reset to 00000000, I need a formula which will work out the difference between the two as if they were carrying on as normal. I.E; Meter Total Difference 99028990 490500 99519490 490500 00009990 490500 The second thing is that every time I enter a figure starting with 0, Excel automatically removes the 0 from the beginning which is something I don't want. Many thanks for you help Nathanael |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mouse rollover pop-up message | Excel Worksheet Functions | |||
Graphic Images: Can I Put One in a Cell as Mouse Rollover Only? | Excel Discussion (Misc queries) | |||
Graphic Images: Can I Put One in a Cell as Mouse Rollover Only? | New Users to Excel | |||
Excel Project rollover for 2006 | Excel Worksheet Functions | |||
Change rollover color on autofilter arrow from blue to red | Excel Worksheet Functions |