# Dynamic Ranges?

#### daily106

##### Board Regular
Hello All;

How are you guys doing? I posted a question yesterday regarding COUNTIF function, but I dont think I addressed my examples comprehensibly.

I have the following where "CHECK" columns are the answers that I am trying to get to. Basically I have dynamic ranges and from these ranges I want to see if there are same "rates" associated within these ranges.

the logic behind the first "Yes" is...

IF names are "apples", how many rate are duplicate? replcad anything other than 1 as "Yes"

Could someone please help me on this? I need this to complete my macr.
Thank you all.
Book1
ABCD
1SellernamerateCHECK
2TomApple\$1.50Yes
3JohnApple\$1.50Yes
4JamesApple\$1.65
5JaneApple\$1.85
6TomBeef\$2.00
7JohnBeef\$4.00
8JamesBeef\$5.00Yes
9JaneBeef\$5.00Yes
10JuanBeef\$7.00
11TomPear\$2.00
12JohnPear\$4.00
13JamesPear\$5.00
14Tomchicken\$3.00Yes
15Johnchicken\$3.00Yes
Sheet2

### Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

#### Aladin Akyurek

##### MrExcel MVP
D2, copoied down:

=(SUMPRODUCT(--(\$B\$2:\$B\$15=B2),--(\$C\$2:\$C\$15=C2))>=2)+0

Custom format the formula cell as:

[=0]"";[=1]"Yes"

if needed.

#### daily106

##### Board Regular
thank you very very much

thank you very much!! It works great.

If I modify this formula would it work for macro too? I will try to define the ranges and try. Thank you

Replies
7
Views
145
Replies
4
Views
143
Replies
5
Views
165
Replies
3
Views
286
Replies
2
Views
515

Threads
1,136,878
Messages
5,678,301
Members
419,753
Latest member
Sallylwy

### 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

### 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