Solved

Formating Odd and Even numbers

Posted on 2008-10-03
5
1,432 Views
Last Modified: 2012-05-05
I have a report that displays a long list of numeric values and i want it so that if the number is ODD the colour is blue and if its even then RED.

Any help welcome.
0
Comment
Question by:NedBishay
  • 2
5 Comments
 
LVL 13

Expert Comment

by:crgary_tx
ID: 22633414
>right click on the field you want to format->Format field
>click on the Font tab
>click on X+2 tab next to color
place the below formula:-

if mod({table.numericfield}) = 1
then crblue
else
crred
0
 
LVL 13

Accepted Solution

by:
crgary_tx earned 500 total points
ID: 22633432
correction in the formula:

if{table.numericfield} mod 2 = 1
then crblue
else
crred
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22636631
Looks good.

mlmcc
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now