Forum Discussion
ChidiV
Oct 28, 2021Copper Contributor
#SPILL
Hi Everyone, I have this formula =IF([Article Base Code] ="RD*","DAIRY",IF([Article Base Code] ="CS*","PIGS")) I am getting #SPILL ERROR Please help
- Oct 29, 2021
ChidiV Wait!! YOu can't use the wild card match that way in an IF function.
Try it this way:
=IF(COUNTIF([@Article Base Code],"RD*"),"DAIRY",IF(COUNTIF([@Article Base Code],"CS*"),"PIGS"))
ChidiV
Oct 29, 2021Copper Contributor
I'll share the file cause im at frustration level
Riny_van_Eekelen
Oct 29, 2021Platinum Contributor
ChidiV Wait!! YOu can't use the wild card match that way in an IF function.
Try it this way:
=IF(COUNTIF([@Article Base Code],"RD*"),"DAIRY",IF(COUNTIF([@Article Base Code],"CS*"),"PIGS"))
- Riny_van_EekelenOct 29, 2021Platinum Contributor
ChidiV Great! Should have thought about that from the start 🙂
- ChidiVOct 29, 2021Copper ContributorCOUNTIF works well 👍