#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default dates as percentages

I really need to make a calculator out of excel to calculate a percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default dates as percentages

Days remaining =A2-TODAY()
% remaining =(A2-TODAY())/(A2-A1)
--
David Biddulph

"minimoi" wrote in message
...
I really need to make a calculator out of excel to calculate a
percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus
the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default dates as percentages

Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default dates as percentages

But of course with days you don't need DATEDIF, Mike. A simple subtraction
will do the job.
--
David Biddulph

"Mike H" wrote in message
...
Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a
percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus
the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default dates as percentages

Many thanks for your swift replies, superb worked a treat both ways, my only
gripe(lol) is that it does not show the percentage sign in the total? any
further help? please.

"Mike H" wrote:

Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default dates as percentages

Hi,

As soon as i saw your response I realised i'd gone OTT.

Mike

"David Biddulph" wrote:

But of course with days you don't need DATEDIF, Mike. A simple subtraction
will do the job.
--
David Biddulph

"Mike H" wrote in message
...
Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a
percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus
the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default dates as percentages

It will if you format as %

"minimoi" wrote:

Many thanks for your swift replies, superb worked a treat both ways, my only
gripe(lol) is that it does not show the percentage sign in the total? any
further help? please.

"Mike H" wrote:

Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default dates as percentages


sorry, me being stupid!
"Mike H" wrote:

It will if you format as %

"minimoi" wrote:

Many thanks for your swift replies, superb worked a treat both ways, my only
gripe(lol) is that it does not show the percentage sign in the total? any
further help? please.

"Mike H" wrote:

Try

=DATEDIF(TODAY(),A2,"d")/DATEDIF(A1,A2,"d")

Format as %

Mike

"minimoi" wrote:

I really need to make a calculator out of excel to calculate a percentage"""
example
cell a1 = 19/09/2008 bought in
cell a2 = 21/06/2011 Shelf life
this is the example info, I now need to find out the percentage of time
remaining in date? ie calculate the total amount of days in stock minus the
days that have already passed since bought in (todays date) and show one
result as a percentage and one as days remaining.

Any help would be most appreciated.

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
PERCENTAGES Pnw Excel Worksheet Functions 3 August 19th 08 10:30 PM
Percentages Kindlysinful Excel Discussion (Misc queries) 2 June 9th 08 08:51 PM
percentages adstarc New Users to Excel 8 October 15th 07 03:07 PM
Percentages shalamar2007 Excel Worksheet Functions 1 May 11th 07 07:58 PM
Percentages Darryl Charts and Charting in Excel 2 May 21st 05 04:31 PM


All times are GMT +1. The time now is 02:37 PM.

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

About Us

"It's about Microsoft Excel"