If statements

ak8c

New Member
Joined
May 31, 2011
Messages
2
I hope someone can help me with this. I am trying to actually put 2 different arguments into one cell. Here is the example; =if(SP.D<=0,LA.D<=0,0,385) and =if(SP.O<=0,LA.O<=0,0,685) how can i combine them to make one argument.

Any help is appreciated.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The above formulas have too many arguments so they are not valid.

If you want to print 1 when SP.D <= 0 AND LA.D <= 0 Then
print 0 SP.D > 0 AND LA.D <= 0 Then
print -1 SP.D <= 0 AND LA.D > 0 Then
Code:
=IF(SP.D <= 0, IF(LA.D <= 0, 1, -1), 0)
 
Upvote 0
Hi,

Welcome to the board.

For if statements we really need the cell references involved to provide an answer are the "SP.O" & the "SP.D" contained in the same cell/range.

If you can post a bit more detail, you will get a response, can you post any of your data??

Ian
 
Upvote 0
There are other operators such as
XOR
OR
AND

Type in MS Office help to use these functions.
 
Upvote 0
OK someone suggested that I give more info so here it goes.
What I am trying to do is the two arguments are valid separately, but I need them to return different values if false for the different cell names.

SP.D,LA.D,SP.O, and LA.O are the cell names. SP.D and LA.D need to = 385 if the value is not 0 and SP.O and LA.O needs to = 685 if not 0.

I hope I have explained what I am trying to do better. Please let me know if I have or just confused everyone more.
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

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