# 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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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

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

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

Thanks again sykes,

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

All the Best.

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)))``

Thanks VERY Much.

All the Best.

Pleasure!!

Replies
3
Views
301
Replies
5
Views
1K
Replies
5
Views
417
Replies
4
Views
219
Replies
12
Views
337

1,218,618
Messages
6,143,502
Members
450,492
Latest member
Rusbus1972

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