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​
 
In that case, Im afraid I cannot help any further as I'm pretty sure they should both work if array entered.
 
Upvote 0

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"
In that case, Im afraid I cannot help any further as I'm pretty sure they should both work if array entered.
No worry. You know apparently we also have a webversion of 365Excel, and I tried there and it worked perfectly. So, I am concluding it has to do with the version. Ty so much for your time.
 
Upvote 0
Glad to help & thanks for the feedback.
You could also try & get your IT department to allow Office updates.
 
Upvote 0
They are giving me tons of excuses why not. I am tired of fighting them. ty again. you are great.
 
Upvote 0
Try the suggestions from post 19 but use SUMPRODUCT instead of SUM.
 
Upvote 0
One last question, how do I accomplish the above, if there is a match, then display the matched name alone. i.e.

1622053313387.png


I would think this should work, but it isn't. =XLOOKUP(B2,"*"&$D$2:$D$3&"*",$D$2:$D$3,"Not found",2)
 
Upvote 0
How about
Excel Formula:
=IFNA(LOOKUP(2,1/(ISNUMBER(SEARCH($D$2:$D$3,B2))),$D$2:$D$3),"")
 
Upvote 0
If you don't have the Sequence function, you shouldn't have Xlookup.
 
Upvote 0

Forum statistics

Threads
1,221,504
Messages
6,160,199
Members
451,630
Latest member
zxhathust

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