I need to find the countifs of two seperate variables and put that result in the adjacent cells. Basically, trying to find a way to pin point where the last two variables reside in the two seperate countif ranges. Data will be added in anytime
ex. rows (7-11) and columns Y and AA
<TBODY>
</TBODY>
Then if the ABC countif is greater than "V38", I want to populate the cell next to them with a P. For countif DEF I want to do the same except use cell "V39".
ex. Let's say V38= 3 V39= 2
<TBODY>
</TBODY>So if there was another ABC after the last DEF than I would need the macro to recognize that and put the P in the adjacent cell to that instead if greater than "V38"
Is there a way to do this?
What i started to mess around with:
Dim countif as an integer
countif= (Y:Y,"ABC")
when countif > "V38" then
activecell.value = "P"
ex. rows (7-11) and columns Y and AA
Y | AA |
DEF | |
ABC | |
ABC | |
ABC | =countif(Y:Y,"ABC") |
DEF | =countif(Y:Y,"DEF") |
<TBODY>
</TBODY>
Then if the ABC countif is greater than "V38", I want to populate the cell next to them with a P. For countif DEF I want to do the same except use cell "V39".
ex. Let's say V38= 3 V39= 2
Y | AA | AB |
DEF | ||
ABC | ||
ABC | ||
ABC | =countif(Y:Y,"ABC") | =if(AA10>V38,"P"," ") |
DEF | =countif(Y:Y,"DEF") | =if(AA11>V39,"P"," ") |
<TBODY>
</TBODY>
Is there a way to do this?
What i started to mess around with:
Dim countif as an integer
countif= (Y:Y,"ABC")
when countif > "V38" then
activecell.value = "P"
Last edited: