Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I changed a field type in Access from Number to Text to allow 1a, 1b, etc.
and now when the data is imported into my Excel workbooks, the order is still sorting as text (1, 10, 100, 101, 2, 20, etc.). Any thought son how to get it to sort correctly now? Thanks! |
#2
![]() |
|||
|
|||
![]()
Karl,
IN an adjacent column add this formula =--A1 copy down and then sort by the helper column. -- HTH RP (remove nothere from the email address if mailing direct) "Karl Burrows" wrote in message ... I changed a field type in Access from Number to Text to allow 1a, 1b, etc. and now when the data is imported into my Excel workbooks, the order is still sorting as text (1, 10, 100, 101, 2, 20, etc.). Any thought son how to get it to sort correctly now? Thanks! |
#3
![]() |
|||
|
|||
![]()
Anything that has a text value (1a, 1b, 1c), gives me a #VALUE error and it
still wants to sort as a text value. Any other suggestions? Thanks! "Bob Phillips" wrote in message ... Karl, IN an adjacent column add this formula =--A1 copy down and then sort by the helper column. -- HTH RP (remove nothere from the email address if mailing direct) "Karl Burrows" wrote in message ... I changed a field type in Access from Number to Text to allow 1a, 1b, etc. and now when the data is imported into my Excel workbooks, the order is still sorting as text (1, 10, 100, 101, 2, 20, etc.). Any thought son how to get it to sort correctly now? Thanks! |
#4
![]() |
|||
|
|||
![]()
If you separate your values into two helper cells--one for the numeric portion
and one for the text portion, you can sort your data based on those two helper columns. Depending on what your data looks like, you could use Data|Text to columns or formulas to parse those values. You may want to post a representative sample of what your data looks like. Karl Burrows wrote: Anything that has a text value (1a, 1b, 1c), gives me a #VALUE error and it still wants to sort as a text value. Any other suggestions? Thanks! "Bob Phillips" wrote in message ... Karl, IN an adjacent column add this formula =--A1 copy down and then sort by the helper column. -- HTH RP (remove nothere from the email address if mailing direct) "Karl Burrows" wrote in message ... I changed a field type in Access from Number to Text to allow 1a, 1b, etc. and now when the data is imported into my Excel workbooks, the order is still sorting as text (1, 10, 100, 101, 2, 20, etc.). Any thought son how to get it to sort correctly now? Thanks! -- Dave Peterson |
#5
![]() |
|||
|
|||
![]()
Here is what I ended up doing:
Added a function to my VBA module: Function CellValue(c) As Double CellValue = Val(c) End FunctionThen created a column using =CellValue(A1) and copied down for all the values in the column and then sorted by this row first, then the original column of data.This seemed to work for what I wanted. Thanks for your help!!! "Dave Peterson" wrote in message ... If you separate your values into two helper cells--one for the numeric portion and one for the text portion, you can sort your data based on those two helper columns. Depending on what your data looks like, you could use Data|Text to columns or formulas to parse those values. You may want to post a representative sample of what your data looks like. Karl Burrows wrote: Anything that has a text value (1a, 1b, 1c), gives me a #VALUE error and it still wants to sort as a text value. Any other suggestions? Thanks! "Bob Phillips" wrote in message ... Karl, IN an adjacent column add this formula =--A1 copy down and then sort by the helper column. -- HTH RP (remove nothere from the email address if mailing direct) "Karl Burrows" wrote in message ... I changed a field type in Access from Number to Text to allow 1a, 1b, etc. and now when the data is imported into my Excel workbooks, the order is still sorting as text (1, 10, 100, 101, 2, 20, etc.). Any thought son how to get it to sort correctly now? Thanks! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign numerical values to text codes | Excel Worksheet Functions | |||
Count how many different text values in an array. | Excel Worksheet Functions | |||
Need to sort dates before 1900 in proper order | Excel Discussion (Misc queries) | |||
Graph values in ascending order | Excel Discussion (Misc queries) | |||
text and values combined in one cel | Excel Discussion (Misc queries) |