×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

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

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!