Skip to Content
author's profile photo Former Member
Former Member

How to make the a field calculating a formula

I have a parameter field which take a date range which the user selects and the records are viewed.I need to perform a formula as

Total hours=8*no. of working days.

where the no. of working days should be the according to the date range selected.

Suppose a user selects a date range as 09-06-2104 to 10-06-2104,the no. of working days is 2 and thus the above formula become

Total hours=8*2.

Please suggest me how can i perform this.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 10, 2014 at 04:50 PM

    Hi Arun,

    Please have a look at Ken's website for the formula:

    http://www.kenhamady.com/form01.shtml

    The Holiday list array formula is here:

    http://www.kenhamady.com/form17.shtml

    Multiply the final result by 8.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 10, 2014 at 04:57 PM

    Hi Arun,

    basics are this: datediff ("d", #06/09/2104#, #06/10/2104#) + 1 // +1 to include the start date.

    Hit the F1 key to bring up the CR Help file and you'll find lots of examples and how to on handling dates, you can also use work days to compensate for weekends etc.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.