• Hi, I am the owner and main administrator of Styleforum. If you find the forum useful and fun, please help support it by buying through the posted links on the forum. Our main, very popular sales thread, where the latest and best sales are listed, are posted HERE

    Purchases made through some of our links earns a commission for the forum and allows us to do the work of maintaining and improving it. Finally, thanks for being a part of this community. We realize that there are many choices today on the internet, and we have all of you to thank for making Styleforum the foremost destination for discussions of menswear.
  • This site contains affiliate links for which Styleforum may be compensated.
  • STYLE. COMMUNITY. GREAT CLOTHING.

    Bored of counting likes on social networks? At Styleforum, you’ll find rousing discussions that go beyond strings of emojis.

    Click Here to join Styleforum's thousands of style enthusiasts today!

    Styleforum is supported in part by commission earning affiliate links sitewide. Please support us by using them. You may learn more here.

The Excel Questions Thread

JesterM

Well-Known Member
Joined
Oct 5, 2009
Messages
45
Reaction score
0
I have a column of dates that I'm trying to get into the format yearmonthday only I don't want any characters or spaces between them, just values like this 20090418.

Right now it looks like this:
3/1/2007
3/2/2007
3/5/2007
3/6/2007
3/7/2007
3/8/2007

I can get it switched so it's year/month/day but I can't seem to get rid of the /'s. I've tried a couple of things like copying the column and just pasting the values but that doesn't work. Any ideas? Also it's not every day of the year, it excludes weekends and holidays. Thanks!
 

Nobody Important

Well-Known Member
Joined
Oct 30, 2007
Messages
73
Reaction score
3
Originally Posted by JesterM
I have a column of dates that I'm trying to get into the format yearmonthday only I don't want any characters or spaces between them, just values like this 20090418.

Right now it looks like this:
3/1/2007
3/2/2007
3/5/2007
3/6/2007
3/7/2007
3/8/2007

I can get it switched so it's year/month/day but I can't seem to get rid of the /'s. I've tried a couple of things like copying the column and just pasting the values but that doesn't work. Any ideas? Also it's not every day of the year, it excludes weekends and holidays. Thanks!


Right-click a cell, go to Format Cells. Choose Custom. Type in yyyymmdd as the format. Verify that it's what you need. Select other cells, hit ctrl-Y to repeat the format.
 

JesterM

Well-Known Member
Joined
Oct 5, 2009
Messages
45
Reaction score
0
Originally Posted by Nobody Important
Right-click a cell, go to Format Cells. Choose Custom. Type in yyyymmdd as the format. Verify that it's what you need. Select other cells, hit ctrl-Y to repeat the format.

Thanks! That was driving me crazy.
 

dsgNYC

Senior Member
Joined
Dec 9, 2008
Messages
422
Reaction score
1
BUMP

I'm bored...
 

Milhouse

Distinguished Member
Joined
May 11, 2007
Messages
1,917
Reaction score
1
How random is rand() and how good are the distribution functions in excel?
 

jgold47

Distinguished Member
Joined
Mar 23, 2008
Messages
1,617
Reaction score
13
Originally Posted by Milhouse
How random is rand() and how good are the distribution functions in excel?

Pretty damn random?? I use it to pick lottery #'s. Still havent won with it yet.
 

AgentQ

Senior Member
Joined
Sep 26, 2008
Messages
427
Reaction score
1
Originally Posted by Milhouse
How random is rand() and how good are the distribution functions in excel?

Seems like 2003 & 2007 are pretty good:
http://support.microsoft.com/kb/828795

No clue about other products, but if you're doing serious simulation work, consider something other than Excel for generating numbers.
 

dsgNYC

Senior Member
Joined
Dec 9, 2008
Messages
422
Reaction score
1
Originally Posted by Milhouse
How random is rand() and how good are the distribution functions in excel?

