Excel Formula to Sort Table Order: Novice “Part – Timer” Member Would appreciate some help form a Board Formula Master..

DocAElstein

Banned user
Joined
May 24, 2014
Messages
1,336
Excel Formula to Sort Table Order: Novice “Part – Timer” Member Would appreciate some help form a Board Formula Master..


. Hi,
. Novice “Part – Timer” Would appreciate some help form a Formula Master
. I have almost got there answering a Thread but have stretched myself “One formula too far..”
. Appreciate a last bit of help from one of the Formula Master

. As example:
. I should like one spreadsheet formula or two spreadsheet formulas that would work such that when I paste something of this form in A1:B10,

Using Excel 2007
-
A
B
C
1
Part No.Description.
2
AE001Cashews
3
AE001PeeNuts
4
AE008Pecanuss
5
AE007DgsNuts
6
AE002Wallnusse
7
AE007hdshg
8
AE009AlansNuts
9
AE012PeeNuts
10
AE011MixedNuts
11
DgsNtsFormula

.. I then get this:

Using Excel 2007
-
A
B
C
D
1
Part No.Description.
2
AE001CashewsAE001Cashews
3
AE001PeeNutsAE001PeeNuts
4
AE008PecanussAE002Wallnusse
5
AE007DgsNutsAE007DgsNuts
6
AE002WallnusseAE007hdshg
7
AE007hdshgAE008Pecanuss
8
AE009AlansNutsAE009AlansNuts
9
AE012PeeNutsAE011MixedNuts
10
AE011MixedNutsAE012PeeNuts
11
DgsNtsFormula

. I can think of many many ways to do this in Excel and Excel VBA. But I have got a long way with a more complicated total solution using a formula and would like a last try to finish the Formula version off. so

Important requirement is:-
. 1 ) Needs to be one “Normal” or “CSE” Formula, which would be placed in cell C2 and dragged down and across to fill the range C2 to D10
Or
One “normal” or “CSE” formula for C3 and another “normal” or “CSE” formula for C4, both of which would again be dragged down to fill the range C2 to D10

Preferred requirement is
. 2) Preferably formulas would be compatible with XL 2003.

Possible Mods to make it easier would be

. a) Headings can be removed or replaced with specific content – a mod in the practice I have sometimes found helpful

. b ) Modifying my data with a help column of the form B2=Right(A,2) so that my data for applying formula would be in B2:C10, and output then in D2:E10 , thus

Using Excel 2007
-
A
B
C
D
E
1
Part No.​
Description.​
2
AE001​
01​
Cashews​
01​
Cashews​
3
AE001​
01​
PeeNuts​
01​
PeeNuts​
4
AE008​
08​
Pecanuss​
02​
Wallnusse​
5
AE007​
07​
DgsNuts​
07​
DgsNuts​
6
AE002​
02​
Wallnusse​
07​
hdshg​
7
AE007​
07​
hdshg​
08​
Pecanuss​
8
AE009​
09​
AlansNuts​
09​
AlansNuts​
9
AE012​
12​
PeeNuts​
11​
MixedNuts​
10
AE011​
11​
MixedNuts​
12​
PeeNuts​
DgsNtsFormula

.. There is no rush as I am breaking my Nts just now getting the understandings and explanations of my complete Formulas a la
Post # 32
http://www.mrexcel.com/forum/excel-questions/818208-code-move-vertical-horizontal-4.html


. If someone could help I would be very grateful if they could also “open” up the formula and explain the workings as the OP has asked for explanations as Indeed I am always happy and keen to do anyway………..

Many Thanks
Alan.
 
Using Excel 2007
-
A
B
C
D
5
AE007​
DgsNuts​
=INDEX($A$2:$A$10, MATCH(SMALL(COUNTIF($A$2:$A$10, "<"&$A$2:$A$10), ROWS($C$1:C4)), COUNTIF($A$2:$A$10, "<"&$A$2:$A$10), 0))​
=INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=C5,ROW($A$2:$A$10)-ROW($A$2)+1),COUNTIF($C$2:C5,C5)))​
DgsNtsFormula

… There’s a couple of Dog’s Nuts formulas!!!!

Using Excel 2007
-
A
B
C
D
1
Part No.​
Description.​
2
AE001​
Cashews​
AE001​
Cashews​
3
AE001​
PeeNuts​
AE001​
PeeNuts​
4
AE008​
Pecanuss​
AE002​
Wallnusse​
5
AE007​
DgsNuts​
AE007​
DgsNuts​
6
AE002​
Wallnusse​
AE007​
hdshg​
7
AE007​
hdshg​
AE008​
Pecanuss​
8
AE009​
AlansNuts​
AE009​
AlansNuts​
DgsNtsFormula

……. I am so very grateful FormR…. ( and thanks on behalf the OPs that may finally now get the waited answers form me !!! (….Later when I have convinced myself I understand it fully…).. and that link…it is a good one,… it is breaking the formula down in a way that I thought only I ever did !!( like when I littered the test area a few months back with pretty colored HTML Maker made formulas and copies of what I got by select portions of formula and pressing the F9 key to see the "insides" of the arrays……)

. I scoured Forums and the internet and never hit that one. I thought it should have been a fairly basic requirement , I did get close a few times.. But …there is just so much info out there and as someone so experienced as Scott also was not aware of it, …..it just emphasizes again how valuable these forums are and how amazingly great and commendable it is that you all give so much time voluntarily giving the priceless worth and benefit of your combined knowledge and experience..
. Thanks again to you and anyone else that looked in.

Alan
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,216,058
Messages
6,128,538
Members
449,456
Latest member
SammMcCandless

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