I'm trying to use a Vlookup function, but I want it to have multiple possible outputs. All of the other help I've seen seems to just want to outputs, an error, and a correct. I'm trying for three different outputs. I've tried searching for help multiple different ways, but I can't seem to find something that is exactly what I'm looking for.
If the input is blank I want the output to be blank.
If the input is an item in my list I want it to output the ingredients for that item.
If the input is not an item in my list I want it to output "Not in List".
This is what I've tried so far:
If I type a correct input it gives me a correct output, If I type an incorrect input it gives me the "Not in List" error, but If I leave my input cell blank it doesn't leave the output cell blank. It gives me the "Not in List" error again.
Any help would be much appreciated!
If the input is blank I want the output to be blank.
If the input is an item in my list I want it to output the ingredients for that item.
If the input is not an item in my list I want it to output "Not in List".
This is what I've tried so far:
Excel Formula:
=IFERROR(IF(VLOOKUP(B2,Recipes!A:B,2,false)="","",VLOOKUP(B2,Recipes!A:B,2,false)),"Not in List")
If I type a correct input it gives me a correct output, If I type an incorrect input it gives me the "Not in List" error, but If I leave my input cell blank it doesn't leave the output cell blank. It gives me the "Not in List" error again.
Any help would be much appreciated!