VBA Macro to Evaluate cells based on if column contains criteria

Status
Not open for further replies.

tharrington

New Member
Joined
Jul 19, 2018
Messages
12
In my array, I have a macro that colors cells yellow or red depending on numerical criteria.
I am now looking for a bit of code that counts the maximum number of yellow cells in a row, that do not have a red cell in that column.

So a count if type statement that counts when yellow and doesnt have red above or below it.

Thanks ahead of time
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Duplicate https://www.mrexcel.com/forum/excel...-while-nested-if-post5107790.html#post5107790

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

This is the second time that you have duplicated this thread, despite the fact that you have a response on the original to which you haven't replied.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,216,122
Messages
6,128,963
Members
449,480
Latest member
yesitisasport

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