0

I was hoping someone can help me with a formula.

What I am trying to do is format a number as currency if the column 3 to its left contains a specific text.

For example,

Col1, Col2, Col3
YES   a     5$
NO    b     4
YES   c     3$

In this case 5 and 4 are formatted as currency since their corresponding Col1 is YES.

3
  • 2
    use the formula =$A1="YES" and apply it to column C. Commented Dec 7, 2018 at 18:13
  • OK It worked but I added in as a conditional format. They all reference the same cell. So if the first row matches the condition then whole table gets formatted else none of them gets formatted. How do I make it so each row references its rows coll Commented Dec 7, 2018 at 18:19
  • Then you did not use the formula as I stated. the row must be relative not absolute. Commented Dec 7, 2018 at 18:19

1 Answer 1

2

Use:

=$A1="YES"

As the formula and apply it to Column C

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

What I did was I used the formula =$W$2="YES". I applied this to the whole column. But what happens is if $W$2 is YES then all of col c gets formatted.
Maybe its because the table is already created so it doesn't auto increment?
As stated the row must be relative: =$W2="YES"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.