Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Josh

Josh Avatar
Where were you when Reach fell?

******
Legendary Studio Member

4,806


May 2008
So, for the first time in my life, I had a need to use the IF function in Excel today at work. That was simple enough to figure out. But then I realized I needed to nest IF functions within IF functions to accomplish what I wanted. What a fucking nightmare. Took me 3 hours, but I think I finally figured the formula out.

=IF(I2>0,IF(AND(K2>=0,M2>=0),I2-IF(AND(M2>=0,L2>=0),0,IF(M2>0,ABS(L2),0))-IF(AND(J2>=0,K2>=0),0,IF(K2>0,ABS(J2),0)),0),0)

Anyone else have any Excel horror stories?

EDIT: Oh yeah, this is the first IF function I used. I figured it would be all I needed for this sheet. Hell no.

=IF(J2<0,J2+IF(I2>0,I2,0),J2)


Last Edit: Aug 2, 2010 18:45:02 GMT by Josh

Deko

Deko Avatar

****
Senior Member

452


October 2005
The only problems I have with Excel is when I accidentally click it instead of MS Word. :P


I really only use it to keep a record of my monthly expenses.

Josh

Josh Avatar
Where were you when Reach fell?

******
Legendary Studio Member

4,806


May 2008
Don't use Excel. Use Mint for that. :P

Deko

Deko Avatar

****
Senior Member

452


October 2005
Oooh, Mint is pretty. I might just start using it. Thanks :)

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
Excels formulas are horrible :P Especially when you have a conditional like that. :P

They should really consider using a simplified version of visual basic for future versions of excel formulas.
k

Jim

Jim Avatar
Josh was here.

****
Studio Member

740


September 2005
Andrew McGivery Avatar
Excels formulas are horrible :P Especially when you have a conditional like that. :P

They should really consider using a simplified version of visual basic for future versions of excel formulas.


You could just use VBA and grab information and output information to/from the cells...


Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
never thought about that. lol
k

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
VBA is a horrific language. Do not try writing macros. I wanted to claw my eyes out.

But yeah, I've had to write worse expressions Josh. :P

Hotshot

Hotshot Avatar

******
Legendary Studio Member

2,051


June 2008
I don't really have any horror stories, but I also hate excel :) Lets start a FB group aha.

Josh

Josh Avatar
Where were you when Reach fell?

******
Legendary Studio Member

4,806


May 2008
I love Excel. :P I just hated it when I made this thread and that formula was etched into my brain. lol

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Josh Avatar
I love Excel. :P I just hated it when I made this thread and that formula was etched into my brain. lol


at least you remembered it? :P

Joe Kerr

Joe Kerr Avatar
Why So Serious?



769


June 2010
I don't use it much but i will...i haven't had any problems with it
Building Your Proboard, a Basic Guide to Getting Your Forum Started



Need somewhere to host files?[/url]

Josh

Josh Avatar
Where were you when Reach fell?

******
Legendary Studio Member

4,806


May 2008
So this is a 1 year epic bump... but worthy of one. That bitch of a formula? I actually had to break it out today and modify a few greater than/less than symbols for another sheet I was putting together. That is actually quite awesome. Best part? I had the old file sitting in the recycling bin ready to be scrapped. Glad I didn't empty it.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Lucky. :P I'm surprised you wouldn't have had backups though.


Last Edit: Aug 15, 2011 20:05:30 GMT by Chris

Josh

Josh Avatar
Where were you when Reach fell?

******
Legendary Studio Member

4,806


May 2008
We aren't allowed to. Most of what I do is military related. Can't make copies of any of it.

newBookmarkLockedFalling