Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
golden322
 
Posts: n/a
Default calculated value displayed in increments

I'm calculating a value, calculated daily, based on the number of days in two
weeks. How can I get the value to be displayed only in incremements based on
two weeks, instead of showing the daily calculations?

ie- vacation is accrued as 5.77 hours every two weeks.
The formula is
(todays date - beginingof the year)/14 * 5.77

but how do I get the value displayed to only rise in increments of 5.77?

2nd question:
=if(todayholiday, 7.5,0)
the workbook adds 7.5 hrs of "holiday" time to the record if today is past
the day of the holiday. If it is before the holiday, the value is 0.

How do I get it to add the 7.5 if the date falls between two dates, and
otherwise display 0?
ie- christmas 2005 is allowed to be used as a 2006 holiday day until 1/31/06.
How do I get it to add 7.5 if it is between 12/25/05 and 1/31/06, but
display 0 outside of those options?
=if(12/25/05<today<1/31/06,7.5,0) is not working for me.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default calculated value displayed in increments

For the first part, you need to calculate the number of two-week periods that
have passed:
=int((today()-date(2005,12,31))/14) (you may need to adjust your 'start
date' slightly). Multiply that by the accrual rate of 5.77.

Second part requires the AND function to combine two logical tests:
=if(and(today()=date(2005,12,25),today()<=date(20 06,1,31)),7.5,0)

HTH. --Bruce

"golden322" wrote:

I'm calculating a value, calculated daily, based on the number of days in two
weeks. How can I get the value to be displayed only in incremements based on
two weeks, instead of showing the daily calculations?

ie- vacation is accrued as 5.77 hours every two weeks.
The formula is
(todays date - beginingof the year)/14 * 5.77

but how do I get the value displayed to only rise in increments of 5.77?

2nd question:
=if(todayholiday, 7.5,0)
the workbook adds 7.5 hrs of "holiday" time to the record if today is past
the day of the holiday. If it is before the holiday, the value is 0.

How do I get it to add the 7.5 if the date falls between two dates, and
otherwise display 0?
ie- christmas 2005 is allowed to be used as a 2006 holiday day until 1/31/06.
How do I get it to add 7.5 if it is between 12/25/05 and 1/31/06, but
display 0 outside of those options?
=if(12/25/05<today<1/31/06,7.5,0) is not working for me.

Thanks.

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
Use displayed value, not stored value? CD Excel Worksheet Functions 2 May 3rd 23 03:45 AM
Totals of calculated field in pivot table give incorrect results Jake Excel Worksheet Functions 6 January 12th 06 06:15 PM
how to create a calculated field from another calculated field? Eldon Excel Discussion (Misc queries) 0 January 9th 06 03:40 PM
PivotTable Calculated Item error [email protected] Excel Discussion (Misc queries) 1 September 28th 05 09:32 AM
How can a calculated value be displayed wiyhin a text string Furrukh Excel Discussion (Misc queries) 2 September 26th 05 08:35 PM


All times are GMT +1. The time now is 03:53 AM.

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"