How do I revised this Conditional Formula to read the Cell's location instead of the values? =ISNUMBER(SEARCH(" -20,0-"," "&SH60))

arthurz11

Board Regular
Joined
Nov 9, 2007
Messages
158
Office Version
  1. 2021
Platform
  1. Windows
The above formula searches for the x,y coordinates in a range and then highlights it. The data is from A1 and B1 not showing. A1 is the -20 and the B1 is 0. I want to revise the formula so that whatever is in cell A1 and B1 is to highlight that in range SG59:SI61. I do not want to use the values -20,0 in the formula. The data in A1 and B1 changes. So from going over and over to conditional formatting to change the formula, I rather change the data from cells A1 and B1.

Picture1.png
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try:
Excel Formula:
=ISNUMBER(SEARCH(" " &$A$1&","&$B$1&"-"," "&SH60))
 
Upvote 0
Try:
Excel Formula:
=ISNUMBER(SEARCH(" " &$A$1&","&$B$1&"-"," "&SH60))
Now that I can highlight the values from A1 and B1, can it be from a range? For example, A1:B3 where A1 is -20, B1 is 0, A2 is -19, B2 is -1, A3 is -18, and B3 is -1?

Picture1.png
data can be in columns OR in rows
Picture1.png
so how do I write the range in the conditional formula? Do I make another post for this question?
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,326
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top