Forum

Notifications
Clear all

If Or Left

4 Posts
3 Users
0 Reactions
177 Views
(@paul-sanft)
Posts: 35
Trusted Member
Topic starter
 

Hi All,

Struggling to get a formula to work:

 

Overview

Multiple Personnel Records need to be spread across various action groups by Surname Initial letter

A to E

F to J

K to O

P to T

U to Z

 

I have tried in my sampling

=IF(OR(LEFT(CELL,1)={"A","B","C","D","E"}),"A to E","ERROR")

But when run ALL results return the True (A to E) value 

 

I'm sure it's something simple but it have me stumped.

Thanks in advance

Paul 

 
Posted : 07/03/2023 8:40 pm
Riny van Eekelen
(@riny)
Posts: 1217
Member Moderator
 

That formula seems to work just fine for me, though it's not very dynamic due to the hard-coding of both the conditions "A,B,C,D,E " and the outcome if true "A-E".

In the attached file I used you formula as you described, but I also included another way to do what I believe you need with the help of a lookup table.

Please come back here if not clear of I missed the point completely.

 
Posted : 08/03/2023 2:24 am
(@paul-sanft)
Posts: 35
Trusted Member
Topic starter
 

Thanks Riny,

I had failed to make it an array formula {} so that was the issue; but much preffered your lookup as that will allow me to go over volumes and far easier to change if required.

 

Thanks again

 
Posted : 08/03/2023 6:48 pm
(@debaser)
Posts: 838
Member Moderator
 

FYI, that formula did not require array entry since the criteria involved used an array constant.

 
Posted : 09/03/2023 5:15 am
Share: