Hyphen issue with Excel

elSicomoro • Sep 25, 2007 11:09 am
Hey folks,

I'm trying to type up a schedule for the drivers at my job; however, I keep running into the following problem: I want to type "11-4," for a shift, but Excel keeps turning that into a date. How can I type something like that into a cell without it turning into a date? I've tried using the number settings, but it keeps turning the number into something like 39,000.

Thanks.
Flint • Sep 25, 2007 11:14 am
right-click, format cells, number tab, format as text

select a block of cells (shift-click) and format them before you enter the times
Shawnee123 • Sep 25, 2007 11:16 am
Try:

Right click the entire column you're using. Format cells. On the number tab choose "text."
elSicomoro • Sep 25, 2007 11:17 am
Goddamnit...why the fuck couldn't I think of that?!

Thanks, Flint!
Shawnee123 • Sep 25, 2007 11:17 am
Or, what Flint said. :)
Flint • Sep 25, 2007 11:20 am
I'm just curious how 4-Nov translates to 39,390 ... ???
Shawnee123 • Sep 25, 2007 11:22 am
I KNOW...I was getting that too.

I was just doing spreadsheet work this morning...combining two involved sheets into one, and I still get lost on some of the intricacies (doing v-lookups.)
BigV • Sep 25, 2007 11:27 am
gregorian vs julian
Shawnee123 • Sep 25, 2007 11:30 am
Oh.

Who would win in a fight: Gregorian, Julian, Conan, or Chuck Norris?
Pie • Sep 25, 2007 11:35 am
You can also type the line as

'11-4

The initial apostrophe keeps it formatted as text, but isn't displayed.
Shawnee123 • Sep 25, 2007 11:49 am
That's a good tip. It will mess up formulas (because though not displayed it's still there,) but if you're not using it for anything like that it will work just fine.

Today I learned something at the Cellar that I can apply to work. How's that for serendipity?
limey • Sep 25, 2007 2:11 pm
A little late but what Pie said ...
I lurve Excel :compute:
HungLikeJesus • Sep 28, 2007 6:32 pm
I just saw this interesting article. I tried it and Excel did get the wrong answer (actually, I think it's just displaying it in the wrong format). I'm using Excel 2007.