Automatic resorting list with out VBA?

St Jimmy

New Member
Joined
Oct 29, 2015
Messages
37
Hi guys,

I am trying to automatically resort a list of items based on some data result elsewhere in the book and I would like to avoid using VBA or a macro.
For instance:


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Well[/TD]
[TD]Data[/TD]
[TD]Result[/TD]
[TD]List[/TD]
[/TR]
[TR]
[TD]A01
[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD]A02[/TD]
[/TR]
[TR]
[TD]A02[/TD]
[TD]1[/TD]
[TD]A02[/TD]
[TD]B01[/TD]
[/TR]
[TR]
[TD]A03[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD]B04[/TD]
[/TR]
[TR]
[TD]A04[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B01[/TD]
[TD]1[/TD]
[TD]B01[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B03[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B04[/TD]
[TD]1[/TD]
[TD]B04[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Well is a string identifier
Data is determined elsewhere in the book, its a boolean type
Result is simply detecting whether or not the Data is true and referencing the well
List is the part Im stuck on, I have 2400 identifiers but only 20 or 40 hits (data with 1 value). I want the list to ignore the results that are "-" and line up the results if they have a value into a compact list in the result column. I am making a template that will be shared by a group of people so I would like to avoid macros and VBA if possible (else this would be a piece of cake).

Thank you for your time and help! All thoughts are greatly appreciated :)

Kyle

ps I have an attachment in excel but the board wont let me post it?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi, this assumes you have XL2010 or higher. It uses the "data" column versus the "result" column to determine which rows should be returned. The formula in F1 is required to aid performance. The formula in H2 can be copied down as far as might be required.


Excel 2012
ABCDEFGH
1WellDataResultCount:3List
2A010-A02
3A021A02B01
4A030-B04
5A040-
6B011B01
7B020-
8B030-
9B041B04
Sheet1
Cell Formulas
RangeFormula
F1=COUNTIF(B:B,1)
H2=IF(ROWS($H$2:H2)>$F$1,"",INDEX($A$2:$A$2400,AGGREGATE(15,6,((ROW($A$2:$A$2400)-ROW($A$2)+1)/($B$2:$B$2400=1)),ROWS($H$2:$H2))))
 
Upvote 0
WOW! Thank you so much! Works beautifully, the only thing more impressive than the formula is that it took you less than 15 minutes to generate!
Very much obliged :):):):)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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