#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default remove numbers

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default remove numbers

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default remove numbers

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default remove numbers

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove page numbers Sadie Excel Discussion (Misc queries) 2 February 3rd 06 03:56 PM
remove last 2 numbers Noemi Excel Discussion (Misc queries) 2 December 7th 05 11:57 PM
Can I remove Row Numbers? Or have the Row Numbers start on the Ro Raymond Excel Discussion (Misc queries) 1 July 28th 05 11:22 AM
Remove Numbers from text David Excel Worksheet Functions 6 May 2nd 05 12:44 AM
How do i remove the hyphens between numbers without having to edi ian78 Excel Discussion (Misc queries) 2 April 12th 05 04:39 PM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"