Add agrument to formula

jlyn123

New Member
Joined
Jan 24, 2018
Messages
48
Office Version
  1. 2016
=IF(AND(H14="USD",E14="USD"),"No FX Trade Needed",IF(H14=E14,"BUY", "SELL"))

How can I add a new agrument to this statement? If fields H and E are left blank I dont want the value to be returned as "BUY" I would like it to be blank. I tried added IF(H13="","") but I get error messages. There are a lot of currency related to the BUY and SELL options and I dont want to have to list them all out.

Any help would be greatly appreciated.

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
What if only one of H14 and E14 are blank?
What should happen then?

If you want nothing to be returned if EITHER of them are blank, try:
Code:
[COLOR=#333333]=IF(AND(H14="USD",E14="USD"),"No FX Trade Needed",IF(OR(H14="",E14=""),"",IF(H14=E14,"BUY", "SELL")))[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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