techo help please - spredsheets ACBL member lists
#1
Posted 2012-August-14, 09:28
I have imported the list into an open office spreadsheet and all is fine except that I cannot
get the spreadsheet to sort in any sensible order using the 'last activity date' column.
The date is in the format mm/dd/yyyy so it sorts by month when I want year/month.
I can't seem to change the format of the date using the spreadsheet controls, I tried to change the
format of the date field when opening the file but this had no effect.
Can anyone help?
I know the 'last activity date' field is not entirely useful as it records last activity logged
which could be a change of address, payment rather than MP earned but I'm hoping it will be
a starting point to see which U members have stopped playing
#2
Posted 2012-August-14, 09:45
bed
#3
Posted 2012-August-14, 09:55
In NeoOffice, changing the format is pretty simple. Again, don't know about Open Office itself.
As for tv, screw it. You aren't missing anything. -- Ken Berg
Our ultimate goal on defense is to know by trick two or three everyone's hand at the table. -- Mike777
I have come to realise it is futile to expect or hope a regular club game will be run in accordance with the laws. -- Jillybean
#4
Posted 2012-August-14, 09:58
#5
Posted 2012-August-14, 10:02
#6
Posted 2012-August-14, 10:03
Does this make sense, or is it mumbo-jumbo?
edit: errr -- beaten to the punch by #3 and #4
"...we live off being battle-scarred veterans who manage to hate our opponents slightly more than we hate each other. -- Hamman, re: Wolff
#7
Posted 2012-August-14, 10:15
#8
Posted 2012-August-14, 10:33
jillybean, on 2012-August-14, 10:15, said:
Assume the data is in column A, starting at cell 1. Insert a column to the right of that, and then put this formula in cell B1.
=DATE(MID(A1,7,4),MID(A1,1,2),MID(A1,4,2))
Then copy that formula down the entire column.
At least that is how I would do it in Excel if the problem is as I suspect.
Another possibility is to try to force it to convert to a date. Again insert an extra column and simply type the formula:
=A1+0 [Where A1 is the the relevant cell reference].
Then see if that column can be formatted as a date.
As this is simpler, I would try this latter approach first.
#9
Posted 2012-August-14, 10:50
I get a #VALUE returned when I simply type =S1+0
I'm going out, will check on this later thanks!
#10
Posted 2012-August-14, 10:59
jillybean, on 2012-August-14, 10:50, said:
I get a #VALUE returned when I simply type =S1+0
I'm going out, will check on this later thanks!
If you get a #VALUE then OpenOffice is definitiely not interpreting the cell as a date (and perhaps doesn't like performing implicit conversions!).
Another possibility which springs to mind is that there are some leading or trailing spaces in the string. If in your extra column you try =len(S1) you will see how many characters are actually in the string. If it is more than 10 then you have some leading/trailing spaces. If so, try =TRIM(S1)+0 to see if it will implictily convert that. And if that doesn't work, use the longer formula but replace each reference to "S1" with "TRIM(S1)"
#11
Posted 2012-August-14, 13:08
#12
Posted 2012-August-14, 13:20
Another (if all of your data is mm/dd/yyyy, e.g., 01/01/1993 not 1/1/1993) is to grab the left 2, right 4, and middle 2 starting in position 4 and convert to date:
DATE( RIGHT(A1, 4), LEFT(A1, 2), MID(A1, 4, 2) )
[The DATE function takes (Y,M,D) as args]
edit: bah, this was in #8. I'm 0/2
"...we live off being battle-scarred veterans who manage to hate our opponents slightly more than we hate each other. -- Hamman, re: Wolff
#13
Posted 2012-August-14, 13:34
The simplest way is probably to create a new column with just the year in it. Let's say your data is in E2. Insert a column on the right (which will be F2) and put in the formula: RIGHT(e2,4), or maybe SUBSTRING(e2,7,4). Then copy that formula to all the other rows and sort on column F then column E.
#14
Posted 2012-August-14, 14:44
Thanks Nigel, and all.