# If Formula - Help!!

#### NicNock

##### New Member
Hope someone can help with my first post!

I am trying to work out what the formula would be for this; I want the cell value to be 20 unless E9> 1 or F9 <4 then it should = 10

I have no idea! Please help. Thanks.

### Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

#### Aladin Akyurek

##### MrExcel MVP
=IF(OR(E9 > 1, F9 < 4), 10, 20)

#### Gerald Higgins

##### Well-known Member
Welcome to the board NicNock.

How about
Code:
``=if(or(e9>1,f9<4),10,20)``

#### NicNock

##### New Member
Thanks Guys!! That worked.

What if I wanted to add in if H9 >2 = 10?

#### Aladin Akyurek

##### MrExcel MVP
Thanks Guys!! That worked.

What if I wanted to add in if H9 >2 = 10?

=IF(OR(E9 > 1, F9 < 4, H2 > 2), 10, 20)

Replies
0
Views
298
Replies
1
Views
197
Replies
6
Views
136
Replies
13
Views
433
Replies
1
Views
101

Threads
1,190,789
Messages
5,982,924
Members
439,807
Latest member
WXM86

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

### Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

### Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back