Google-sheets – Comparing cell value 450-500 to another cell of value 475 in Google Sheets

conditional formattinggoogle sheets

I wanted to compare the price range column which will have prices range like 450-500 to another cell value 703.
In this image you can see I need to find column D value (which is the price range) to Column F which will be the current market price (CMP) which will change every day.
If it falls under the price range I need that cell to be highlighted.

enter image description here

Best Answer

You should use the following formula having an IF statement:

=(IFERROR(MAX(SPLIT(D3,"-")),0))>F3

cond. formatting