Hi, could someone please help to convert excel if statement formula to Power Query
=IF(AND(BF2<>"",BG2<>""),"Issued/Booked",IF(AND(BN2="",BK2<>"PO Direct"),"Not Released",IF(AND(BQ2="",BK2="PO Direct"),"Not Released",IF(AND(CC2="Rejected",S2="NP Practice - Rejected",BO2>BR2),"Rejected by NPP",IF(OR(CC2="Rejected",CC2="Rejected - Pending Acceptance"),"Rejected by NP",IF(CC2="New - Pending Acceptance","Released to NP",IF(CC2="New - New Pending Client / Broker Review","Pending",IF(AND(R2="New-Working",S2="NP Practice - Rejected"),"Rejected",IF(AND(R2="New-Working",S2="NP Practice - Accepted"),"Released to NP",IF(AND(R2="New-Working",OR(S2="NP Practice - Pending",S2="NP Practice - Completed")),"Released to NPP",IF(OR(R2="Open-Released",R2="Open-Corrected"),"Released to Booking",IF(OR(R2="Open-Released/Pending Info",R2="Open-Corrected/Pending Info"),"Pending",IF(R2="Open-Rejected","Rejected",IF(R2="Open-Accepted","Accepted Booking",IF(R2="Open-LclBooked","Booked, Unissued",0)))))))))))))))
=IF(AND(BF2<>"",BG2<>""),"Issued/Booked",IF(AND(BN2="",BK2<>"PO Direct"),"Not Released",IF(AND(BQ2="",BK2="PO Direct"),"Not Released",IF(AND(CC2="Rejected",S2="NP Practice - Rejected",BO2>BR2),"Rejected by NPP",IF(OR(CC2="Rejected",CC2="Rejected - Pending Acceptance"),"Rejected by NP",IF(CC2="New - Pending Acceptance","Released to NP",IF(CC2="New - New Pending Client / Broker Review","Pending",IF(AND(R2="New-Working",S2="NP Practice - Rejected"),"Rejected",IF(AND(R2="New-Working",S2="NP Practice - Accepted"),"Released to NP",IF(AND(R2="New-Working",OR(S2="NP Practice - Pending",S2="NP Practice - Completed")),"Released to NPP",IF(OR(R2="Open-Released",R2="Open-Corrected"),"Released to Booking",IF(OR(R2="Open-Released/Pending Info",R2="Open-Corrected/Pending Info"),"Pending",IF(R2="Open-Rejected","Rejected",IF(R2="Open-Accepted","Accepted Booking",IF(R2="Open-LclBooked","Booked, Unissued",0)))))))))))))))