Reply

Excel Help

 
Thread Tools Display Modes
Old 11-02-2009, 01:02 PM   #1
Jtuds
Totally Addicted
 
Jtuds's Avatar
 
Join Date: Dec 2004
Location: I live in the hearts of the weak and the wounded.
Posts: 6,624
vCash: 2000
Default Excel Help

I am using a formula to perform a repetitive calculation and have protected the sheet so people can't edit the formula. I want to set it so that when people close the file, the values they entered are not saved with it....in fact, I don't want the save option to show up at all.

So if the formula is =sum(c1+c3)/12, I want c1, c3, and the answer cell to go blank upon closing the file.

Can anyone tell me how to do this?
__________________
Retire #80 - Wayne Chrebet
Jtuds is offline  
Old 11-02-2009, 01:06 PM   #2
MadBacker Prime
THE Dead Rabbit
 
MadBacker Prime's Avatar
 
Join Date: Apr 2009
Location: n/a Current Quest: Searching for my Unicorn
Posts: 10,824
vCash: 25
Default

Just make it read only-

They can still use the formula you entered but would have to save the file as their own to keep the changes.

It's under the save settings when you click save as.



Is this 2007??
__________________


Quote:
Originally Posted by James Calvin View Post
Now that Moss is gone, their biggest deep threat is Tom Brady's throat.
MadBacker Prime is offline  
Old 11-02-2009, 01:09 PM   #3
MBGreen
Banned
 
MBGreen's Avatar
 
Join Date: Feb 2008
Location: Kanadia
Posts: 18,134
vCash: 65830
Default

Quote:
Originally Posted by Jtuds View Post
I am using a formula to perform a repetitive calculation and have protected the sheet so people can't edit the formula. I want to set it so that when people close the file, the values they entered are not saved with it....in fact, I don't want the save option to show up at all.

So if the formula is =sum(c1+c3)/12, I want c1, c3, and the answer cell to go blank upon closing the file.

Can anyone tell me how to do this?
There's an option under the tools menu called macros...select it...and open up the Visual Basic Editor.

If you know how to code in Visual Basic...this will be an easy fix.....If you PM me what you want done in full detail...I could probably write the script for you.
MBGreen is offline  
Old 11-02-2009, 01:16 PM   #4
Jtuds
Totally Addicted
 
Jtuds's Avatar
 
Join Date: Dec 2004
Location: I live in the hearts of the weak and the wounded.
Posts: 6,624
vCash: 2000
Default

Yeah unfortunately I can't write macros. What I am doing right now would be so much easier if I could...

ok MB I might PM you....sort of complex though...I'd have to figure out how to explain it.

It's in 2003.
__________________
Retire #80 - Wayne Chrebet
Jtuds is offline  
Old 11-02-2009, 01:18 PM   #5
MBGreen
Banned
 
MBGreen's Avatar
 
Join Date: Feb 2008
Location: Kanadia
Posts: 18,134
vCash: 65830
Default

Quote:
Originally Posted by Jtuds View Post
Yeah unfortunately I can't write macros. What I am doing right now would be so much easier if I could...

ok MB I might PM you....sort of complex though...I'd have to figure out how to explain it.

It's in 2003.
I'll do what I can to help.

I'm using 2003 as well.
MBGreen is offline  
Old 11-02-2009, 01:47 PM   #6
IATA
Trolls
 
Join Date: Aug 2008
Posts: 8,063
vCash: 50
Default

IATA is offline  
Old 11-02-2009, 01:49 PM   #7
MBGreen
Banned
 
MBGreen's Avatar
 
Join Date: Feb 2008
Location: Kanadia
Posts: 18,134
vCash: 65830
Default

^ gross...yet...funny.


lawl.
MBGreen is offline  
Old 11-02-2009, 01:54 PM   #8
IATA
Trolls
 
Join Date: Aug 2008
Posts: 8,063
vCash: 50
Default

Wait, nevermind. That comment could be construed wrong...
IATA is offline  
Old 11-02-2009, 02:23 PM   #9
MBGreen
Banned
 
MBGreen's Avatar
 
Join Date: Feb 2008
Location: Kanadia
Posts: 18,134
vCash: 65830
Default

Quote:
Originally Posted by IATA View Post
Wait, nevermind. That comment could be construed wrong...
what you do in your spare time is your business, man.....doesn't mean the rest of us can't enjoy a hearty laugh over it.

