Hi, kind of new with doing complicated functions in Excel but I got the Error Message:
Anyway here's my code:You've entered too many arguments for this function.
To get help with this function, click OK to close this message. Then click the Insert Function button located to the left of the equal sign in your formula.
I'm basically trying to do 4 calculations:=IF(AND(C11="USD/JPY",D11="Long"),(G11-F11)*100,IF(AND(C11="USD/JPY",D11<>"Long"),(F11-G11)*100),IF(AND(C11<>"USD/JPY",D11="Long"),(G11-F11)*10000),IF(AND(C11<>"USD/JPY",D11<>"Long"),(F11-G11)*10000))
- USD/JPY Long
- USD/JPY Short
- Not USD/JPY Long
- Not USD/JPY Short
Any help would be very useful. Thanks!
Last edited by NBVC; 07-21-2011 at 03:36 PM.
Misplaced parentheses?
Try:
=IF(AND(C11="USD/JPY",D11="Long"),(G11-F11)*100,IF(AND(C11="USD/JPY",D11<>"Long"),(F11-G11)*100,IF(AND(C11<>"USD/JPY",D11="Long"),(G11-F11)*10000,IF(AND(C11<>"USD/JPY",D11<>"Long"),(F11-G11)*10000,""))))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks! It worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks