Share via

Problem with an IF And statement - #NAME? Error...

Anonymous
2012-02-27T00:30:28+00:00

Hi,

I'm having trouble with a statement that i've created in my spreadsheet.  Basically, i'm wanting to do the following: if "San Jose Scale" is selected from a drop down menu in A21 and "5" is entered in J21 then I need it to return either "X Market" or "O Market" in another cell (B28).  The problem i'm having is that it returns #NAME?   

This is the formula i created: =IF(AND(A21=SAN JOSE SCALE, J21=20),"X Market", "O Market")

I think that the formula is not working because I am using a drop down selection - is it possible to make it work by using one? 

By the way, i'm using Excel 2007.

Thank you so much for your help in advance!

Sasha

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-02-27T00:46:46+00:00

=IF(AND(A21="SAN JOSE SCALE", J21=20),"X Market", "O Market")

as you are looking for Text.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2012-03-04T20:49:50+00:00

    Thank you!

    Was this answer helpful?

    0 comments No comments