My head hurts from crazy excel formulas

Support, Discussion, Reviews
Post Reply
Kguku
Almost 1337
Almost 1337
Posts: 864
Joined: July 22, 2002, 1:47 pm
Location: Winnipeg, MB
Contact:

My head hurts from crazy excel formulas

Post by Kguku »

I thought I would share my woes with you:


=IF($Y$23=0,IF(B25="","",IF(B37<$H$2,(B37-$H$2),IF(SUM(B28:B36)=0,IF(B37>$H$2,B37-$H$2,0),IF(SUM(B28:B36)=(B37-$H$2),0,
IF(SUM(B28:B36)>(B37-$H$2),IF((B37-$H$2)-SUM(B28:B36)<=-$H$2,-$H$2,(B37-$H$2)-SUM(B28:B36)),(B37-$H$2)-SUM(B28:B36)))))),IF($Y$23=1,IF(B8="","",B20)))

=IF(B20="","",IF(SUM(C11:C19)=C20,0,IF(C20-SUM(C11:C19)<0,"CHECK",(C20-SUM(C11:C19)))))

=IF($X$6=1,$H$2,IF(C8="","",IF(B8>C8,((C8+24)-B8)-D8,(C8-B8)-D8)))

=IF(B20="","",IF(B20="Auto","",IF(B20<=7.5,0,IF(B20>=7.75,IF($G$2=37.5,IF((B20-7.5)<0,0,(B20-7.5)),IF(B20>=8,IF((B20-8)<0,0,(B20-8)),0)),0))))

=IF($G$2<37.5,IF($Q20-37.5-$AE11>SUM(R10:R19),($Q20-37.5-$AE11),SUM(R10:R19)),SUM(R10:R19))

=IF(N8="",0,IF(N8="Stat",1+Y10,IF(ISTEXT(N8),1,0)))

=IF($F$2="CAS",1,0)

=IF(X10=0,0,IF(N8="Sick",1,IF(N8="Vac",2,IF(N8="Stat",3,IF(N8="Ber",4,5)))))

=IF(Z10=2,L10,0)

=IF(Z10=1,L10,0)

=IF(Z10=4,L10,IF(Z10=5,L10,0))

=IF($X10=1,$H$2,0)

=COUNT(C8,F8,I8,L8,O8)

=IF($K$2<5,IF($K$2-$AA12<0,SUM(Z6:Z10)/3,(SUM(Z6:Z10)/3)-($K$2-$AA12)),"")
[/quote]

Enjoy!

EDIT: Fixing spacing so it doesn't break the layout
Last edited by Kguku on September 9, 2004, 6:15 pm, edited 2 times in total.
"When you dance with the devil, the devil don't change, the devil changes you."
User avatar
Jaxomer
Star Farmer
Star Farmer
Posts: 259
Joined: July 11, 2002, 4:07 pm

Post by Jaxomer »

14.7
Keepers of the Elements
|Jaxomer|Memsi|
User avatar
Winnow
Super Poster!
Super Poster!
Posts: 27726
Joined: July 5, 2002, 1:56 pm
Location: A Special Place in Hell

Post by Winnow »

I see a ")" that is in the wrong place.
User avatar
XunilTlatoani
Star Farmer
Star Farmer
Posts: 379
Joined: September 6, 2002, 2:37 pm
Location: Lakemoor, IL

Post by XunilTlatoani »

i feel your pain
Xunil Tlatoani - Gnome Arch Lich (Retired)
Keepers of the Elements

Tlatoani - Gnome Warlock
Light of Dawn (Lightbringer Server)
User avatar
Sylvus
Super Poster!
Super Poster!
Posts: 7033
Joined: July 10, 2002, 11:10 am
Gender: Male
XBL Gamertag: mp72
Location: A², MI
Contact:

Post by Sylvus »

Why are you tracking employee time on an excel spreadsheet?!
"It's like these guys take pride in being ignorant." - Barack Obama

Go Blue!
User avatar
Neost
Almost 1337
Almost 1337
Posts: 911
Joined: July 3, 2002, 1:56 pm
Gender: Male
XBL Gamertag: neost
Wii Friend Code: neost
Contact:

Post by Neost »

Is that how they figure vv's?
Kguku
Almost 1337
Almost 1337
Posts: 864
Joined: July 22, 2002, 1:47 pm
Location: Winnipeg, MB
Contact:

Post by Kguku »

Sylvus wrote:Why are you tracking employee time on an excel spreadsheet?!
It's for submission purposes to the person who does the inputting in to peoplesoft, it's in 2 week blocks and there's no point in writing a database for strictly cosmetic submissions to someone else.

The spreadsheet was fine in it's original form, but it seems the person who gets the submission wants a fancier submission page so the other departments can use it.
"When you dance with the devil, the devil don't change, the devil changes you."
User avatar
Tenuvil
Way too much time!
Way too much time!
Posts: 1841
Joined: July 11, 2002, 6:13 pm

Post by Tenuvil »

Excel formulas like that are the big win. I have crap like that in my training log spreadsheet to calculate calories burned based on weight, exercise time and speed (=IF(H66,0.0141*EXP(0.092*G66)*H66*(F66*60),"")) as well as formulas to convert time entered in hours minutes and seconds in separate cells to decimal time, then back to hours minutes and seconds for totals and averages. Oh and the formulas suppress zero values by nesting everything in an if statement with the false argument being "". Good stuff.
Kguku
Almost 1337
Almost 1337
Posts: 864
Joined: July 22, 2002, 1:47 pm
Location: Winnipeg, MB
Contact:

Post by Kguku »

I managed to get back to it last night during my fun double shift I got to work and I think I finished it, woo, testing happens tonight to see how many fucked up bugs I can encounter!
"When you dance with the devil, the devil don't change, the devil changes you."
User avatar
Neost
Almost 1337
Almost 1337
Posts: 911
Joined: July 3, 2002, 1:56 pm
Gender: Male
XBL Gamertag: neost
Wii Friend Code: neost
Contact:

Post by Neost »

My oldest daugher's boyfriend just took a 2nd job helping a friend of his manage a pizza place. He decided to build a spreadsheet to help the day cook figure out how much dough to make each day.

It looked almost as complicated as the one above.

Problem was, the first time they used it they made enough dough for 3 or 4 days of operation. They had fucking dough stashed everywhere they could find to hide it.

So much for "l33t xcl skillz". If I have to smell/look at/hear about another damn pizza i'm gonna fucking kill someone.

On the other hand, if I stop in to eat all I pay for is the beer I drink.
User avatar
Spang
Way too much time!
Way too much time!
Posts: 4869
Joined: September 23, 2003, 10:34 am
Gender: Male
Location: Tennessee

Post by Spang »

dough a day or 2 after you make it tastes better anyways!
For the oppressed, peace is the absence of oppression, but for the oppressor, peace is the absence of resistance.
Post Reply