• 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

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
Let us free up the next 5 hours of your life. Need to stay sharp now that I'm in back in school.

Edit: Changed the original title, since we're all in this together.
 

MetroStyles

Stylish Dinosaur
Joined
May 4, 2006
Messages
14,586
Reaction score
30
Please create a stochastic interest-rate economic pricing model for your average single-premium deferred annuity.
 

gnatty8

Stylish Dinosaur
Joined
Nov 12, 2006
Messages
12,655
Reaction score
6,182
Originally Posted by MetroStyles
Please create a stochastic interest-rate economic pricing model for your average single-premium deferred annuity.

I have one of those for bond options, could probably be finagled to do what you want.. You will need a copy of Crystal Ball or be able to program a monte carlo engine in VBA for it to work..
 

MetroStyles

Stylish Dinosaur
Joined
May 4, 2006
Messages
14,586
Reaction score
30
Originally Posted by gnatty8
I have one of those for bond options, could probably be finagled to do what you want.. You will need a copy of Crystal Ball or be able to program a monte carlo engine in VBA for it to work..

Haha, no I already have the model. I was just being a douchebag.
 

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
Originally Posted by MetroStyles
Haha, no I already have the model. I was just being a douchebag.

Good because for a second I thought this was going to be too easy.
 

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
But seriously I was thinking more generic, along the lines of "how do I consolidate a vertical list of items that are at separated randomly by blank cells? i.e.

from:

a

b
c


d

e

f

to:

a
b
c
d
e
f

?"
 

MetroStyles

Stylish Dinosaur
Joined
May 4, 2006
Messages
14,586
Reaction score
30
Originally Posted by CunningSmeagol
But seriously I was thinking more generic, along the lines of "how do I consolidate a vertical list of items that are at separated randomly by blank cells? i.e.
"


Is it doable without a macro? I always had to write a macro to do that.
 

dcg

Distinguished Member
Joined
Nov 2, 2007
Messages
3,991
Reaction score
506
Originally Posted by MetroStyles
Is it doable without a macro? I always had to write a macro to do that.

Don't overthink it. Highlight the column, Data -> Sort -> Ascending.
 

MetroStyles

Stylish Dinosaur
Joined
May 4, 2006
Messages
14,586
Reaction score
30
Originally Posted by dcg
Don't overthink it. Highlight the column, Data -> Sort -> Ascending.

Duh.
dozingoff.gif
 

gdl203

Purveyor of the Secret Sauce
Affiliate Vendor
Dubiously Honored
Supporting Member
Joined
Jun 9, 2005
Messages
45,610
Reaction score
54,420
Originally Posted by dcg
Don't overthink it. Highlight the column, Data -> Sort -> Ascending.

I thnk you took the a, b, c, d part a little too literally. Just a guess
 

dcg

Distinguished Member
Joined
Nov 2, 2007
Messages
3,991
Reaction score
506
Originally Posted by gdl203
I thnk you took the a, b, c, d part a little too literally. Just a guess

Should work regardless of the data, no? All we're trying to do is get rid of the blanks.
 

MetroStyles

Stylish Dinosaur
Joined
May 4, 2006
Messages
14,586
Reaction score
30
Even if you needed it ordered in a specific way, you could just add ordered numbering in an adjacent column and re-order to the old order after the sort.
 

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
I do it with an array formula (assume the data is in column A1 -> Ax), in cell B1:

{=INDIRECT("A"&SMALL(IF($A$1:$A$x<>"",ROW($A$1:$A$x)),ROW(A1)))}

Drag down.
 

dcg

Distinguished Member
Joined
Nov 2, 2007
Messages
3,991
Reaction score
506
Here's a question for the OP (or anyone else that might feel like answering).

Say you have a list of a few thousand cells that you need deduped. Ex:

1
1
2
5
10
13
13
13
16
22
....

Assume your list starts in A2. When I've had to accomplish this I've entered

=IF(A2=A1, 1, 0)

into B2, then copied -> paste special -> values both columns, then sorted both columns by column B ascending, giving you a deduped list in column A for all rows where column B is 0.

Is there an easier way to dedupe a list?
 

CunningSmeagol

Distinguished Member
Joined
Oct 15, 2006
Messages
3,882
Reaction score
20
Originally Posted by dcg
Here's a question for the OP (or anyone else that might feel like answering).

Say you have a list of a few thousand cells that you need deduped. Ex:

1
1
2
5
10
13
13
13
16
22
....

Assume your list starts in A2. When I've had to accomplish this I've entered

=IF(A2=A1, 1, 0)

into B2, then copied -> paste special -> values both columns, then sorted both columns by column B ascending, giving you a deduped list in column A for all rows where column B is 0.

Is there an easier way to dedupe a list?


I would modify the first formula I posted:

{=INDIRECT("A"&SMALL(IF($A$2:$A$15<>$A$1:$A$14,ROW($A$2:$A$15)),ROW(A1)))}

Drag down.
 

Featured Sponsor

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

  • Definitely full canvas only

    Votes: 81 36.8%
  • Half canvas is fine

    Votes: 83 37.7%
  • Really don't care

    Votes: 23 10.5%
  • Depends on fabric

    Votes: 35 15.9%
  • Depends on price

    Votes: 36 16.4%

Forum statistics

Threads
506,315
Messages
10,587,926
Members
224,189
Latest member
arabianstartyres5
Top