# This one has me stumped, can anybody help.

#### nyrfan

##### Board Regular
How do I write this formula?

If e5 contains a # >0 then e5+k5* 3%, if e5 is <0 then k5 / L5

Thanks,
Felix

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
is this what you need?
=if(e5>0,e5+k5* 3%,k5/L5)

Code:
``=IF(E5>0,(E5+K5)*0.03,IF(E5<0,K5/L5))``

Hi,

Try:

=IF(E5>0,E5+K5*0.03,IF(E5<0,K5/L5,0))

Dom

Each one workd great thanks

Felix

They may all work but bear in mind that you get a different answer for (E5+K5)*0.03 than to E5+K5*0.03 due to the postioning of the parenthesis.

Dom

Replies
0
Views
282
Replies
10
Views
347
Replies
7
Views
535
Replies
3
Views
299
Replies
10
Views
680

1,216,309
Messages
6,130,001
Members
449,551
Latest member
MJS_53

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