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:


WellDataResultList
A01
0-A02
A021A02B01
A030-B04
A040-
B011B01
B020-
B030-
B041B04

<tbody>
</tbody>


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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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
Glad it helped, welcome to the forum :)
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,252
Members
451,757
Latest member
iours

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