How many cells in range1 are contaned and not contained in Range2 (No help column)

drom

Well-known Member
Joined
Mar 20, 2005
Messages
527
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!

I have 2 diferent sets of data

  • Sheet(1).Range("A2:A50") named "Range1"
  • Sheet(2).Range("A20:C350") named "Range2"
My questions:
  1. I would like to have in Sheet(2).Range("A1") a formula probably SumProduct to sum how many of my cells in Range2 are not contained in Range1
  2. I would like to have in Sheet(2).Range("A10") a formula probably SumProduct to sum how many of my cells in Range2 are contained in Range1

ps:
I do not want to use a help Column (Why: because using a help column I know the how to accomplish
I am using conditional formatting to highlight those cells, but how can I count/Sum them?

Thanks again
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
For 2 use
=SUM(COUNTIF(Range2,Range1))
For 1
=Counta(Range2)-A10
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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