Forum Discussion
Zane_Koonce
Sep 13, 2022Copper Contributor
HELP with IF Formula
I am trying to create a formula that will look at four cells and depending on the condition, return a value from another four cells. If two or more cells are "Yes", I need to return "ERROR". Can anyo...
Zane_Koonce323
Sep 14, 2022Copper Contributor
Sorry for the lack of information. Here is what we are trying to do: Cell B7 is a dropdown listing of states. Selecting the state (i.e. FL) will populate cells B18 to 22 with data. Cells B9 to 12 have YES or NO options. Only ONE of those cells can be YES. If two or more are YES then we need to return an ERROR to cell b14. Depending on the selection, Cell B14 will pull the required information from one of the cells between B18 and B22. I have created the IF function that will do that, but do not know how create it with the ERROR message. I will try what you have given me and see what happens.
HansVogelaar
Sep 14, 2022MVP
B9:B12 contains 4 cells, but B18:B22 contains 5 cells, so there's a problem...
- Zane_Koonce323Sep 14, 2022Copper ContributorI figured out the issue and worked around it. I added another row so I have equal number of cells. Cell B9 was asking if there was a curb or guardrail, simple YES or NO. If YES, return cell B19, NO returns cell B20 to B15. I added inserted a row so to ask "With curb?" and then "Without curb?". What you sent me works perfectly now. Thank you.