# Less Than & Greater Than

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

##### Well-known Member
Hi Everyone,

I am having Problems Creating this Formula.

IF(C8=0,0,IF(C8<C30>C28),(C8-C30)*C29+C27)
I think it Might be Something to do with the Way I am Using Less Than & Greater Than.

Any Help will be Greatly Appreciated.
All the Best.

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

#### sykes

##### Well-known Member
S.H.A.D.O

I can't see any "less thans" or "greater thans" in your formula.
..Also ...
...doesn't look correct, and finally...
...probably needs to be in separate parenthese

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

##### Well-known Member

My Fault, the Formula Should be :-

IF(C8=0,0,IF(C8 Less Than C30 Greater Than C28),(C8-C30)*(C29+C27))

All the Best.

withdrawn

#### sykes

##### Well-known Member

OK - just one more thing..
(C8 Less Than C30 Greater Than C28)
... do you mean:
If C8 is less than C30 but also greater than C28 then....?

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

##### Well-known Member
Thanks again sykes,

That is Exactly what I Mean.
Sorry to have been Vague.

All the Best.

#### sykes

##### Well-known Member

This should do it.
I've had to put it in code tags, otherwise the formula is changed by the board's HTML (don't know why that is), however it's not code, just a formula:
Code:
``IF(C8=0,0,IF(AND(C8<C30,C8>C28),(C8-C30)*(C29+C27)))``

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

##### Well-known Member
Thanks VERY Much.

All the Best.

Pleasure!!

Replies
3
Views
37
Replies
2
Views
108
Replies
5
Views
142
Replies
9
Views
1K
Replies
1
Views
313

1,148,280
Messages
5,745,829
Members
423,981
Latest member
ph1l

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