At least, now we know why all those pics of hot broads were considered to be "butterfaces" in your opinion........
MBGreen is offline  
Old 11-02-2009, 02:35 PM   #10
Jtuds
Totally Addicted
 
Jtuds's Avatar
 
Join Date: Dec 2004
Location: I live in the hearts of the weak and the wounded.
Posts: 6,624
vCash: 2000
Default

Got it sorted out now....and learned about IF statements
__________________
Retire #80 - Wayne Chrebet
Jtuds is offline  
Old 11-02-2009, 02:48 PM   #11
MBGreen
Banned
 
MBGreen's Avatar
 
Join Date: Feb 2008
Location: Kanadia
Posts: 18,134
vCash: 65830
Default

Quote:
Originally Posted by Jtuds View Post
Got it sorted out now....and learned about IF statements
Yep...If statements are a programmer's best friend.
MBGreen is offline  
Old 11-02-2009, 03:37 PM   #12
fenwyr
Totally Addicted
 
fenwyr's Avatar
 
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 9,367
vCash: 400
Default

Quote:
Originally Posted by MBGreen View Post
Yep...If statements are a programmer's best friend.
Especially when combined with other if statements. The most essential Excel formula for me over the last couple years:

{=sum(if(A=B,C,0)*if(X=Y,Z,0))}

Well, that and VLOOKUP.
__________________
Quote:
Originally Posted by The Jutty View Post
You can't say anything without someone on the forum wanting to fight/kill/rape you.
http://img818.imageshack.us/img818/4633/kelleraaj11.jpg
fenwyr is offline  
Old 04-20-2012, 02:08 PM   #13
Jtuds
Totally Addicted
 
Jtuds's Avatar
 
Join Date: Dec 2004
Location: I live in the hearts of the weak and the wounded.
Posts: 6,624
vCash: 2000
Default

New request.

In column G I have =$f2-$e2

I want to drag that formula down the page but I dont want to have a 0 in column G for every single row. I just want the numbers to appear in each row of column G as info gets entered into columns F and E as we go down the worksheet. So basically, I don't want anything to populate in column G unless there's data in the corresponding cell in column F.

I think it is an IF statement but I cant rememeber how to do it.

I used to know how to make all this stuff easier and enjoyed usng these formulas, now I can't remember any of this stuff
__________________
Retire #80 - Wayne Chrebet

Last edited by Jtuds; 04-20-2012 at 02:19 PM.
Jtuds is offline  
Old 04-20-2012, 06:32 PM   #14
nyscene911
Totally Addicted
 
nyscene911's Avatar
 
Join Date: Dec 2004
Location: 1000+ posts FTW!
Posts: 2,470
vCash: 500
Default

Try this
=IF(And(Not($f2=0), Not($g2=0)), $f2-$e2, "")
__________________

Quote:
Originally Posted by deef View Post
Just wanted to say IgnatiusJReilly, you have so much guts, Mike O'Malley probably just jizzed all over Mo's leader board.
BadgerOnLSD is the current recipient of my GOLD STAR OF THE DAY!
nyscene911 is offline  
Old 04-21-2012, 12:36 AM   #15
LeonNYJ
Totally Addicted
 
LeonNYJ's Avatar
 
Join Date: Nov 2008
Location: Westchester, NY
Posts: 3,893
vCash: 25
Default

Or you could also simply use:

=If($F2="","",$F2-$E2)
__________________
In the warrior's code, there's no surrender. Though his body says stop, his spirit cries - never!
LeonNYJ is offline  
Old 04-22-2012, 11:04 PM   #16
fenwyr
Totally Addicted
 
fenwyr's Avatar
 
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 9,367
vCash: 400
Default

Quote:
Originally Posted by nyscene911 View Post
Try this
=IF(And(Not($f2=0), Not($g2=0)), $f2-$e2, "")
Quote:
Originally Posted by LeonNYJ View Post
Or you could also simply use:

=If($F2="","",$F2-$E2)
The first is more flashy, but the second is easier. Both work just as well, thouh I think you need "" instead of 0 in the first one.
__________________
Quote:
Originally Posted by The Jutty View Post
You can't say anything without someone on the forum wanting to fight/kill/rape you.
http://img818.imageshack.us/img818/4633/kelleraaj11.jpg
fenwyr is offline  
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.