# answer only if greater than a number

#### justn

##### New Member
How do you put an answer in a cell after subtracting 2 numbers and if greater than a number put that answer in. This isnt right just an example
=IF(a1-a2 is greater than 10 then put that answer in the cell if not just leave it blank?

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

#### S.H.A.D.O.

##### Well-known Member
What something like this:-

Code:
``=IF(A1-A2>10,A1-A2,"")``

I hope this helps!

#### L. Howard

##### Well-known Member
Try:

=IF(A1-A2>10,A1-A2,"")

Regards,
Howard

#### justn

##### New Member
Thanks, much appreciated

#### S.H.A.D.O.

##### Well-known Member
You're welcome, thanks for the feedback.

Replies
4
Views
199
Replies
6
Views
99
Replies
9
Views
462
Replies
4
Views
266
Replies
2
Views
543

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,515
Messages
5,832,199
Members
430,115
Latest member
RainerJonker

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