×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Number of days distribution formula

Number of days distribution formula

Number of days distribution formula

(OP)
I am trying to create a report using crystal reports 6 that uses the number of days a call has been open as a frequency. i.e Less than 1 day, between 1 & 2 days, between 2 & 3 days, between 3 & 6 days, under 1 week, over 1 week.

The formula i am using is (this doesn't work by the way)

If {@Number of Days} <1 then "Less than 1 day" else
If {@Number of Days} >=1 and < 2 then "Between 2 & 3 days" else
If {@Number of Days} >=2 and <3 then "Between 3 & 4 days" etc...

I am a little stuck on how to do this, can anyone help?

RE: Number of days distribution formula

You are on the right track.  However, you need to have the field name listed each time you want to check it:

If {@Number of Days} <1 then "Less than 1 day" else
If {@Number of Days} >=1 and {@Number of Days} < 2 then "Between 2 & 3 days" else
If {@Number of Days} >=2 and {@Number of Days} <3 then "Between 3 & 4 days" etc...

RE: Number of days distribution formula

(OP)
Cheers, that should do it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close