# count cells which are less then 18

#### HelenaG

##### New Member
Hi,

cell A1 contains any number higher, lower or even to 18
cell B1 contains 4
Cell C1 contains 2
Cell D1 = B1*C1 (results in 8)

i need to calculate cell D1 only under condition if A1 is >18

How would the formula be written?

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### Fluff

##### MrExcel MVP, Moderator
Hi & welcome to MrExcel.
Excel Formula:
``=IF(A1>18,B1*C1,"")``

#### HelenaG

##### New Member
Hi & welcome to MrExcel.
Excel Formula:
``=IF(A1>18,B1*C1,"")``
thank you that works

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
5
Views
169
Replies
3
Views
355
Replies
1
Views
144
Replies
5
Views
90
Replies
7
Views
605

1,147,821
Messages
5,743,396
Members
423,792
Latest member
travisds

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

### Which adblocker are you using?

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

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