Rand() is purely random for numbers between 0 and 1. You can also force it to return random values between two set values (say, 1 and 100), however it will never choose the top value of the range (in this case, 100. It'll return up to 99.999999999999).

Here's a website that details choosing a random number between two given values:

http://www.techonthenet.com/excel/formulas/rand.php

As for distribution functions, I searched google and found the following website:

http://www.exceluser.com/explore/statsnormal.htm

Excel has a bunch of statistics formulas that you can find by clicking on the fx button next to the formula bar. That'll pull up a window, and you can choose the "Statistical" category from the drop-down box.
 

Milhouse

Distinguished Member
Joined
May 11, 2007
Messages
1,917
Reaction score
1
Interesting stuff, thanks. I never actually thought this would happen to me. . . but more and more I'm going with open source stuff for anything that I need to know exactly how it works.

Perhaps I'm becoming a nerd.
ffffuuuu.gif
 

dsgNYC

Senior Member
Joined
Dec 9, 2008
Messages
422
Reaction score
1
Originally Posted by Milhouse
Interesting stuff, thanks. I never actually thought this would happen to me. . . but more and more I'm going with open source stuff for anything that I need to know exactly how it works.

Perhaps I'm becoming a nerd.
ffffuuuu.gif


I'm not familiar with any open source stuff specifically for Excel. What have you used and for what purpose?

And yes, one you start using open source you're a nerd.
 

Milhouse

Distinguished Member
Joined
May 11, 2007
Messages
1,917
Reaction score
1
Originally Posted by dsgNYC
I'm not familiar with any open source stuff specifically for Excel. What have you used and for what purpose?

And yes, one you start using open source you're a nerd.


Open source FOR Excel? No idea.

Open source replacements for Excel? Openoffice.org (has spreadsheet) and R (stats software).
 

gomestar

Super Yelper
Joined
Oct 21, 2008
Messages
19,880
Reaction score
4,474
Here's one that I can't seem to figure out in the Vista Excel.

I have a document, 7400 rows and 227 columns. But, despite the rows I'm using, Excel is insisting on showing over 1,000,000 blank rows and it makes for a terrible time navigating the document. And forget about using the vertical scroll bar. How can I fix this?
 

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
Originally Posted by gomestar
Here's one that I can't seem to figure out in the Vista Excel. I have a document, 7400 rows and 227 columns. But, despite the rows I'm using, Excel is insisting on showing over 1,000,000 blank rows and it makes for a terrible time navigating the document. And forget about using the vertical scroll bar. How can I fix this?
Click on a cell in a row below 7400 (i.e. B7410) and hit ctrl+shift+down. Right click on the highlighted range (should go to the end of the workbook (1,000,000 rows)) and select "delete". Then select entire row, scroll all the way up, click inside your data set and save. This at least works in 2003. I've never used vista excel, but I would think the problem is the same, that is, excel remembers you once having edited and deleted the contents of some cells way down there.
 

gomestar

Super Yelper
Joined
Oct 21, 2008
Messages
19,880
Reaction score
4,474
Originally Posted by CunningSmeagol
Click on a cell in a row below 7400 (i.e. B7410) and hit ctrl+shift+down. Right click on the highlighted range (should go to the end of the workbook (66,000 something)) and select "delete". Then select entire row, scroll all the way up, click inside your data set and save.

I tried deleting the cells (I am far from a novice), Excel said "cannot complete with the available resources" or something like that. then I tried in batches of a few thousand and got the same error message. And then I tried in batches of 10-15, no better.

Official row count is 1,048,576 at this point. Just annoying.
 

gomestar

Super Yelper
Joined
Oct 21, 2008
Messages
19,880
Reaction score
4,474
Originally Posted by CunningSmeagol
This at least works in 2003. I've never used vista excel, but I would think the problem is the same, that is, excel remembers you once having edited and deleted the contents of some cells way down there.

Yes, I know what you mean, the document was originally 20,000 rows. I can deal with 13,000 blank rows, but a million blows.
 

Featured Sponsor

How important is full vs half canvas to you for heavier sport jackets?

  • Definitely full canvas only

    Votes: 85 37.6%
  • Half canvas is fine

    Votes: 86 38.1%
  • Really don't care

    Votes: 24 10.6%
  • Depends on fabric

    Votes: 35 15.5%
  • Depends on price

    Votes: 36 15.9%

Staff online

Forum statistics

Threads
506,438
Messages
10,589,414
Members
224,236
Latest member
Eliza Jane
Top