brandtberryfourie
New Member
- Joined
- Jul 8, 2024
- Messages
- 5
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
- Web
I have a formula that looks like this:
=IF(K185="";"";IF(AND(K185="STATION COMMANDER PERSONNEL";L185="STATION COMMANDER SECRETARY");"VISIBLE POLICING";"SUPPORT SERVICES";IF(K185="CIMAC";"SUPPORT SERVICES";IF(K185="MANAGEMENT INFORMATION CENTRE";"SUPPORT SERVICES";IF(K185="NOT PLACED";L185;IF(K185="DUTY ARRANGEMENTS - PTA NORTH MEMBERS";L185;K185))))))
The first part only should have the AND and the rest works as it worked before I realized I need the AND.
I fixed the first part and it works but the the rest doesn't work or I get an error. Or should maybe have to use OR aswell in the formula
First part: =IF(K2="";"";IF(AND(K2="STATION COMMANDER PERSONNEL";L2="STATION COMMANDER SECRETARY");"SUPPORT SERVICES";"VISIBLE POLICING"))
=IF(K185="";"";IF(AND(K185="STATION COMMANDER PERSONNEL";L185="STATION COMMANDER SECRETARY");"VISIBLE POLICING";"SUPPORT SERVICES";IF(K185="CIMAC";"SUPPORT SERVICES";IF(K185="MANAGEMENT INFORMATION CENTRE";"SUPPORT SERVICES";IF(K185="NOT PLACED";L185;IF(K185="DUTY ARRANGEMENTS - PTA NORTH MEMBERS";L185;K185))))))
The first part only should have the AND and the rest works as it worked before I realized I need the AND.
I fixed the first part and it works but the the rest doesn't work or I get an error. Or should maybe have to use OR aswell in the formula
First part: =IF(K2="";"";IF(AND(K2="STATION COMMANDER PERSONNEL";L2="STATION COMMANDER SECRETARY");"SUPPORT SERVICES";"VISIBLE POLICING"))