How To Order A Column Ignoring The Hyphens

Dec 24, 2008

I have a column that orders fine a-z except for the fact that it doesn't group words together with hyphens e.g.:

when I want it to be

View 10 Replies


Arrange Numbers In Ascending Order Ignoring Value 0

Dec 24, 2008

Here I have some samples of data from row A1:V1 that I want to arrange in ascending order through A4:V4.

For that Iím using the formula below in cell A4 across V4


Sample data

But I want to arrange them leaving zeros as shown below in A4:V4


View 9 Replies View Related

Re-Order Columns Based On Column Order Of Another Worksheet

Mar 1, 2008

I need a way to re-order an excel worksheets columns based on another worksheet.

Data is extracted from a database into excel however users can configure the columns in the initial system. to how they like This causes problems when the data is copied into an excel spreadsheet I have created as the data copied will not be in the same column order as is required.

How can i reorder the columns without physically having to cut and paste the columns to match?

I have attached a sample spreadsheet.

You will see on the spreadsheet that 'fixed columns' is the order that i require the data however 'variable columns' is not in the same order.

View 3 Replies View Related

Add A Column Of Numbers, But Ignoring Negatives

Apr 7, 2009

I'm trying to SUM a column, but it has a negative number in it. I want to sum the column but ignore the negative number.


so the total would be 66. How is this possible or would i have to use another formula instead of SUM.

View 5 Replies View Related

Fractions To Decimals With And Without Hyphens

Feb 12, 2014

I have fractions and whole numbers in a column as per the following.

E13 = 3/4
E15 = 5
E17 = 1-1/2

I can use the formula =SUBSTITUTE(E17,"-"," ")+0 which gives the correct result of 2.5 and also correct
for E15 with the answer 5.

But I'm stumped how to get it correct for E13 where it is less than whole number.

I can use the formula =IF(E13=0,0,("0 "&E11)+0) but that won't work for the remainder of the cells.

View 1 Replies View Related

Formatting Cells With Hyphens And 0s

Jul 16, 2014

I am having a problem with formatting a cell. I have several (into the hundreds) of items that are being inputed and I am looking for resolution with formatting. I have gotten pretty close but there are some kinks that I can't seem to work out.

The column that I am working on has numbers such as these (they aren't currently formatted)


these numbers are organized by 2 digit year (XX) a hyphen (-) and then a five digit number (XXXXX) hence XX-XXXXX.

My number already have the hyphen in them and the auto format has taken some of the numbers from XXXXX to XXX if the number started with two zeros.


Is there anyway to custom format the cell so that it will turn

This into this
14-123 14-00123

But leave this 14-12345 alone?

The closest I have gotten to an answer is this formula 00"-0"0000, but that messes up the larger numbers.

View 1 Replies View Related

Remove All Hyphens From A Cell

Aug 24, 2006

I am trying to take a list of part numbers that have an undefined number of hyphens in the part number, and remove the hyphens in order to use the VLOOKUP function.

Example part numbers are AA34-55A3-L, 444342-02, etc.

I tried searching for threads that helped on this subject but they all involved VBA, which I do not know how to use with Excel. I took VB senior year of high school and C for a semester in college, so I recognize the commands, but I have no idea how it's implemented.

Is there a [relatively simple] way to do this with Excel functions? If not, how would I implement this using VBA? I am currently using the 2003 edition.

View 3 Replies View Related

Sort Numbers Containing Hyphens

Nov 21, 2006

I am trying to sort a column of numbers, and some of the numbers have hyphens in them.

Excel will first sort the non-hyphenated numbers then it will sort the numbers with hyphens.

I would like to be able to sort it all together starting from the lowest first number to the last highest number. I have included an example.

View 4 Replies View Related

Average Column With Positive Or Negative Number - Ignoring Zero And Blanks

Dec 5, 2011

I have a column of numbers that are derived with a formula. I need to Average only the ones that either have a Positive or Negative number, ignoring blanks or zero.

I have tried Search but couldn't find anything that address both blank and zero.



Excel tables to the web : [URL] .......

With this small sample, the answer should be 3.35% according to Excel when I choose just those neg and pos cells.

View 9 Replies View Related

Converting Numbers Into Words With Hyphens?

Mar 3, 2014

I need a way to randomly generate a number( up to hundred trillion) in cell A1 and in cell B1 have the number appear in word form. Example: 129,114,023,131,453 will appear in A1 and in B1: one hundred twenty-nine trillion one hundred four-teen billion twenty-three million one hundred thirty-one thousands four hundred fifty-three The hyphens are important, commas between the numbers are not necessary. I know that for A1 I can use Randbetween() function to generate the numbers. The problem is generating the word form with the hyphens....

View 7 Replies View Related

Insert Hyphens In Between Multiple Values In Same Cell?

Sep 25, 2013

I've a set of 10-digit numbers within a cell, which need to custom formatted in a particular format.

i.e., '1234567890' should be custom formatted to '123-456-7890' (for this i'm using the custom format 000-000-0000)

However, when I have multiple 10-digit numbers like shown in the trix (click here), i'm not able to format them because they are all comma-separated.

Do LMK if there is a workaround

View 1 Replies View Related

Find Text Between Characters And Remove Hyphens

Sep 19, 2006

I need to make a macro that will find text between "o/" and "/", remove hyphens from the text it found, and then add it to the end of the current cell contents.
I know how to add to the end of current cell contents, but cannot figure out how to grab text between certain characters or replace hyphens and replace with spaces.

View 3 Replies View Related

Excel 2007 :: Copy Column Of Data To New Location Ignoring Blank Cells

Apr 30, 2010

I am trying to create a formula which will look at the data in columns A - I (50 rows) and copy this data to columns K - S but ignoring any blank cells. Thereby consolidating the data in the upper rows with no spaces.

View 10 Replies View Related

Create Sequence - Put Order In Second Column Of Item That Is In First Column

Dec 28, 2011

I need to put the order in the second column of the item that is in the first column.

In the last line item Computer is recorded for the third time.


View 2 Replies View Related

Reversing Column Order

Feb 16, 2007

I have a column of data I would like to have reversed on the fly (use functions and not vba). I have a function that works for the first cell but I can't seem to get it to work for the rest of the column when I choose edit/Fill Down.


GI_Norm_list = column O
GI_Norm_RevList = Column V

I copy =OFFSET(GI_Norm_list,MAX(ROW(GI_Norm_RevList))-ROW(),0) to cell V1 and it works fine. I choose edit/fill down and I get #REF for every other cell. I seem to be doing this wrong somehow.

View 5 Replies View Related

Reverse The Order Of Values In A Column Or Row?

Mar 28, 2009

Can I reverse the order of values in a column or row? [ie] first cell goes to last cell, last cell goes to first cell, middle cell stays where it is, etc. [and if so, how?].

View 5 Replies View Related

Sorting Column In Numerical Order

Jul 19, 2013

I have a column that has something like:


How do I make it to be the order of bigger number to smaller number?

I tried Data > sort Z-A, but then some of the numbers disappear and become "--"

View 2 Replies View Related

Change Order Of Data In Column?

Oct 27, 2013

I am trying to bulk upload some geo locations for my site, but the data I have is longtude first and latitude after, whereas the site accepts the data reverse, which means latitude, longitude.

that it's possible to change the order somehow.

Here is a example of how it looks:

"(12.595342677449292 55.66937339270993, 12.595097670457731 55.669239938648126)"

View 13 Replies View Related

Column Or Row Data In Reverse Order

Dec 30, 2011

Any shortcut method to convert the row or column data in reverse order . for eg.

from A1 to F1 data is mentioned as 1,2,3,4,5,6 now i need the result from A2 to F2 is 6,5,4,3,2,1. and in another case data in A column from A1 to A6 like 1,2,3,4,5,6 and result needed in B column B1 to B6 is 6,5,4,3,2,1

View 6 Replies View Related


Feb 20, 2007

Is there a way to reverse the order of data in a column - and maintain that same order but in reverse - so the last value in the column becomes the first, the second last value becomes the second, etc.

View 9 Replies View Related

Rank Column In Order Of Number Size?

Feb 17, 2013

i would like to rank a column so that when entering a number in a cell it will move up the column so that the greater number falls down the colum and the larger rises up the column






View 4 Replies View Related

Paste Column Values In Reverse Order

Apr 9, 2009

How do I transpose the values in a column of cells (so the value in the topmost cell in the old column becomes the value in the bottommost cell in a new column)?

View 6 Replies View Related

Sort A Column Of Data In Ascending Order

Sep 1, 2009

I am trying to sort a column of data in ascending order but I am not getting the results I expect. An example of the data held in the cells is:


When I sort it in ascending order it sorts like:

View 4 Replies View Related

Place Items In Alphabetical Order In A Column

Sep 6, 2005

How do you make a column automatically place items in alphabetical order?

Also, how do you make a column automatically put dates in order?

View 13 Replies View Related

Dynamic Macro - Column Order From List

Dec 9, 2011

Looking for a dynamic macro to reorder columns in a worksheet from a list of column headings Column A in another worksheet.

View 3 Replies View Related

Sorts Data By Column In Descending Order

Mar 26, 2012

I have a macro built that sorts my data by column in descending order depending on what column of information is selected from the drop down menu.

However I need the macro to sort column F in ascending order, and continue to sort the other colulmns in descending order when selected.

I can't get my macro to switch the sort from descending to ascending order for this one column. Looking to see if this is possible, and if so what macro formula I would use.

Here is what the macro i am currently using:

Sub ddSort_Click()
Dim iDdSortVal As Integer
Dim CurrSheet As String
Dim lFirstSectionRow As Long
Dim lLastSectionRow As Long
Dim strCol As String
Dim lRptHeaderRow As Long
Dim iRptMeasColumn As Integer

CurrSheet = ActiveSheet.Name

[Code] .......

View 1 Replies View Related

Auto Sort Column Data In Order?

Apr 8, 2012

Im am looking for a way of automatically sorting the data I have in column "C" (C2:C99 to be exact).

The data represents stock codes which are a mix of text and numbers, starting with 1 letter followed by numbers.

I would prefer something I can put in the sheet tab view code section, so that when any new data is added or altered it automatically sorts the stock codes in to alphabetical then numerical order



View 3 Replies View Related

Search And Return Values From Column In Order?

Feb 5, 2013

Ok, imagine this data (say column A). I want to have a cell that automatically searches for the least value (will always be the first number from top) and returns it in another cell. And then repeat the same for the second number from the top.

Beg Search STA




View 5 Replies View Related

Dynamic Range Based On Column Order

Jul 31, 2014

I want to refer to columns by column order (i.e. A=1, B=2, etc.)

I want to sum a range for dynamic columns and fixed widths (i.e. B2:B5 or F2:F5, etc).

i have C_N as variant and i am trying to write the formula but desperately getting syntax error.


Range("M5") = WorksheetFunction.Sum(Range(C_N& "2" : C_N&"5")))
i tried before to make another easier formula like
=Range("N5:N" & LastRow)

and it worked.

View 2 Replies View Related

Macro To Set The Order In Which Worksheets Should Be Printed (order Is Changing Daily)

Nov 29, 2008

I looked at threads realted to printing but wasn ot able to find something similar to what I need. So here is my problem:

I have a file with more than 100 worksheets (each sheet contains the invoice for one store). I would like to create a macro that would enable me to determine the order in which worksheets would be printed. How to do it?

Idea #1: the printing order would be based on the value in cell L1 that would contain the route number for each store. Stores belonging to the same delivery route will have the same value in L1. So, the macro should first print all sheets with 1 in cell L1, then print all sheets with 2 in cell L1 and so on...

Idea #2: Creating a separate data sheet with the list of all stores and their corresponding route number. Let's say info is contained in range A1:B150, where Column A contains the name of the stores and column B contains the route numbers. The macro then should look at that list to determine the printing order of the subsequent worksheets (the name of the store in column A would be the same as the name of the worksheet corresponding to that store).

Idea #3: sorting my 150 worksheets manually. It does not solve my problem fully, though, because stores do not always belong to the same route. So the manual sorting should be carried out daily and would not save time at all.

View 9 Replies View Related

Copyrights 2005-15, All rights reserved