Forum Discussion

MrBGL's avatar
MrBGL
Copper Contributor
Oct 18, 2020
Solved

If then not working

I have a spreadsheet that includes a simple If then formulae to help tally the NFL Pick Em Total.    If the Player's team matches the "Winners" row, then the formulae should be true and a 1 should ...
  • IngeborgHawighorst's avatar
    Oct 19, 2020

    MrBGL 

    That's what data validation has been invented for. Depending on what you want to achieve, there are different data validation methods to go about this.

     

    You could use a list with all the three letter codes for the teams, plus the "NO PICKS" option, or you could dynamically calculate the valid entries with a custom formula like this:

     

    =OR(D5=LEFT(D$4,3),D5=RIGHT(D$4,3),D5="NO PICKS")

     

     

    Apply that formula to the cells D5 to Q11. It will allow either the first three characters from row 5 in the current column, or the last three characters from that cell, or "No Picks".  

     

    A list dropdown might be easier to set up and more robust, though.

    ā€ƒ

Resources