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!

*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.

Jobs

Condtional Fomatting Issues

Condtional Fomatting Issues

(OP)
Hi All,

I have a crystal report that I am running with four columns that are details(one being a descriptive text field and the other three being number fields). What I am tring to accomplish is that, based on a column A field, when a particular record field appears in the data set (which is a text), then the numbers in column b for that record, which are already showing up as two decimal places (text'abcd'= 1,234.00 but for other data field looks like this : 1,234.80) need to round to 0 decimal places else for other text fields for column A needs to remain as two decimal places. I applied the following formula in the format field dialog box-> Numbers tab->customize->under X-2 of the decimals sections (also tried it in the Rounding X-2 section; one at a time). The formula that I am using is as follows: If column A= 'abcd' then round(Column B,0) else round(column B,2). It evaluated on one page but when clicking on the next page arrow I get a 'bad formula result'. Similarly the same will need to be applied to the other two column (c and d).

RE: Condtional Fomatting Issues

I think I understand what you are trying to accomplish, but you are not quite where you should be. You need to create a formula to replace column B. I the formula you would have the If column A= 'abcd' then round(Column B,0) else round(column B,2). I think this will work for you.

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!

Resources

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