rizwanulhasan
New Member
- Joined
- Jan 1, 2022
- Messages
- 16
- Office Version
- 2021
- Platform
- Windows
Hi,
Hope all are well.
My requirements are as follows:
C53 should show as DRF COMPLETE if the below conditions are fulfilled.
1. C5 to C10, C14, C32, C40, C43, C44, C46, C47 should not be blank
2. C8 should always be a number of 14 digits
3. Only if C6=USA, C11 should not be blank.
4. Only if C14="Partial Batch Decommissioning",
i> C20 should not be blank and C55 should be "QUANTITY MATCH"
ii> If C20 = SGTIN Level - B28 should not be blank and should contain a numerical value. Similarly for below:
Case Level - B28 & C28
Pallet Level - B28 & D28
Cases + Pallets - C28 & D28
SGTIN + Cases - B28 & C28
SGTIN + Pallets - B28 & D28
SGTIN + Cases + Pallets - B28, C28 & D28
I am using below formula. Everything's perfect, just that 1 condition doesn't work. When C14=Partial Batch Decommissioning, despite C55=QUANTITY MISMATCH, C53 shows DRF COMPLETE whereas it should show DRF INCOMPLETE.
Note: This is a cross post and the link to original post is as below.
How to get a specific result using IF formula based on multiple conditions?
Hope all are well.
My requirements are as follows:
C53 should show as DRF COMPLETE if the below conditions are fulfilled.
1. C5 to C10, C14, C32, C40, C43, C44, C46, C47 should not be blank
2. C8 should always be a number of 14 digits
3. Only if C6=USA, C11 should not be blank.
4. Only if C14="Partial Batch Decommissioning",
i> C20 should not be blank and C55 should be "QUANTITY MATCH"
ii> If C20 = SGTIN Level - B28 should not be blank and should contain a numerical value. Similarly for below:
Case Level - B28 & C28
Pallet Level - B28 & D28
Cases + Pallets - C28 & D28
SGTIN + Cases - B28 & C28
SGTIN + Pallets - B28 & D28
SGTIN + Cases + Pallets - B28, C28 & D28
I am using below formula. Everything's perfect, just that 1 condition doesn't work. When C14=Partial Batch Decommissioning, despite C55=QUANTITY MISMATCH, C53 shows DRF COMPLETE whereas it should show DRF INCOMPLETE.
Excel Formula:
="DRF"&IF(AND(AND(COUNTA(C5:C10)=6,C14<>"",C32<>"",C40<>"",COUNTA(C43,C44,C46,C47)=4),AND(LEN(C8)=14,ISNUMBER(C8+0),IF(C6="USA",C11<>"",TRUE),IF(C14="Partial Batch Decommissioning",AND(C20<>"",TRUE),C55="QUANTITY MATCH"),AND(OR(AND(C20="SGTIN Level",B28<>""),AND(C20="Case Level",COUNT(B28:C28)=2),AND(C20="Pallet Level",COUNT(B28,D28)=2),AND(C20="SGTIN + Cases",COUNT(B28,C28)=2),AND(C20="Cases + Pallets",COUNT(C28,D28)=2),AND(C20="SGTIN + Pallets",COUNT(B28,D28)=2),AND(C20="SGTIN + Cases + Pallets",COUNT(B28:D28)=3))))), " COMPLETE"," INCOMPLETE")
Note: This is a cross post and the link to original post is as below.
How to get a specific result using IF formula based on multiple conditions?
Last edited by a moderator: