Sorting Mixed Text And Numbers?

Jun 17, 2014

A column holds numbers and numbers with suffixes. The conventional sort function pushes the text values to the bottom. I need them sorted along with the numbers.

Microsoft's KB says to add a column formatted as text and then to RETYPE ALL OF THE VALUES! Splendid. But my file has hundreds of records. Re-typing all of them would be a major pain. On the other hand, if I had started typing while trying to find a way to sort the darn thing I might be done by now.

Here's what I know so far: If we create a column, format it as text and then populate with 1, 2, 3, 4, 1a, 2a, 3a, 4a, etc. it will sort exactly correct (1, 1a, 2, 2a...) after selecting the "sort numbers and numbers stored as text separately" when the Sort Warning appears. If you try to create the sample I typed here, you need to be careful that the area is formatted as text BEFORE entering the text. You apparently cannot change the format of an existing column of data to Text or if you do it does not have the desired effect when sorting. It might be useful to know if this can be done too. MS suggests not.

View 11 Replies


ADVERTISEMENT

Sorting Mixed Content - Numbers And Words

Mar 28, 2014

I have a worksheet with a row of mixed cells near the top. By "mixed", I mean some cells have only numeric data (numeric-cells) and some have only words (word-cells).

GOAL: I want to sort the columns to the following order:

First all the columns with only numeric-cells in the mixed row, with those columns sorted in DESCENDING numeric order of the numeric-cells in the mixed row; followed by the columns with only word-cells in the mixed row sorted by ASCENDING alphabetic order.

So far all I have been able to accomplish is:

First all the columns with only numeric-cells in the mixed row, with those columns sorted in ASCENDING numeric order of the numeric-cells in the mixed row; followed by the columns with only word-cells in the mixed row sorted by ASCENDING alphabetic order. This was accomplished by a simple sort using ASCENDING order on the mixed row.

OR

First all the columns with only word-cells in the mixed row, with those columns sorted in DESCENDING alphabetic order of the word-cells in the mixed row; followed by the columns with only numeric-cells in the mixed row sorted by DESCENDING numeric order. This was accomplished by a simple sort using DESCENDING order on the mixed row.

This may sound as confusing to you as it does to me, so I have attached an example file showing hypothetical Input Data and the Desired Result.

I did the example file in multiple steps, but that's too painful in the general case where calculations determine what is in which cell in the mixed row. All data are calculated, even the word-cell data AND so dependent on other data, and the columns in the mixed row that are word-cells and those that are numeric cells don't remain the same.

Eventually I'd like to do this with a macro, so if VBA has some power to do this that EXCEL commands don't, then that's fine.

I could probably live with the final result as numeric-cell columns sorted in DESCENDING order followed by word-cell columns sorted in DESCENDING order, but I haven't even been able to accomplish that AND it's not quite the goal.

View 3 Replies View Related

Compare 2 Columns For Numbers In Mixed Text & Numbers

May 3, 2006

I need to compare two colums by number decription for example m344 in one column and fsh344-1 in another. All I want to match is 344. In column a I want to indcate the match by placing an X by each match. View my attachment for reference. I don't know if it makes a difference but the columns are centered in my original spreadsheet.

View 8 Replies View Related

Hard Sorting Process / Dates And Supplier Code Mixed In Same Column?

Jan 22, 2013

I have an auto generated report that is exported into .csv, my dilemma is that it sorts both the account code and the date in the same column, like this:

9884A B Gerrish Ltd œ 577.270577.270
30/09/201231/10/20121865518655277.010277.01MAL/553260
30/09/201231/10/20121884218842264.260264.26MAL/553259
30/11/201231/12/2012195541955436036MEL/549200

so "9884" and "30/09/2012" are in the same column.

Some how i need to turn this information to say the below three invoices are for account 9884, into more of a usuable data like:

9884 A B Gerrish Ltd 30/09/2012 etc etc.

Obviously through out the document this repeats for each account, upto some 1000 accounts.

jas.xlsx‎

View 11 Replies View Related

How To Sort Numbers With Letter Prefixes And Letters Mixed With Numbers

Jan 21, 2012

Using the following data

R10-12128
R11-12x12x8
R11-12x12x8
R1-12x12x8
R1-12x12x8
R12-12x12x8
R14-12x12x8
R16-12x12x8
R18-12x12x8
R2-12x12x8

I want it to sort like this:

R1-12x12x8
R1-12x12x8
R2-12x12x8
R10-12128
R11-12x12x8
R11-12x12x8
R12-12x12x8
R14-12x12x8
R16-12x12x8
R18-12x12x8

What is the formula to achieve this?

View 5 Replies View Related

Sorting Numbers With Text

Nov 13, 2008

I have a list of 2,000 plus numbers and the list contains numbers and text. When I sort or filter, the only option is sort A to Z (or Z to A), but the result is all of the numbers are sorted, then the numbers with letters are sorted. How can I sort both? I attached a excel example of what I am looking for.

View 4 Replies View Related

Sorting Text Numbers

Dec 15, 2006

I have numbers like this and their sorting wrong. I want to sort in decending order by last digit to the right.

How it's sorting now: (sorting by first number sequence)

12/31/05a
12/31/05
11/01/06
10/31/06

I would like it to sort like this:

11/01/06
10/31/06
12/31/05a
12/31/05

These WERE text numbers that were formulated to read like dates. Is there any way to munipulate how to sort? I'm just looking to sort it like it was a date. I get text files in formats like this:

09062006 and I formulated them to read 09/06/06 like it would be a date.

View 9 Replies View Related

Move Numbers Out From Mixed To New Column

Oct 20, 2011

Just wanted to do some work onto the form below, move the numbers out from the mixed colum and put in a new colum, then delete all the rows if empty in "style":

The original form is like below;

StyleGarmentFabric1001

BS01Fugitive Backpack600D polyester1002BS05Cool Shuttle600D polyester1003BS07Cool Runner Backpack600D polyester1014BS13Xtreme Sports Bag600D polyester2018BS21Stealth Backpack600D polyester3008BS28Gear Sports Bag600D polyester3102BS40Recon Sports Bag600D polyester

What i need is like below:

Code

Style
Garment
Fabric

1001BS01Fugitive Backpack600D polyester1002BS05Cool Shuttle600D polyester1003BS07Cool Runner Backpack600D polyester1014BS13Xtreme Sports Bag600D polyester2018BS21Stealth Backpack600D polyester3008BS28Gear Sports Bag600D polyester3102BS40

Recon Sports Bag600D polyester... ...... ...

step by step:

stpe 1: move numbers out to a new "Code" colum;
step 2: delete the row if empty in "Style"

View 4 Replies View Related

To Sort A Column With Mixed Letters And Numbers

Aug 12, 2007

I am attempting to sort a column with mixed letters and numbers. However, I have been totally unable to get them to sort the way I want them.

What I have is:

K600
K2
K2A
K2B
K159
K159A
K159B
K1
K1A
K1B
K428
K8
K8A
K8B

etc, etc. The prefix letter is only a K - no other letters. However, the suffix letters can be anything from A to E (at the present time)

I need to sort them numberically from K1 in descending order ie:

K1
K1A
K1B
K2
K3
K4
K4A
K4B
etc etc etc

View 9 Replies View Related

Extracting Series Of Mixed Letters And Numbers From String

Oct 9, 2013

I have got to extract a series of mixed letters & numbers from a cell. The format of the data i need to extract is always [Letter][Letter][Number][Letter][Letter]][Letter][Number][Number]. The problem I've got is the notes field is not in a standard format as it can be anywhere in the cell.

The table below shows the notes cell & the Data I require.

Notes
Required Data
Fault number AB1ABC12 is complete
AB1ABC12
BC2ABC12 status is unknown
BC2ABC12
pending job ws1abc12
ws1abc12

View 6 Replies View Related

Return Text From A Mixed Text/value 3d Array Result

Dec 2, 2009

I've been searching the forums and web trying to figure out how to extract a text value from a 3D array result, to no avail or well beyond my understanding.

I've attached a file which shows an abbreviated version of the search (from the original 49 col x 400 row, which shows the name to date array which can return a sum.

What I'm looking to do is identify within this array result if there has been a text entry, and return the text as opposed to a sum of the remaining values. This is essentially a double check to make certain that there aren't hours scheduled when other events such as vac/loa/etc are also booked.

View 10 Replies View Related

Remove Just Text From Cells That Contain Mixed Text

Jul 12, 2002

I have a column in which the cells contain values such as "012321 BGH YRK". Is there any way you know of that I can remove just the text from every cell and keep the numeric values? A mass operation because there are literally hundreds of these cells. I am using Excel 2001.

View 9 Replies View Related

Spliting A Mixed Text

Sep 23, 2008

I have a mixed string (i.e. containig character and numbers.... but the format is same PAR1 or PAMR1 or PR10 it can be 4 characters or five) i want a formula or a macro which splits it in two parts one containing characters and the other one containing nos.

View 9 Replies View Related

Counting With Text And Symbols Mixed In

May 8, 2009

Counting with text and symbols mixed in. This is what I'm wanting to do:

For example:

View 5 Replies View Related

IF Text In A Cell Is UPPER Case Or Mixed

Jan 28, 2014

I'm trying to formulate:

If it's mixed case, copy it. If it's all lower case or ALL CAPS, then make it PROPER.

i.e., if 'bananas' is in A1 and B2 says =PROPER(A2), then B2 says Bananas, because PROPER capitalises the first letter of each word.

I would like to do

[Code] .....

View 5 Replies View Related

Data Validation For Mixed Numeric And Text With Formula Only?

Feb 22, 2012

Is it possible to validate a string with both numbers and text with a formula using data validation? (I don't want to use a User Defined Function)

in Column C, Starting in cell C2 I have a 12 character string of six numbers, four letters, and two numbers. like this:

280838ZNOV11

is it possible to use a Custom Data Validation formula to ensure the user follows this format?

View 9 Replies View Related

Excel 2010 :: Removing Text From Mixed Font Size Cells

Aug 4, 2012

I have text of size 14 and 18 mixed in cells in a column. Cells are font size 18 or mixed with both 14 and 18 size text. I need to sort out the text with one column of size 14 and another of 18 only. I am thinking of copying and pasting the column twice and run a macro in first column to remove the text of size 14, and another macro to delete text of size 18 in second column. I need the leftover text to be in same rows.

I tried everywhere and couldn't find a macro for mixed text cells. I am using Microsoft Excel 2010.

View 9 Replies View Related

Sorting Numbers Like 1.2.2.3, 12.4.2.3 Etc

Aug 26, 2009

I should sort numbers in ascending order from left to right, but the numbers sort only from right to left.

This is what I want:

1.3.2.2
1.4.1
2.1.1.1.1
3.2.3.12
3.3.1

And this is how it goes:

2.1.1.1.1
3.3.1
1.4.1
1.3.2.2
3.2.3.12

There are also numbers that have letter at the end (1.2.3a), and the cell format is text.

View 10 Replies View Related

Sorting The Numbers

Feb 25, 2009

I have three columns that are added together. Depending on where I need them to go, I need three options. For example, E6,E7,&E8 are added up, on E9, I need to be able to direct it to "A @ E10", "B @ E11", or "C @ E12"

View 3 Replies View Related

Sorting A Range Of Numbers?

May 28, 2014

I'm attempting to create a formula that'll sort a range of numbers and then return the corresponding values based on a specific place within the sorted range.

In this case, I'd like the following numbers sorted smallest to largest:

15, 9, 11, 19, 22, 17, 24, 19, 17, 24

The result would return something like:

9, 11, 15, 17, 17, 19, 19, 22, 24, 24

Then I'd like it to return the value based off of the formula in cell U13 & U14. In this case, it'd return the value in the 2nd and the 9th position (bolded above). I tried to use INDEX(), but it's returning the values in the unsorted list. I'd like it to return values from a sorted list. Also, I'm trying to solve this using a formula (not Sort & Filter) or VBA.

View 1 Replies View Related

Sorting A Table By Numbers

Oct 15, 2008

I have managed to produce a table which uses formulas to calculate the amount of 'points' someone/a team has accumulated over a period of time however it seems that for some reason or another I cannot sort the table into order of 'who has the most points'

PosPlayerPlayedWonDrawLostPoints
1stDean120939
2ndJaymo1239018
3rdMacca1229115
4thRoss1219212

above is the final standings but as you can see the 'sort' function isnt working, and if i do any other sort the name of the person and the points no longer correspond... i.e. it ends up putting the names in alphabetical order and leaving all other columns as they currently are, or it changes the points column, leaving the names in the same place...

View 14 Replies View Related

Sorting Numbers With #div/0! In Column

Oct 20, 2009

I have some numbers in a column which due to other cells not yet being filled in are returning a supressed #div/0! error. This is fine, but when i go to sort the column it puts them in the wrong order. I would like to record a macro, and assign it to the column header in order to sort the column.

View 5 Replies View Related

Numbers Not Sorting Correctly

Jul 31, 2013

I have three columns expressing death dates (date, month, year). The months and dates are finally sorting correctly within the same year, but I have it set to sort by year first.

The column starts off fine with 1860, goes up to 2013, then starts back at 1884 and goes back up to 2009. I can't find any difference between the two groups: there are some of the same years represented, there are blank month and date cells in both. I have a worksheet with birth dates that sorted fine; the only difference I can find is that birth dates only go up to 1997, but the column is formatted as General, so the turn of the century shouldn't be a problem.

I've tried highlighting the whole thing before sorting as well as selecting one cell as usual. I've also tried formatting the column as Text. I can't think of anything else.

View 14 Replies View Related

Sorting Repeat Numbers

Apr 14, 2008

I'm trying to develop this formula for days now.
how can I not list repeated nums from a array example:

675 863 765 982 856

no repeat nums: 675, 863, 982, 856

as 765 was repeat of 675 it should not be used.
keep in mind same goes of 3-4-5... repeats,

View 10 Replies View Related

Sorting Accoiunt Numbers

Nov 15, 2006

I have a spreadsheet with three Columns. Column A contains Account numbers that are both Numeric & AlphaNumeric for eg 3000, 3001A, 4001, 4501D.

I need VBA code that will forst sort the Numeric accounts 3000, 3001, 3002 etc and then then AlphaNumeric Codes 3001A, 3002B, 4501D etc

View 9 Replies View Related

Sorting Names By Other Column Of Numbers

Aug 3, 2014

I've question in sorting: I've 2 column in one datasheet. one contain value of numbers and the other contain names of employes. i want to sort the name of the emplyes by the values that is on the first column.

Anther question is how to make it dynamically so ill not sorting it every time that the values of the first column is changing.

View 1 Replies View Related

Sorting Numbers From Smallest To Largest?

May 10, 2013

There must be something I'm doing wrong, because I have a list of numbers and when I select Data --> Sort --> Column G, I am not given the option of sorting "From smallest to largest". Only from "A to Z" or viceversa.

View 3 Replies View Related

Sorting List Of Numbers - Some Are Larger Than Others

Jun 7, 2013

I'm having some problems sorting a list of numbers that some are larger than others, but it would sort it by how large the number is in regards to 123 or 45... 45 would go first instead of 123... I tried to change the column to numbers but it still won't work. as well as in the custom sort section. I'll try to upload a sample...

View 11 Replies View Related

Sorting Numbers Of Varying Lengths

Aug 15, 2012

I am trying to do a VLOOKUP using a list based on our Part numbers in Excel 2007. When I do a normal sort it groups the numbers 1 thru 9 by the number of digits, giving me multiple list of 1 thru 9. When I do my lookup it will not find the shorter numbers. Is there some way to sort these Part numbers in order regardless of the number of digits?

View 2 Replies View Related

Updating / Sorting Numbers By (Newness)

May 26, 2014

I currently have a six column table that I would like to:

1. Take in an input in the form of a number and a letter in two separate columns. (Most Recent and Second Most Recent are purely output)

2. Sort the inputs from most recent to least recent - only store the most recent two.

3. An update only occurs if Current differs from Most Recent i.e. no repeat values.

Example:

Begin with a six column table (E/O stands for even or odd).

Current
E/O
Most Recent
E/O
Second Most Recent
E/O

[code]....

Place a number/letter in the current section - which most recent also takes the value of.

Current
E/O
Most Recent
E/O
Second Most Recent
E/O

[code]....

Update the value of current - this moves 10/E to the Second Most Recent entry and replaces Most Recent with the new value.

Current
E/O
Most Recent
E/O
Second Most Recent
E/O

[code]....

Update the value once more - understand the process.

Current
E/O
Most Recent
E/O
Second Most Recent
E/O

[code]....

I tried this with IF statements but the circular referencing makes this seem approach seem difficult.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved