representation of the green value. The next two digits are the hex representation of the
blue value.
If you don’t have Photoshop or another tool that converts from a hex color to an RGB
value for you automatically, you can use functions in Excel to do the conversion. For exam-
ple, the worksheet in Figure 1.30 converts from a hex color in Cell B1 to the RGB values
in B7:B9:
■The formulas in B2:B4 use the MIDfunction to extract each pair of numbers from the
color code. The formula for Cell B2 is shown in Cell C2.
■The formulas in B7:B9 use the HEX2DECfunction to convert the two-digit hex number
to decimal.
1
To represent the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.