WordPress database error: [Duplicate entry '65028' for key 1]
INSERT INTO wp_bas_visitors (visit_ip, referer, osystem, useragent, lasthere) VALUES (644300602, 2, 404, 2482, '2008-11-21 05:57:54');

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND referer = referer_id AND osystem = os_id AND useragent = ua_]
SELECT * FROM wp_bas_visitors, wp_bas_refer, wp_bas_ua, wp_bas_os WHERE visit_id = AND referer = referer_id AND osystem = os_id AND useragent = ua_id

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '2008-11-21 05:57:54', 0, 2246)' at line 1]
INSERT INTO wp_bas_log (visit, stamp, outbound, page) VALUES (, '2008-11-21 05:57:54', 0, 2246);

Using Text to Manipulate Dates in Excel - Tales from the Techside
Feb 07
Digg
Stumbleupon
Technorati
Delicious

Using Text to Manipulate Dates in Excel

Today, I had a member call and ask how she could convert a list of numbers in excel to the names of a month. Apparently, she was having issues sorting her table by the name of the month and to get around the issue she replaced the names of the month with the number of the month.

After she finished working on her spreadsheet, she had several hundred months that she needed to convert to the month name so that it was easier to read. To make the issue more difficult due to the way she set up her formulas every time she sorted the spreadsheet it messed up her output.

My solution was to introduce her to the text function of excel. The text function returns a value converted to text with a specified format. In plain English, you convert a number to a predetermined text format.

So if I had a list of numbers like below:

numbers.JPG

To return a list of dates I would put the following formula in cell B1

=text(a1*29,”mmm”) this will return the short-name value Jan

If you want the full name use

=text(a1*29,”mmmm”)

What the formula is doing is multiplying the value of the number in A1 by 29 which is how Excel “sees” January.

numbers2.JPG

If you want to convert a month to its calendar number value then you would use:

=MONTH(1&A1) where A1 is the cell that contains your month name

numbers3.JPG


Author: Mark Flavin

No Comments

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a comment