IF Statement with multiple conditions - getting error

jwoo89

New Member
Joined
Jan 5, 2021
Messages
32
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

Just wanted to say thank you for this forum as it has helped me greatly and has taught me a lot!!

I am having an issue with my nested if statement.

=IF(OR($H11="BOND",$H11="EQUITY",$H11="WARRANT"),($C11*$D11)/$E11,IF(OR($H11="FUTURE",$H11="SWAP"),INDEX(Current!T:T,MATCH($B11,Current!AX:AX,0),IF($H11="OPTION",(($C11*$D11)/$E11)*100),IF($H11="PIPE",(($C11*($D11-10))/$E11)))))

It works well until i get to the word SWAP, OPTION and PIPE. I am getting a error or a value error.

Does anyone know how to fix this?

Any help would be greatly appreciated!! :)
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You have some of the brackets in the wrong place, try
Excel Formula:
=IF(OR($H11="BOND",$H11="EQUITY",$H11="WARRANT"),($C11*$D11)/$E11,IF(OR($H11="FUTURE",$H11="SWAP"),INDEX(Current!T:T,MATCH($B11,Current!AX:AX,0)),IF($H11="OPTION",(($C11*$D11)/$E11)*100,IF($H11="PIPE",(($C11*($D11-10))/$E11)))))
 
Upvote 0
Solution
=IF(

OR($H11="BOND",$H11="EQUITY",$H11="WARRANT"),

($C11*$D11)/$E11,

IF(OR($H11="FUTURE",$H11="SWAP"),

INDEX(Current!T:T,MATCH($B11,Current!AX:AX,0)
Missing a bracket above

,IF($H11="OPTION",

(($C11*$D11)/$E11)*100),

IF($H11="PIPE",
(($C11*($D11-10))/$E11 )

No FALSE condition - so if all above not met , then you get FALSE

))))
 
Upvote 0
Thank you for that!

Is there anyway you would be able to provide me the actual formula? I tried to put in a bracket but i am still getting an error.
 
Upvote 0
whats the error - i added the formula , as posted by FLUFF, and I get FALSE , so the formula syntax is OK, as i dont match any of the IF conditions hence it returns FALSE as expected

the error maybe from some of the equations you have or more likely the lookup , index/match

try just adding
=INDEX(Current!T:T,MATCH($B11,Current!AX:AX,0))
what do you get returned ?

can you post the spreadsheet via XL2BB ? see signature or menu
or put on a share ,
make sure NO personal/sensitive info, as this is a public forum available to all including searches via google
 
Last edited:
Upvote 0
i can do that...

Still tried again and still can't get anything. Its just odd because i see the word option and it should not turn up as false as you can see above.

Thanks for your help!!

Book2.xlsx
ABCDEFGHI
10SymbolSymbolQTYPXFXValuenotestypeformula
11ABC1ABC1102120EQUITY20
12ABC2ABC2112122OPTIONFALSE
13ABC3ABC3122124WARRANT24
14ABC4ABC4132126PIPEFALSE
15ABC5ABC5142128SWAP#VALUE!
16ABC6ABC6152130BOND30
17ABC7ABC7162132FUTURE#VALUE!
Sheet1
Cell Formulas
RangeFormula
F11:F17F11=C11*D11*E11
I11:I17I11=IF(OR($H11="BOND",$H11="EQUITY",$H11="WARRANT"),($C11*$D11)/$E11,IF(OR($H11="FUTURE",$H11="SWAP"),INDEX(DATA!T:T,MATCH($B11,DATA!AX:AX,0),IF($H11="OPTION",(($C11*$D11)/$E11)*100),IF($H11="PIPE",(($C11*($D11-10))/$E11)))))


Book2.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAY
11ABC1
22ABC2
33ABC3
44ABC4
55ABC5
66ABC6
77ABC7
8
9
DATA
 
Upvote 0
You haven't change your formula, use the one I posted in post#2
 
Upvote 0
i copied and pasted just now and still got the same errors in my example.

Changed the worksheet from CURRENT to DATA

Book2.xlsx
ABCDEFGHI
10SymbolSymbolQTYPXFXValuenotestypeformula
11ABC1ABC1102120EQUITY20
12ABC2ABC2112122OPTIONFALSE
13ABC3ABC3122124WARRANT24
14ABC4ABC4132126PIPEFALSE
15ABC5ABC5142128SWAP#VALUE!
16ABC6ABC6152130BOND30
17ABC7ABC7162132FUTURE#VALUE!
18
Sheet1
Cell Formulas
RangeFormula
F11:F17F11=C11*D11*E11
I11:I17I11=IF(OR($H11="BOND",$H11="EQUITY",$H11="WARRANT"),($C11*$D11)/$E11,IF(OR($H11="FUTURE",$H11="SWAP"),INDEX(DATA!T:T,MATCH($B11,DATA!AX:AX,0),IF($H11="OPTION", (($C11*$D11)/$E11)*100),IF($H11="PIPE",(($C11*($D11-10))/$E11)))))
 
Upvote 0
That is not the formula from post#2
 
Upvote 0
AHHH sorry its been a long day as you can tell

that was SOO helpful!!! really really appreciate it!!!!

can't thank you enough!!
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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