简体   繁体   中英

Google Sheets array formula help needed

I am new to Google Sheets and am running into some trouble trying to figure out who to create a formula using ARRAYFORMULA, IF, AND..

I have a sheet that is used to create an inventory needed list for our satellite facility. I have the following formula that works fine for individual cells but I am have difficulty getting a grasp on how to convert this into an ARRAYFORMULA. I am using ARRAYFORMULA in other cells but with this in having multiple IF and AND, I'm stumped. Any assistance would be greatly appreciated.

=if(Isblank(N2),If(And(L2>=1,O2=""),Roundup(L2/C2), If(And(L2>=1,O2="Pallet"),"Pallet",If(L2<1,Roundup(L2/C2)))),"BO")

Thank you!!

AND is not supported under ARRAYFORMULA . you need to use multiplication:

=ARRAYFORMULA(IF(ISBLANK(N2:N),
 IF((L2:L>=1)*(O2:O=""),       ROUNDUP(L2:L/C2:C), 
 IF((L2:L>=1)*(O2:O="Pallet"), "Pallet", 
 IF( L2:L< 1,                  ROUNDUP(L2:L/C2:C)))), "BO"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM