ConcatenatingTwo Formulas

BobA

Board Regular
Joined
Nov 16, 2008
Messages
63
Office Version
  1. 2010
Platform
  1. Windows
PHP:
This formula works:

if(I57>0,if(D59=I57,"p"),if(I57<0,if(D59=abs(I57),"p")

This formula also works:

if(I57<0,if(D59>abs(I57),"w","l"),if(I57>0,if(I57</d59,"l","w")))))))
</d59,"l","w")]
</d59,"l","w")
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I'll try again:

This formula works:

if(I57>0,if(D59=I57,"p"),if(I57<0,if(D59=abs(I57),"p")

This formula also works:

if(I57<0,if(D59>abs(I57),"w","l"),if(I57>0,if(I57< D59,"l","w")


But when I try to combine the two formulas into one I get a false reading for the last part of the formula. [if(I57>0,if(I57< D59,"l","w")]

if(D57="","",if(I57>0,if(D59=I57,"p"),if(I57<0,if(D59=abs(I57),"p"),if(I57<0,if(D59>abs(I57),"w","l"),if(I57>0,if(I57< D59,"l","w")))))))

Any help would be appreciated on how to combine these two formulas into one working formula.
 
Last edited by a moderator:
Upvote 0
When I try to post the question and formulas it cuts everything off.
 
Upvote 0
When I try to post the question and formulas it cuts everything off.
I have fixed it for you. See post 4 for how you can do it (though you really only need a space after a < sign and even then only if the next character is a letter).
 
Last edited:
Upvote 0
I doubt anyone could have helped me without a reference to what I am doing, but I solved it by shortening the original formula from this:

=if(I57 > 0,if(D59=I57,"p"),if(I57 < 0,if(D59=abs(I57),"p"),if(I57 < 0,if(D59>abs(I57),"w","l"),if(I57 > 0,if(I57 < D59,"l","w")))))))

To this:

=if(abs(I57)=D59,"p",if(I57 < 0,if(D59 > abs(I57),"w","l"),if(I57 > 0,if(I57 < D59,"l","w"))))))


It's just football scores. The formula tells me whether I won or lost vis-a-vis the spread and final score. However, I forgot to account for pushes, and now it works for pushes as well.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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