# Multiple logic If function

#### 77winston

##### New Member
Hi,
I was hoping someone can help me with an issues I'm having in excel. I'm pretty sure this will be an easy fix for most of the users on here. I'm still trying to get my head around if statements and finding it quite hard to achieve the end result.
I have the following table (example). I want a formula that will test all 3 columns and return if its true or false.
Basically I want the formula to check if Service 1 and Service 2 are populated, if populated check if the value is greater than \$5 then return "True". In the event only service type 1 is populated then the value should be \$5 then return "True". In the event service 1 and service 2 are populated but value does not equal 10 then return "False". In the event service type 1 is populated and no value is populated then return "False".

Service1 Service2 Values
7 1 \$10 Formula should reflect "TRUE"
14 \$5 Formula should reflect "TRUE"
9 \$0 Formula should reflect "False"
27 5 \$5 Formula should reflect "False"

Hope someone can help me with this

#### ExcelTactics

##### Board Regular
You seem to contradict yourself in your description of the behavior so I had to guess that you only wanted exact matches to 5 and 10 to be TRUE. If >5 is okay, just change the "=5" to ">5" in the formula, etc.

Excel 2010
ABCD
1Service1Service2ValuesFormula
271\$10 TRUE
314\$5 TRUE
49\$0 FALSE
5275\$5 FALSE

</tbody>
Sheet4

Worksheet Formulas
CellFormula
D2=IF(ISBLANK(A2),FALSE,IF(ISBLANK(B2),IF(C2=5,TRUE,FALSE),IF(C2=10,TRUE,FALSE)))

</tbody>

<tbody>
</tbody>

#### 77winston

##### New Member
WOW! Thanks. It works.

1,082,133
Messages
5,363,341
Members
400,728
Latest member
Hoan1985

### 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...