Page 1
Page 1
Started By
Message

Excel Help: I don't even know what to call this...

Posted on 2/6/15 at 4:49 pm
Posted by finchmeister08
Member since Mar 2011
35587 posts
Posted on 2/6/15 at 4:49 pm
1. is the number i have.
2. is how i'm getting that number.

how do i make 1. divide by 2 if it's supposed to be split?

Posted by CE Tiger
Metairie
Member since Jan 2008
41584 posts
Posted on 2/6/15 at 4:55 pm to
nevermind thought you mean divide by the number 2

just make some extra columns and if, then that shite
This post was edited on 2/6/15 at 4:57 pm
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3789 posts
Posted on 2/6/15 at 5:01 pm to
Just nest another if.

ETA: Same assumption as CE

Or is that what you mean? Divide by the number 2?
This post was edited on 2/6/15 at 5:04 pm
Posted by finchmeister08
Member since Mar 2011
35587 posts
Posted on 2/6/15 at 5:20 pm to
i want it to divide by 2 as in split the cost in half.

eta: i've tried typing out different ways to get the formula to work, but it keeps giving me errors. what's is the formula?
This post was edited on 2/6/15 at 5:21 pm
Posted by CE Tiger
Metairie
Member since Jan 2008
41584 posts
Posted on 2/6/15 at 5:27 pm to
(if j2="yes",(I2/2),(I2))
Posted by Htown Tiger
Houston
Member since Sep 2005
2312 posts
Posted on 2/6/15 at 5:37 pm to
=if(G2>0, if(J2="Yes",(D2+E2+G2)/2,(D2+E2+G2)),if(J2="Yes",(D2+E2+F2)/2,(D2+E2+F2))

eta: I may be missing a closed parenthesis at the end...
This post was edited on 2/6/15 at 5:41 pm
Posted by finchmeister08
Member since Mar 2011
35587 posts
Posted on 2/6/15 at 5:54 pm to
holy crap that worked. thanks man. you were missing that last parentheses, but hell, i ain't even worried about it.
Posted by bigblake
Member since Jun 2011
2498 posts
Posted on 2/6/15 at 10:42 pm to
(no message)
This post was edited on 2/25/15 at 2:29 am
Posted by lynxcat
Member since Jan 2008
24122 posts
Posted on 2/8/15 at 3:02 pm to
Agreed. Personally, I would use an IF(AND... to make that equation simpler.
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 2/8/15 at 3:49 pm to
I don't see how AND is going to help you.

What you could do is just divide the original formula by:

IF(J2 = "yes", 2, 1)

This avoids the duplication of the (arbitrarily complex) true/false arguments as shown earlier but still lets you do it all in one formula. So the whole thing would be:

=IF(G2 > 0, D2 + E2 + G2, D2 + E2 + F2) / IF(J2 = "yes", 2, 1)

Better still?

=(D2 + E2 + IF(G2 > 0, G2, F2)) / IF(J2 = "yes", 2, 1)
This post was edited on 2/8/15 at 3:55 pm
Posted by Bestbank Tiger
Premium Member
Member since Jan 2005
70858 posts
Posted on 2/8/15 at 7:08 pm to
quote:

One of the easier excel questions on TD. Normally it's some complex offset/match function that people ask about.


Yeah, the tricky part is nesting the IF statements and getting the parenthesis right. You can get cross-eyed trying to get that code just right.
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3789 posts
Posted on 2/9/15 at 8:38 am to
quote:


=(D2 + E2 + IF(G2 > 0, G2, F2)) / IF(J2 = "yes", 2, 1)


This. Was coming in to say you can embed the IF statements into the formula to eliminate as much nesting.
Posted by lynxcat
Member since Jan 2008
24122 posts
Posted on 2/9/15 at 2:51 pm to
quote:

I don't see how AND is going to help you.

What you could do is just divide the original formula by:

IF(J2 = "yes", 2, 1)

This avoids the duplication of the (arbitrarily complex) true/false arguments as shown earlier but still lets you do it all in one formula. So the whole thing would be:

=IF(G2 > 0, D2 + E2 + G2, D2 + E2 + F2) / IF(J2 = "yes", 2, 1)

Better still?

=(D2 + E2 + IF(G2 > 0, G2, F2)) / IF(J2 = "yes", 2, 1)


Very nice. Yes, doe not look like AND helps like I thought it may. I was thinking of how you could do a combo of IF(AND(G2>0, J2="YES")... but I do not think it simplifies anything.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram