In Excel, find and return all locations in each month in outside a +/-5% value range.

Dornan, Paul 125 Reputation points
2026-06-24T13:35:13.06+00:00

What formula in excel with return all the locations in column A (A2:A22) for each month with values >5 (highlighted in green) and <-5 (red). Expecting nine (9) returns for June 2025.

As always appreciate the help.

User's image

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author
Ashish Mathur 102.4K Reputation points Volunteer Moderator
2026-06-25T06:33:16.1466667+00:00

You are welcome. Enter this formula in cell B24

=LET(z,B2:K22,IFNA(DROP(REDUCE("",SEQUENCE(COLUMNS(z)),LAMBDA(a,b,HSTACK(a,FILTER(A2:A22&":"&INDEX(z,,b),((INDEX(z,,b)>5)+(INDEX(z,,b)<-5)))))),,1),""))

Hope this helps.

User's image

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author
Ashish Mathur 102.4K Reputation points Volunteer Moderator
2026-06-24T23:13:54.6466667+00:00

Hi,

Enter this formula in cell B24

=LET(z,B2:K22,IFNA(DROP(REDUCE("",SEQUENCE(COLUMNS(z)),LAMBDA(a,b,HSTACK(a,FILTER(A2:A22,((INDEX(z,,b)>5)+(INDEX(z,,b)<-5)))))),,1),""))

Hope this helps.

User's image

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author
Anonymous
2026-06-24T14:36:08.1666667+00:00

Hi @Dornan, Paul, 

Thank you for posting your question in the Microsoft Q&A forum. 

Regarding that you want to find a formula in excel with return all the locations in column A (A2:A22) for each month with values >5 (highlighted in green) and <-5 (red). Expecting nine (9) returns for June 2025. 

For this situation, please try to use this formula below: 

=FILTER($A$2:$A$22,(B$2:B$22>5)+(B$2:B$22<-5),"") 

User's image

  

This returns all locations where the June value is either: 

  • greater than 5, or 
  • less than -5 

For your June 2025 column, this should return 9 locations: 

User's image

Because $A$2:$A$22 is locked and B$2:B$22 is relative by column, when you copy it to July, August, etc., Excel will automatically check the corresponding month column. 

User's image

Could you please confirm if this matches the expected result on your side? If I’ve misunderstood any part of your requirement, feel free to let me know. I’d be happy to adjust the solution accordingly. 

Thank you again for your time and understanding. While my initial response may not resolve the issue immediately, I’d like to gather more details about your situation so I can assist you more effectively.       

I really appreciate your patience, and I’m here to help. Looking forward to your response!       


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Newest
  1. Dornan, Paul 125 Reputation points
    2026-06-24T15:00:39.2333333+00:00

    Hi and thanks for helping. You have not misunderstood at all. However, in my worksheet if return numbers, not text, despite trying to format etc. Forgive my ignorance, perhaps something silly that I am missing with my very limited knowledge with excel. Was thinking now of a text join to allow showing returns in another worksheet if possible.

    User's image

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.