Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Current Time subtract a specific amount every second

I have a total in A1 and B2

I want B2 to be subtracted from A1 every second of the day.. Based on the
Current Time in D4
D4 contains =now()

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Current Time subtract a specific amount every second

Is this what you want:
=a1-b2*mod(d4,1)*86400
Format as number

Regards,
Fred

"Jman" wrote in message
...
I have a total in A1 and B2

I want B2 to be subtracted from A1 every second of the day.. Based on the
Current Time in D4
D4 contains =now()


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Current Time subtract a specific amount every second



"Fred Smith" wrote:

Is this what you want:
=a1-b2*mod(d4,1)*86400
Format as number

Regards,
Fred

"Jman" wrote in message
...
I have a total in A1 and B2

I want B2 to be subtracted from A1 every second of the day.. Based on the
Current Time in D4
D4 contains =now()


.
for example


In A1 i have 1,254,435 (food) total
In B2 i have 34,436 (food) that is being consumed every hour

This means that every hour a total of 34,436 food is being deducted from A1

I just wanted to know how much time do i have left until the food runs out
in A1

based on the current time in D4.. which contains the "=now()" formula.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Current Time subtract a specific amount every second

In your first message, you wanted to subtract B2 for "every second of the
day". In this message it's every hour. In the first message, you wanted to
know what was left in A1, now you want to know how many hours you have left.
You'll get better responses when you define your problem better.

Here's some suggestions.
=a1/b2 is the number of hours of food that you have.

You need to define the starting time. Using =now() seems of no value to me.
Why start from midnight? Why isn't it when people start eating the food?

Regards,
Fred

"Jman" wrote in message
...


"Fred Smith" wrote:

Is this what you want:
=a1-b2*mod(d4,1)*86400
Format as number

Regards,
Fred

"Jman" wrote in message
...
I have a total in A1 and B2

I want B2 to be subtracted from A1 every second of the day.. Based on
the
Current Time in D4
D4 contains =now()


.
for example


In A1 i have 1,254,435 (food) total
In B2 i have 34,436 (food) that is being consumed every hour

This means that every hour a total of 34,436 food is being deducted from
A1

I just wanted to know how much time do i have left until the food runs out
in A1

based on the current time in D4.. which contains the "=now()" formula.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Current Time subtract a specific amount every second



"Fred Smith" wrote:

In your first message, you wanted to subtract B2 for "every second of the
day". In this message it's every hour. In the first message, you wanted to
know what was left in A1, now you want to know how many hours you have left.
You'll get better responses when you define your problem better.

Here's some suggestions.
=a1/b2 is the number of hours of food that you have.

You need to define the starting time. Using =now() seems of no value to me.
Why start from midnight? Why isn't it when people start eating the food?

Regards,
Fred

"Jman" wrote in message
...


"Fred Smith" wrote:

Is this what you want:
=a1-b2*mod(d4,1)*86400
Format as number

Regards,
Fred

"Jman" wrote in message
...
I have a total in A1 and B2

I want B2 to be subtracted from A1 every second of the day.. Based on
the
Current Time in D4
D4 contains =now()


.
for example


In A1 i have 1,254,435 (food) total
In B2 i have 34,436 (food) that is being consumed every hour

This means that every hour a total of 34,436 food is being deducted from
A1

I just wanted to know how much time do i have left until the food runs out
in A1

based on the current time in D4.. which contains the "=now()" formula.


.
My bad i wasnt clear enough, it was late when i responded and i mixed up my response with a whole new question. i had in mind.

This is mostly what i was lookin for.
thanks..

Here's some suggestions.
=a1/b2 is the number of hours of food that you have.


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
Formula to subtract a negative amount hrbsh97 Excel Discussion (Misc queries) 2 December 11th 08 01:15 PM
How do I increase a $ by a % to a current amount in a cell? ~D.. Excel Discussion (Misc queries) 4 April 3rd 08 05:35 PM
Having the current time inserted w/o updating the current time sherobot Excel Worksheet Functions 2 October 2nd 06 05:05 PM
Formula for amount owing subtract amount paid Taperchart Excel Worksheet Functions 1 June 4th 06 05:51 PM
How can I calculate amount of time left based on amount spent? KLD Excel Worksheet Functions 3 May 23rd 06 04:20 PM


All times are GMT +1. The time now is 02:13 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"