![]() |
MS Excel Help
Let's see how diverse FT is @:-)
I have 2 columns of numbers, A and B... How do I tell Excel to plug the higher number of A and B into column C? |
Have the contents of C1 be "=IF(A1>B1,A1,B1)" and so on for A2,B2,C2....
|
Another question: How do I ask for the sum of (ColA) + (higher of Col B or C) + (higher of Col D or E)?
|
=(a1+if(b1>c1,b1,c1)+if(d1>e1,d1,e1))
|
Originally Posted by rar indeed
Have the contents of C1 be "=IF(A1>B1,A1,B1)" and so on for A2,B2,C2....
|
Originally Posted by IceTrojan
Many thanks! Trying to decipher what that translates to... is it "If A1 is greater than B1, then A1, otherwise B1"?
|
Originally Posted by rar indeed
Yeah, exactly. What the if() function does is it evaluates the first argument, let's say A1>B1, and if it's true, it outputs the value as the second argument, A1, and if it's false, it outputs the value as the third argument, B1.
|
Originally Posted by rar indeed
=(a1+if(b1>c1,b1,c1)+if(d1>e1,d1,e1))
|
Originally Posted by IceTrojan
The "+" didn't work... took a while, but realized that those have to be "," in the SUM argument. Still, thanks for leading me the right way.
|
Originally Posted by rar indeed
Odd, just tried it in Excel over here and it worked using +.
FT STRIKES AGAIN! :cool: |
That works, but here is also an easier way
=max(a1,b1) it returns the max of any of the arguments there, and you can go as many cells as you need to. You can do the same thing with the total clls. For more then two columns, the max command is much easier then nesting if then's. |
Originally Posted by cordelli
That works, but here is also an easier way
=max(a1,b1) it returns the max of any of the arguments there, and you can go as many cells as you need to. You can do the same thing with the total clls. For more then two columns, the max command is much easier then nesting if then's. Good to know for next time. :) |
Sorry, it's been a long busy day, first time on.
|
Originally Posted by IceTrojan
Another question: How do I ask for the sum of (ColA) + (higher of Col B or C) + (higher of Col D or E)?
=A1+max(B1,C1)+max(D1,E1) You can do some pretty fancy things with IF, nesting one inside another if you have to, but there's usually a simpler way to do simple things. |
Just a side note... an excellent Excel reference, www.MrExcel.com
|
| All times are GMT -6. The time now is 5:20 pm. |
This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.