# Ranking

One common use of conditional formatting is to highlight the top/bottom N ranked items in a report, which can help to quickly identify the most important or relevant items in the data.

Refer to [create rule](https://docs.inforiver.com/working-with-inforiver/5.-conditional-formatting/create-rule-writeback-matrix) to get started. Once the rule is created and you can see the **Conditional Formatting** side panel, follow the steps below.

Choose **Ranking** in the **Format by** dropdown. You can see the options shown in the image below. Using the **Style** section, you can format text based on color/style, apply a background color, or select icons.

**STEP 1:** Let's apply icon-based formatting to the Top 3 subcategories based on 2025 Actuals. Update the highlighted properties as shown below and click Apply.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FOBY4AjnB0SOWh3aRsVa6%252Fimage.png%3Falt%3Dmedia%26token%3D45f50851-f4c8-4db6-a030-aab59a07bfa5&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5956f5b0&#x26;sv=2" alt=""><figcaption><p>Customizing the rule</p></figcaption></figure>

**STEP 2:** The top 3 categories based on 2025 Actuals show an icon on the left, as shown below.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FIygONM9tdf1brbRIgLol%252Fimage.png%3Falt%3Dmedia%26token%3D8a5ec52a-ed1a-4415-b9d8-ad689e217075&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5e3250d8&#x26;sv=2" alt=""><figcaption><p>Conditional formatting applied based on Top N ranking</p></figcaption></figure>

**STEP 3:** You can also apply ranking based on percentages. In the image below, the bottom 50% of subcategories based on 2025 Actuals are highlighted in red.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252F1X9RVwYZkoRtTgHuFLef%252Fimage.png%3Falt%3Dmedia%26token%3D1006be92-e91f-4e27-9901-709097660e8e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f7a66fd5&#x26;sv=2" alt=""><figcaption><p>Conditional formatting for bottom 50% of categories</p></figcaption></figure>

**STEP 4:** You can apply conditional formatting for the top and bottom items using the **Both** option. In the image below, conditional formatting has been applied for the top and bottom categories.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FdKBGGVPYsydK9h5JrYSh%252Fimage.png%3Falt%3Dmedia%26token%3D89109200-9da2-4e03-bd6a-b23e80e39827&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=8234378e&#x26;sv=2" alt=""><figcaption><p>Conditional formatting for top and bottom categories</p></figcaption></figure>
