Compare number to string

Status
Not open for further replies.

kolarbr

New Member
Joined
Jul 27, 2011
Messages
15
I need to compare a number to a string in which i only compare the number to the number in the string. For example I have a "control" number in some column that needs to be compared against the numbers in all of the other subsequent rows in that column

Ctl #
0.17

Rest of col
0.16 J
1.1
0.20 J
1.1 U
1.2 UJ
0.13 etc.

I need to compare the ctl number to every number in the rest of the cols and if the ctl > other values then highlight the box. I know how to do the for loop and the highlighting but can someone tell me how to compare the 2 values? Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Status
Not open for further replies.

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

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