Can't Sort after Formula then Copy/Paste Special/Value 
Author Message
 Can't Sort after Formula then Copy/Paste Special/Value

Concatenation leaves the cells in Text mode.  Paste Special Value will not
change them back to numbers.  Neither will formatting as Numeric.

In an empty cell enter the number 1 and then Copy.  Select your range of
"Numbers" and Paste Special>Multiply.  This will change them into True numbers
which then should sort properly.

HTH        Gord    XL97 SR2


Quote:
>I'm having trouble getting a good Sort.

>Situation: I Concatenate two cells that each have values from different
>Formulas [Example:
>J1=COUNTIF($B1:$G50,B51),K1=COUNTIF($B41:$G50,B51),L1=CONCATENATE($J1,$K1)]
>J2=COUNTIF($B2:$G51,C51),K2=COUNTIF($B42:$G51,C51),L2=CONCATENATE($J1,$K1)]
>,etc.   then Copy/Paste Special/Value into another column.

>Problem: I Sort but do not get a "true" Sort.

>Attempted Resolution: Change all the Cells to a Numeric Format, then do Sort.

>Results: Still no "true" Sort.

>Results Example:(Sort in Descending Order)

>                           50
>                           50
>                           41
>                           41
>                           40
>                           40
>                           32
>                           31
>                           30
>                           21
>                           20
>                           116  <--- should be at top of Sort since it has
>highest value
>                           114  <--- should be 2nd from top
>                           113  <--- should be 3rd from top
>                           102  <--- should be 4th from top
>                           10

>Any suggestions on how to fix this?



Sun, 02 Nov 2003 11:57:33 GMT  
 Can't Sort after Formula then Copy/Paste Special/Value
I'm having trouble getting a good Sort.

Situation: I Concatenate two cells that each have values from different
Formulas [Example:
J1=COUNTIF($B1:$G50,B51),K1=COUNTIF($B41:$G50,B51),L1=CONCATENATE($J1,$K1)]
J2=COUNTIF($B2:$G51,C51),K2=COUNTIF($B42:$G51,C51),L2=CONCATENATE($J1,$K1)]
,etc.   then Copy/Paste Special/Value into another column.

Problem: I Sort but do not get a "true" Sort.

Attempted Resolution: Change all the Cells to a Numeric Format, then do Sort.

Results: Still no "true" Sort.

Results Example:(Sort in Descending Order)

                           50
                           50
                           41
                           41
                           40
                           40
                           32
                           31
                           30
                           21
                           20
                           116  <--- should be at top of Sort since it has
highest value
                           114  <--- should be 2nd from top
                           113  <--- should be 3rd from top
                           102  <--- should be 4th from top
                           10

Any suggestions on how to fix this?



Sun, 02 Nov 2003 11:23:17 GMT  
 Can't Sort after Formula then Copy/Paste Special/Value

Quote:

> I'm having trouble getting a good Sort.

> Situation: I Concatenate two cells that each have values from different
> Formulas [Example:
> J1=COUNTIF($B1:$G50,B51),K1=COUNTIF($B41:$G50,B51),L1=CONCATENATE($J1,$K1)]
> J2=COUNTIF($B2:$G51,C51),K2=COUNTIF($B42:$G51,C51),L2=CONCATENATE($J1,$K1)]
> ,etc.   then Copy/Paste Special/Value into another column.

> Problem: I Sort but do not get a "true" Sort.

> Attempted Resolution: Change all the Cells to a Numeric Format, then do Sort.

> Results: Still no "true" Sort.

> Results Example:(Sort in Descending Order)

>                            50
>                            50
>                            41
>                            41
>                            40
>                            40
>                            32
>                            31
>                            30
>                            21
>                            20
>                            116  <--- should be at top of Sort since it has
> highest value
>                            114  <--- should be 2nd from top
>                            113  <--- should be 3rd from top
>                            102  <--- should be 4th from top
>                            10

> Any suggestions on how to fix this?

The numbers are still being STORED as text, no matter how you format
them. One way to convert them to numbers would be to add "*1" (times 1)
to your concatenate string - it will force XL to coerce the string to
numeric.

--

ROT13 encoding, decode for real mail



Sun, 02 Nov 2003 11:46:28 GMT  
 Can't Sort after Formula then Copy/Paste Special/Value
Good thinnin' J.E.  Then you don't have to deal with converting
after-the-fact.

Gord



Quote:


>> I'm having trouble getting a good Sort.

>> Situation: I Concatenate two cells that each have values from different
>> Formulas [Example:
>> J1=COUNTIF($B1:$G50,B51),K1=COUNTIF($B41:$G50,B51),L1=CONCATENATE($J1,$K1)]
>> J2=COUNTIF($B2:$G51,C51),K2=COUNTIF($B42:$G51,C51),L2=CONCATENATE($J1,$K1)]
>> ,etc.   then Copy/Paste Special/Value into another column.

>> Problem: I Sort but do not get a "true" Sort.

>> Attempted Resolution: Change all the Cells to a Numeric Format, then do Sort.

>> Results: Still no "true" Sort.

>> Results Example:(Sort in Descending Order)

>>                            50
>>                            50
>>                            41
>>                            41
>>                            40
>>                            40
>>                            32
>>                            31
>>                            30
>>                            21
>>                            20
>>                            116  <--- should be at top of Sort since it has
>> highest value
>>                            114  <--- should be 2nd from top
>>                            113  <--- should be 3rd from top
>>                            102  <--- should be 4th from top
>>                            10

>> Any suggestions on how to fix this?

>The numbers are still being STORED as text, no matter how you format
>them. One way to convert them to numbers would be to add "*1" (times 1)
>to your concatenate string - it will force XL to coerce the string to
>numeric.



Sun, 02 Nov 2003 13:05:02 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. copy/paste special, values and colours only excel 97

2. Copy and paste special values without switching sheets

3. vba-select multiple disconnected ranges - to copy paste special values in place

4. Copy & Paste-Special-Value

5. Can cut or copy Can Not select paste or paste special

6. Can't "Paste Special" - Values

7. Copy/Paste doesn't copy/paste Rowheight, ColumnWidth

8. Nested If's with sorting and auto copy/paste routine

9. Can't Copy & Paste Formulas

10. Using copy past Special Only Value when user put value in other cell


 
Powered by phpBB® Forum Software © phpBB Group