Started By
Message

Excel Help Please

Posted on 7/31/14 at 11:26 am
Posted by finchmeister08
Member since Mar 2011
35588 posts
Posted on 7/31/14 at 11:26 am
Hey guys,

I already have a division formula set up for "Total Cost" and "Total Tons" in the "Cost/Ton ($)". What i want it to do next is if the "Checked?" cells are "Yes", i want the "Cost/Ton ($)" cell to divide by two.



this is what i have for cell L3

Posted by GEAUXT
Member since Nov 2007
29213 posts
Posted on 7/31/14 at 11:28 am to
i would help, but it's not something i excel at
Posted by link
Member since Feb 2009
19867 posts
Posted on 7/31/14 at 11:29 am to
=IF(M3="YES",L3/2,"NO")
Posted by Pectus
Internet
Member since Apr 2010
67302 posts
Posted on 7/31/14 at 11:29 am to
nvm

link's got it
This post was edited on 7/31/14 at 11:30 am
Posted by Big Data
Scotch Fan
Member since Nov 2007
2553 posts
Posted on 7/31/14 at 11:29 am to
=if(M2="Yes",sum(L2/2),L2)
Posted by Leonard Threenette
Member since Jul 2014
874 posts
Posted on 7/31/14 at 11:30 am to
NVM
This post was edited on 7/31/14 at 11:31 am
Posted by ell_13
Member since Apr 2013
84943 posts
Posted on 7/31/14 at 11:31 am to
You can do an if statement inside of an if

=IF(M3="Yes", (J3/K3)/2, IF(K3=0,0,J3/K3))


ETA: It looks like the previous answers are referring to L column, which won't work since the cell is referencing itself.

ETA2: Or I just didn't understand where you wanted this answer put...
This post was edited on 7/31/14 at 11:34 am
Posted by Vegas Eddie
The Quad
Member since Dec 2013
5975 posts
Posted on 7/31/14 at 11:31 am to
Got an excel power user in the building
Posted by Quidam65
Q Continuum
Member since Jun 2010
19307 posts
Posted on 7/31/14 at 11:31 am to
Link has it right, but if the "Checked" cells are "No", what do you want the formula to do then? You have to have at least two conditions considered when using =IF.
This post was edited on 7/31/14 at 11:32 am
Posted by OneMoreTime
Florida Gulf Coast Fan
Member since Dec 2008
61834 posts
Posted on 7/31/14 at 11:33 am to
That looks right.
Posted by finchmeister08
Member since Mar 2011
35588 posts
Posted on 7/31/14 at 11:34 am to
if no, i just want it to divide the J3 and K3 cells.
Posted by ell_13
Member since Apr 2013
84943 posts
Posted on 7/31/14 at 11:35 am to
Check my reply. I think it's what you want.
Posted by link
Member since Feb 2009
19867 posts
Posted on 7/31/14 at 11:36 am to
checked cells don't have to say anything. the charged cells will remain "no" until the checked cells say "yes".
Posted by finchmeister08
Member since Mar 2011
35588 posts
Posted on 7/31/14 at 11:37 am to
quote:

Check my reply. I think it's what you want.

yep, that's what i wanted. thanks, man.
Posted by link
Member since Feb 2009
19867 posts
Posted on 7/31/14 at 11:38 am to
sure no problem a-hole
Posted by ell_13
Member since Apr 2013
84943 posts
Posted on 7/31/14 at 11:40 am to
he wasn't looking for what to put into the "Checked" column. It was for the L column.
Posted by Vandyrone
Nashville, TN
Member since Dec 2012
6953 posts
Posted on 7/31/14 at 11:42 am to
You need to switch around the 2 if statements if you want to avoid the Div/0 error when sold tons=0.

=IF(K3=0,0,IF(M3="Yes",(J3/K3)/2,J3/K3)) should do it.
Posted by finchmeister08
Member since Mar 2011
35588 posts
Posted on 7/31/14 at 11:42 am to
correct. i was wanting the $10 to be divided by 2 because this project was checked.
Posted by drewnbrla
The Pool is closed.
Member since Mar 2011
7839 posts
Posted on 7/31/14 at 11:43 am to
=IF(M3="No",(J3/K3),((J3/K3)/2))

ETA: What is your IF formula for M3? If the test function based off of results of L3?
This post was edited on 7/31/14 at 11:49 am
Posted by ell_13
Member since Apr 2013
84943 posts
Posted on 7/31/14 at 11:43 am to
That's probably safer, but I was assuming the "Yes" would only be there if there was actually a value in K.
first pageprev pagePage 1 of 2Next pagelast page

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