If statement help

Jazzer

Board Regular
Joined
Jun 14, 2011
Messages
71
Hi Guys,

I am currently using the following formula's on the New_Trades tab of my worksheet

=New_Data!I13*New_Data!R13/100+New_Data!Q13

&

=New_Data!I13*New_Data!R13/100

what I need to do is combine both of these into the same cell using an if statement which decides which of the above calculations to use based on col b on the New_Trades tab

example

if B13 contains Outright Sale or Outright Purchase use
=New_Data!I13*New_Data!R13/100+New_Data!Q13

if B13 contains Repo or Reverse Repo use
=New_Data!I13*New_Data!R13/100

any help would be much appreciated

Many Thanks
James
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Why not use"

Code:
=IF(Left(B13,8)="Outright",New_Data!I8*New_Data!R8/100+New_Data!Q8,New_Data!I11*New_Data!R11/100)
 
Upvote 0
Better.. to use..maybe:rolleyes:
Code:
=IF(Left(B13,8)="Outright",New_Data!I8*New_Data!R8/100+New_Data!Q8,IF(Find(B13,"Repo")>0,New_Data!I11*New_Data!R11/100,""))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

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