In the NICAR-L forum, Jessica Glazer added a post on January
14 regarding formatting dates before 1900 in Excel.
Glazer wanted to find the best way to uniformly format the
dates she had in her data set.
There were a few suggestions that were given and further
explained throughout this thread.
The most common excel tip that was given to Glazer was to
use a text field and the yyyy-mm-dd format. This format is said to have the
benefit of sorting correctly as text and it ends up being chronological.
I learned that because it’s delimited, it would be easy to
do date arithmetic. The downfall from doing this is the loss of automatic
validation of a date field. This means that the one who is looking through the
data set must find mistakes such as “1799-02-31” on their own.
In this thread, Thomas Wilburn said this format is harder to
filter.
To solve that problem, other columns could be used for
filtering. Multiple columns can be sorted or filtered on a single column with
predictable delimiters.
A delimiter is a character or a series of characters that
indicate the beginning or end of a statement or body set. Examples of
delimiters are round brackets: ( )
Here is the formula that Wilburn left for sorting multiple
columns in Excel:
"=CONCATENATE(A1, "-", TEXT(B1, "00"), "-", TEXT(C1,"00"))"
"=CONCATENATE(A1, "-", TEXT(B1, "00"), "-", TEXT(C1,"00"))"
I learned that separate columns could be sorted and
filtered. With single text columns sorting is no problem, but filtering isn’t
fun.
Even though filtering isn’t the most “fun” of all things, it
should always be done and will be useful.
Wilburn said, “I feel like I’ve rarely regretted breaking
something out into separate fields, but I have regretted not doing it.”
Edward Borasky added an insightful tip about Excel’s date
algorithm. An Excel spreadsheet will display data for February 29, 1900. This
is because Excel thinks 1900 was a leap year and will continuously think this
for 1800 and 1700.
After reading through this thread, I learned that data
journalists are willing to help and answer a variety of questions. They could
reply within a couple days, a few hours, or seconds after the question was
posted.
In this thread that Glazer posted, Tim Henderson and Thomas
Wilburn were having a mini-conversation between themselves. They were
commenting on each other’s comments and questioned each other’s suggestions.
With that said, Glazer was not the only one who learned tips on excel formatting, so did Henderson, Wilburn and everyone else who
posted in the thread.
The data journalism community is a group of very knowledgeable
people who are experts in their own specific fields and are more than willing
to share that knowledge to help others from around the world.