Changing value in Column A depending on value in Column A, B

jmh1

New Member
Joined
Aug 4, 2005
Messages
43
Hi, I have a table that has 2 columns, A and B.


Each column contains multiple values.

I need to write a macro that will look at Column A, and IF it is "1," THEN look at Column B for any cells with "Red," "blue," or "orange" and change Column A to "Yes."


If Column A is not "1," then I do not want to change Column A, regardless of what is in Col. B.

If Col. A is "1", but Col. B is not "red" "blue", or "orange", then I do not want to change Col. A.

Any help would be much appreciated.

thanks
 
Hi lenze.
Yep. There was a speed change in that. (and now it is as I would've expected when I saw your
code yesterday - the case select is quicker.)

Average of 10 runs on 11,520 rows (on a different machine that yesterday). . .
SeeIt(): 0.321875 second
FindColorsDemo(): 0.385937 second
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,216,058
Messages
6,128,539
Members
449,457
Latest member
ncguzzo

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