Categories

# Working with Excel

## Conditional formatting

This can be found on the Home > Style > Conditional Formatting.

Whenever you want to want to use a formula, I found it easier to do this trick. Create the formula next to the column you want to apply the formatting. In the case below, I want to check if the value is greater than 100 (=A2>100, =A2>100 etc)

As we can see the formula works just fine as we get the values TRUE and FALSE. Now it’s time to apply it to the Numbers column and set the colour GREEN if TRUE. Select the range, go to Conditional Formatting and select New Rule…

Enter the Formula and set the format.

The results:

To extend the formula for all the rows I’ve modified the Applies to value to =\$A\$2:\$A\$2000

To format more columns with the same formula use the same logic. By using the dollar sign I was able to lock the column (E) which I want to use in my formula.

Then I applied the formula next to my table and as you can see F and G match in values. Now I can go an add this as Conditional Formatting.

## Dollar Symbol (\$) in an Absolute Reference

A particularly useful and common symbol used in Excel is the dollar sign within a formula. Note that this does not indicate currency; rather, it’s used to fix a cell address in place in order that a single cell can be used repetitively in multiple formulas by copying formulas between cells.

=C6*\$C\$3

By adding a dollar sign (\$) in front of the column header (C) and the row header (3), when copying the formula down to Rows 7–15 in the example below, the first part of the formula (e.g., C6) changes according to the row it is copied down to while the second part of the formula (\$C\$3) stays static always enabling the formula to refer to the value stored in cell C3.
{"ft_lang_label":"__label__en","ft_lang_prob":0.87792605,"math_prob":0.8433435,"size":1711,"snap":"2023-40-2023-50","text_gpt3_token_len":399,"char_repetition_ratio":0.15758641,"word_repetition_ratio":0.0,"special_character_ratio":0.24254821,"punctuation_ratio":0.072222225,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98102784,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-23T12:13:04Z\",\"WARC-Record-ID\":\"<urn:uuid:6ea8a401-c616-47bb-9d40-df795c7e84a8>\",\"Content-Length\":\"60579\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3f31db78-4d1a-487b-ad24-3efa0ca1d1c1>\",\"WARC-Concurrent-To\":\"<urn:uuid:9182a889-33a6-4bec-adca-454ec87d3a29>\",\"WARC-IP-Address\":\"205.196.216.100\",\"WARC-Target-URI\":\"https://www.softoneconsultancy.com/working-with-excel/\",\"WARC-Payload-Digest\":\"sha1:6CXDCWUC7ILHPXQTR4DWRUTEVWQOOK6E\",\"WARC-Block-Digest\":\"sha1:JVELFENGBPF2GOWIJV5HH24YKIOXOE33\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506480.7_warc_CC-MAIN-20230923094750-20230923124750-00189.warc.gz\"}"}