What is wrong with my excel 365?

Perry Cheng

New Member
Joined
May 25, 2021
Messages
25
Office Version
  1. 365
Platform
  1. Windows
So, I am trying to use either VLOOKUP or simple Countif and if I have an array of list, it only look up the first on the list? What am I doing wrong?

=COUNTIF(B2,$E$2:$E$3)


Column BColumn CColumn DColumn E
Tom
=COUNTIF(B2,$E$2:$E$3)​
Mary
Mary
0​
John
Jane
0​
Jack
0​
John
0​
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Your xlookup is the wrong way round, you would have to lookup the values in D2:D3 in B2, but it will spill & also give odd results
+Fluff 1.xlsm
ABCDEF
1BCD (List)
2Tom, Mary, JaneMaryMaryMaryNot found
3John, Edith, KarenJohnJohnNot foundMary
4Mike, Cecil, Jane Not foundNot found
5Tom, Mary, JohnJohnMaryMary
Master
Cell Formulas
RangeFormula
C2:C5C2=IFNA(LOOKUP(2,1/(ISNUMBER(SEARCH($D$2:$D$3,B2))),$D$2:$D$3),"")
E2:F5E2=TRANSPOSE(XLOOKUP("*"&$D$2:$D$3&"*",B2,$D$2:$D$3,"Not found",2))
Dynamic array formulas.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,453
Members
452,514
Latest member
cjkelly15

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