3
votes

Basically I am trying to use the conditional formatting icon set that is a green dot, orange dot and red dot.

If my value is smaller than my formulas value, display the green dot.

If my value is equal to my formulas value, display the orange dot.

If my value is more than my formulas value, display the red dot.

This is the EXACT formula I am trying to use:

VLOOKUP(product_ID,product_db,3,FALSE)

product_ID is the cell next to the cell I am trying to apply the conditional formatting to. product_db is a large table within another worksheet.

Although, when I am trying to use this, the formatting is not applied to my cell at all. No dots are displayed.

I believe it is because of my formula. Any ideas?


EDIT:

Here are some screen shots of what is happening:

Here is the quantity before the conditioning:

Here is the conditioning with the formula being: =VLOOKUP(invoice_product,PRODUCT_DATABASE,3,FALSE)

enter image description here

The quantity is then the EXACT same as the first image, unchanged. The value that my formula should return is 2, hence the orange dot should be displayed.

1
Since this is really about standard Excel features, I think this would be more appropriate to ask at SuperUser. See this discussion for some rationale.Jonathon Reinhart
Did you put an = before the formula?James L.
@JamesL. - Tried with and without the =, although still no luck. My VLOOKUP function is definitely correct since I have tried it out in a blank cell and it is returning the correct value.Fizzix
@JonathonReinhart: That's an old thread. The current one now suggests that it can remain in SO. See THISSiddharth Rout
@SiddharthRout Fair enough. I'm actually interested in the OP's question, but if it were me asking, I would still have asked at SU. Especially considering the conditional formatting is really what's at question here.Jonathon Reinhart

1 Answers

4
votes

Your conditional formatting formula included a range for the first parameter of the VLOOKUP formula. You can't do that, it must be a single cell. You can use an INDIRECT function to resolve the cell to the immediate left of the one in the quantity column. Look at the following screen shot. Also, because you are using icons as the conditional formatting, you cannot apply it to a range, it must be a single cell for the INDIRECT function in the VLOOKUP formula to work. You could apply it to a range if you simply formatted the color of the text, but not when using icons. Follow the instructions in the image:

Image of Solution