#### KristenB

##### New Member
What I need, is if AB17=yes, then if X17=In-State, \$7.50 but if X17=Out-of-State, \$13.50. But if AB17 is blank and/or doesn't =yes, then no response. This is what I have so far:

=IF(AND(AB17="yes",X17="In-State"),"\$7.50","\$13.00")

#### Michael M

##### Well-known Member
Maybe this..

Code:
``=IF(OR(AB17="",AB17<>"yes"),"",IF(AND(AB17="yes",X17="In-State"),"\$7.50","\$13.00"))``

#### Mazbuka

##### New Member
What I need, is if AB17=yes, then if X17=In-State, \$7.50 but if X17=Out-of-State, \$13.50. But if AB17 is blank and/or doesn't =yes, then no response. This is what I have so far:

=IF(AND(AB17="yes",X17="In-State"),"\$7.50","\$13.00")

Try this:

=IF(AND(AB17="yes",X17="In-State"),"\$7.50",IF(AB17<>"yes","","\$13.50"))

Last edited:

#### KristenB

##### New Member
Perfect! Thank you!

1,082,380
Messages
5,365,117
Members
400,824
Latest member
Themilkybarkid

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...