Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
good day,
What I would like to do are, if I get 0,35,35 it should give 0 and 35. if I get 20,26,20 it should give 20 and 26 if I get 20,21,26 it should give 20,21 and 26 Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Are the 3 values (as 20, 21, 26) in 3 separate cells or in one?
"ekkeindoha" wrote: good day, What I would like to do are, if I get 0,35,35 it should give 0 and 35. if I get 20,26,20 it should give 20 and 26 if I get 20,21,26 it should give 20,21 and 26 Thanks. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
IF the 3 numbers are in separate cells (using row 3 for example) and you
actually want an output like "1, 2, 3" in a single cell then this following formula in some cell other than A3, B3 or C3 would do it (and yes, it's one huge, long, ugly formula) =IF(A3=MIN(A3:C3), A3,IF(B3=MIN(A3:C3), B3,IF(C3=MIN(A3:C3),C3,""))) &IF(OR(B3=MIN(A3:C3),B3=MAX(A3:C3)),"",IF(OR(B3=A3 ,B3=C3),"",", " & B3))& IF(C3=MAX(A3:C3),IF(C3=MIN(A3:C3),"",", " & C3),IF(B3=MAX(A3:C3),", " & B3,IF(A3=MAX(A3:C3),", " & A3,""))) "JLatham" wrote: Are the 3 values (as 20, 21, 26) in 3 separate cells or in one? "ekkeindoha" wrote: good day, What I would like to do are, if I get 0,35,35 it should give 0 and 35. if I get 20,26,20 it should give 20 and 26 if I get 20,21,26 it should give 20,21 and 26 Thanks. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another IF;
And I apologize for the long, harsh formulas - I'm not the best when it comes to these kinds of things and perhaps someone else will come up with a less complex solution. But... if the 3 numbers are in 3 cells, again using A3, B3 and C3 for them, then these formulas in another group of 3 (D3, E3 and F3 in these examples) would show the list as you want: in D3: =IF(A3=MIN(A3:C3), A3,IF(B3=MIN(A3:C3), B3,IF(C3=MIN(A3:C3),C3,""))) in E3: =IF(OR(B3=MIN(A3:C3),B3=MAX(A3:C3)),IF(C3=MAX(A3:C 3),IF(C3=MIN(A3:C3),"", C3),IF(B3=MAX(A3:C3),B3,IF(A3=MAX(A3:C3), A3,""))),IF(OR(B3=A3,B3=C3),"", B3)) and in F3: =IF(C3=MAX(A3:C3),IF(C3=MIN(A3:C3),"",IF(C3<E3,C3 ,"")),IF(B3=MAX(A3:C3),IF(B3=E3,"",B3),IF(A3=MAX(A 3:C3),IF(A3<E3,A3,"")))) "JLatham" wrote: Are the 3 values (as 20, 21, 26) in 3 separate cells or in one? "ekkeindoha" wrote: good day, What I would like to do are, if I get 0,35,35 it should give 0 and 35. if I get 20,26,20 it should give 20 and 26 if I get 20,21,26 it should give 20,21 and 26 Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
remove page numbers | Excel Discussion (Misc queries) | |||
remove last 2 numbers | Excel Discussion (Misc queries) | |||
Can I remove Row Numbers? Or have the Row Numbers start on the Ro | Excel Discussion (Misc queries) | |||
Remove Numbers from text | Excel Worksheet Functions | |||
How do i remove the hyphens between numbers without having to edi | Excel Discussion (Misc queries) |