Forum Discussion

QWeelon's avatar
QWeelon
Brass Contributor
Sep 18, 2021
Solved

Conditional currency

Dear community   I'm in the process of generalizing my Excel for increased automation. I'm in need of some sort of conditional formatting for currency. I have the setup as below where the correspon...
  • HansVogelaar's avatar
    HansVogelaar
    Sep 18, 2021

    QWeelon 

    You could create a rule for each currency. The cell values themselves should be just numbers; the number format will determine how they are displayed.

    Select the range in column B that you want to format. I will assume that B11 is the active cell in the selection.

     

    • On the Home tab of the ribbon. select Conditional Formatting > New Rule...
    • Select 'Use a formula to determine which cells to format'.
    • Enter the formula =$A11="SEK"
    • Click the Format... button.
    • Activate the Number tab.
    • Select Custom in the list of categories.
    • Enter #.##0,00 "SEK" in the Type box.
    • Click OK, then click OK again.

     

    Repeat these steps for each currency, for example with the formula =$A11="EUR" and the number format #.###,00 "EUR"