Dynamic Ranges?

daily106

Board Regular
Joined
Dec 20, 2004
Messages
158
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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