Sorting of Parameters according to their values

debapratim1

New Member
Joined
Nov 2, 2017
Messages
5
Hi All,

I am facing a problem while sorting a group of Objects according to their values. When multiple values entered are same, then Only the First Object is being returned thrice. While I want all the objects to be returned with same values. Please help.

Demo:

ObjectsAvg Value
OBJ 1121
OBJ 1121
OBJ 8125
OBJ 11126
OBJ 2133
OBJ 9135
OBJ 10136
OBJ 3154
OBJ 6172
OBJ 4177
OBJ 5181

<colgroup><col><col></colgroup><tbody>
</tbody>

Here Object 1 and Object 7 are having the same value but Object 1 is returned twice.

I have used the formula: =INDEX($C$5:$C$99,MATCH($H5,$D$5:$D$15,0))
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi ,

Try this :

=INDEX($C$5:$C$99 , SMALL(IF($D$5:$D$99 = $H5 , ROW($D$:$D$99) - MIN(ROW($D$:$D$99)) + 1) , COUNTIF($H$5:$H5 , $H5)))

This is an array formula , to be entered using CTRL SHIFT ENTER.

In case it does not work , please mention the worksheet references for your do $C$5:$C$99 , $D$5:$D$99 , $H5 contain ? Where will this formula be entered , and how will it be copied to other cells ?
 
Upvote 0
Hi ,

Try this :

=INDEX($C$5:$C$99 , SMALL(IF($D$5:$D$99 = $H5 , ROW($D$:$D$99) - MIN(ROW($D$:$D$99)) + 1) , COUNTIF($H$5:$H5 , $H5)))

This is an array formula , to be entered using CTRL SHIFT ENTER.

In case it does not work , please mention the worksheet references for your do $C$5:$C$99 , $D$5:$D$99 , $H5 contain ? Where will this formula be entered , and how will it be copied to other cells ?

Hi,
Thanks for your help. Can you please help me with the logic so that I can implement it accordingly? Actually, the data is a little complex and many parameters are there. By applying many formulae I got this table.

Again thanks for immense help.
 
Upvote 0
Hi ,

If you can describe how your data is laid out , I can explain.

First , you need to confirm whether the posted formula works.
 
Upvote 0
Exception%20Tool_Test%20-%20Excel_2017-11-02_15-29-14.png


I want the objects to be arranged according to its respective values. Please let me know if u have any questions.
 
Upvote 0
OBJ 1121OBJ 1121
OBJ 2133OBJ 1121
OBJ 3154OBJ 8125
OBJ 4177OBJ 11126
OBJ 5181OBJ 2133
OBJ 6172OBJ 9135
OBJ 7121OBJ 10136
OBJ 8125OBJ 3154
OBJ 9135OBJ 6172
OBJ 10136OBJ 4177
OBJ 11126OBJ 5181

<colgroup><col><col span="3"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hi ,

Please either describe how your data is laid out , with specific worksheet cell / range / row / column references , or use the tools available on this forum to display your worksheet layout , or upload your workbook to some public file sharing service and share the access link here.
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,930
Members
449,134
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top