peterv6
Board Regular
- Joined
- May 16, 2005
- Messages
- 129
- Office Version
- 365
I want to format cell A1 based on a combination of its contents, and those of cell C1.
Note: If not 0, A1's value will always be less than or equal to C1's value.
Example:
If A1 contains $0.00 and C1 contains $0.00, I want the fill color for both cells to be white, and the text color to be blue.
If A1 is $0.00 and C1 is $0.75 (or any value from a penny to 99¢), no change needed.
If A1 = C1, I want the fill color to be yellow and the text to be red for both cells.
I'm trying to use a formula to do this, but I haven't found anything that works.
The problem might be the formula I'm using in C1 to extract the cents from a money field & reformat it. B17 is a currency formatted field.
Any ideas would be greatly appreciated.
="$" & 0&RIGHT(B17,LEN(B17)-SEARCH(".",B17)+1)
Note: If not 0, A1's value will always be less than or equal to C1's value.
Example:
If A1 contains $0.00 and C1 contains $0.00, I want the fill color for both cells to be white, and the text color to be blue.
If A1 is $0.00 and C1 is $0.75 (or any value from a penny to 99¢), no change needed.
If A1 = C1, I want the fill color to be yellow and the text to be red for both cells.
I'm trying to use a formula to do this, but I haven't found anything that works.
The problem might be the formula I'm using in C1 to extract the cents from a money field & reformat it. B17 is a currency formatted field.
Any ideas would be greatly appreciated.
="$" & 0&RIGHT(B17,LEN(B17)-SEARCH(".",B17)+1)