Quantcast
Channel: How to create a if statement with multiple OR conditions? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to create a if statement with multiple OR conditions?

$
0
0

Basically in my if statement I need to firstly see if the string is 7 characters and if the 7th character in that cell is a character among "A, J, S, T, N, V".

This is what I have so far (I know it doesn't work, but I am not sure how to implement these multiple "ORs"

If Len(Cells(i, 7).Value) = 7 And Left(Cells(i, 7), 1) = "A" Or "J" Or "S" Or "T" Or "N" Or "V" Then                    Cells(i, 29).Value = "Client and Account fields switched"ElseElse If

Thank you in advance! I am quite new haha


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images