Countif formula returns 0 instead of actual value

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
209
Office Version
  1. 365
Platform
  1. Windows
I am showing someone how to extract common records between 2 lists on Excel 2019. I've copied this formula from the Web but I cannot get it to calculate correctly. Would like to know what is wrong with it and if there's a simpler formula that would work in this Excel version.

Book10
ABCDEF
1
2List 1List 2Both lists
3JackTed0
4TedTom
5PeterVic
6FredJane
7SallyFred
8Nel
Sheet2
Cell Formulas
RangeFormula
F3F3=INDEX(Values1,SMALL(IF(COUNTIF(Values2,Values1)*NOT(COUNTIF($F$3:F3,Values1)), ROW(Values1)-MIN(ROW(Values1))+1,""),1))
Named Ranges
NameRefers ToCells
Values1=Sheet2!$B$3:$B$8F3
Values2=Sheet2!$D$3:$D$7F3
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Change: COUNTIF($F$3:F3,Values1)

to: COUNTIF($F$2:F2,Values1)
 
Upvote 0
Thanks Phuoc, that did the trick!
Do you (or others) know of an easier formula that calculates the same answer?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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