IF - formula help

metropical

New Member
Joined
Dec 23, 2008
Messages
33
If B# contains but not equal to "expire", then R# = C# x .75/100.
If B# contains but not equal to "sell" or "buy", then R# = C# x .75/100 x 2.

Please ask for further explanation if needed ......... No doubt.
It's calculating option trade fees.
 
IE:
(400 x .75)/100) *2.

The actual words are

Expire Long, Expire Short, Buy to Close, Sell to Close.

So the "expires": column R would be (400 x .75)/100) *2 or 6
and the "buys": column R would be (400 x .75)/100) or 12 ?
 
Last edited:
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You're right. My brain was in another dimension.
But the formula still isn't working. There must be something else I'm missing or not telling you.
 
Upvote 0
Ding Ding Ding!

I took a little liberty with your new formula and edited back to the first ((math)), so I could look at the formula and understand.

=IF(LEFT(B4,6)="expire",(C4*0.75)/100,IF(RIGHT(B4,5)="close",((C4*0.75)/100)*2,0))

So the RIGHT# and LEFT# refer to number of letterS from the right or left of the cell? If the left 6 letters are "expire". If the right 5 letters are "close".

Just curious as to why the 1st didn't work. It looked happy in the Formula pallette, but ......

I've been trying to get here for quite a while. Thanks. Though my math is pretty good and my every day logic, I cannot wrap my head around formulas in Excel.

And, OBTW, great sig. I laughed very hard.
 
Upvote 0
Glad we could figure it out...not sure why the original didn't work, but I'm not a big fan of doing IF <> formulas. ;)
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top