#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sorting and Formulas

I am trying to sort via auto filter. In column A, I have a part description,
in column B I have a COUNTIFS function which counts the instances of Column A
that are subject to some criteria. Whenever I sort in decending order by
column B, with this data:

T 5
U 4
V 6
W 3
X 2
Y 1

it sorts column A by column B, but then it updates column B to a new number
that is associated to the row where the item in column A used to be, like
this:

V 5 (what W used to be, in the formula it references B2)
T 4 (what U used to be, in the formula it references B3)
U 6 (what V used to be, in the formula it references B1)
W 3
X 2
Y 1

How can I get the formula to move with the data in column A? I have tried
using different combinations of $, and none of them worked. I have to do
this multiple times and I would rather not use the paste special, values
function.

Please help!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Sorting and Formulas

You will need to recreate the data in sorted form using formulas. Say your
codes and scores are in the range F6 to G11

List the codes in rankng order:
=INDEX($F$6:$F$11,MATCH(LARGE($G$6:$G$11,ROWS($1:1 )),$G$6:$G$11,0))

and copy down six rows.

lookup the scores
=VLOOKUP(I6,$F$6:$G$11,2,0)

and copy down six rows

HTH
Peter

"Sean12" wrote:

I am trying to sort via auto filter. In column A, I have a part description,
in column B I have a COUNTIFS function which counts the instances of Column A
that are subject to some criteria. Whenever I sort in decending order by
column B, with this data:

T 5
U 4
V 6
W 3
X 2
Y 1

it sorts column A by column B, but then it updates column B to a new number
that is associated to the row where the item in column A used to be, like
this:

V 5 (what W used to be, in the formula it references B2)
T 4 (what U used to be, in the formula it references B3)
U 6 (what V used to be, in the formula it references B1)
W 3
X 2
Y 1

How can I get the formula to move with the data in column A? I have tried
using different combinations of $, and none of them worked. I have to do
this multiple times and I would rather not use the paste special, values
function.

Please help!!!

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
Sorting Values Without Sorting Formulas SBX Excel Discussion (Misc queries) 2 April 12th 09 11:17 PM
Sorting Formulas Charess Excel Discussion (Misc queries) 1 July 9th 08 09:54 PM
Sorting with formulas GreenAce New Users to Excel 3 April 7th 08 04:21 AM
sorting formulas with cells Jill33 Excel Worksheet Functions 4 December 27th 07 08:53 PM
Sorting with formulas Crowraine Excel Discussion (Misc queries) 5 February 8th 05 04:43 PM


All times are GMT +1. The time now is 04:54 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"