#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default rollover number help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default rollover number help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default rollover number help

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse rollover pop-up message rhemingway Excel Worksheet Functions 6 March 11th 08 03:50 PM
Graphic Images: Can I Put One in a Cell as Mouse Rollover Only? J. Danniel Excel Discussion (Misc queries) 4 August 10th 07 07:19 AM
Graphic Images: Can I Put One in a Cell as Mouse Rollover Only? J. Danniel New Users to Excel 4 August 10th 07 07:19 AM
Excel Project rollover for 2006 P. Hayes Excel Worksheet Functions 0 January 5th 06 08:27 PM
Change rollover color on autofilter arrow from blue to red afineline Excel Worksheet Functions 1 February 12th 05 03:30 AM


All times are GMT +1. The time now is 08:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"