This function returns a random value from a range, but only if it meets the criteria in another column.
Item color? animal?
red yes no
cow no yes
dog no yes
blue yes no
ferrari no no
RetrunIf(A2:A6,"yes",2) = red or blue
RetrunIf(A2:A6,"yes",3) = cow or dog
RetrunIf(A2:A6,"yes",2,3) = red or blue or cow or dog
It works great... unless I reference a range on another sheet.
RetrunIf(otherSheet!A2:A6,"yes",2) = "blank"
Is there a problem with using the Range data type for ranges on other sheets?
Here she is: (Disclosure: I am not the author. Was purpose built for me by a coworker, and I only have a basic understanding of how it works.)
Bookmarks