Excel Formula issue

Occasional Visitor



So i am having an issue with a formula.


=IF( A24 = STATS!B1:B32, STATS!AK1:AK32, "") produces an error everytime, Basically what I am trying to do is say if anything of column B is the same. I want it to pull information from that same row and put it on a different page of the workbook. However, this does work. =IF(A24 = "VGK", STATS!AK1:AK32, ""). SO it has to be something i am doing with column B on the STATS worksheet. I think it is trying to add all of the columns up to equal that one cell, but obviously that creates an error, How do I fix this thanks? 

3 Replies


It's always helpful if you upload a sample file with not working formula and desired output mocked up manually to visualize what exactly you are trying to achieve.


Btw, please try this and see if this is what you are trying to achieve.




Another alternative would be: 





The reason for the error is IF does not treat B1:B32 as an array. Excel isn't checking all those cells to see if A24 is present. As the others have advised, you'll need a lookup function.

If you're running a fully updated version of O365 you may get a spilled result with your original formula. Excel is getting smarter!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies