• Welcome! The TrekBBS is the number one place to chat about Star Trek with like-minded fans.
    If you are not already a member then please register an account and join in the discussion!

Any Excel 2007 experts in the house?

The Fatman

Captain
Captain
This is driving me insane. I need Column G to give me column F - column B, unless F is empty.

I know I can cheat, and sort it so it only shows me rows where F is populated, then apply the formula to those specific cells. but that kills me if I need to add more data in at a later time. Is there any way to set the rule above to all of G?
 
Write a macro or some other Visual Basic script using an "if...then" statement, perhaps?
 
If you want column G to remain empty, use this:
=IF(F1="","",F1-B1)

If you want column G to do be something else, replace the second "" with whatever you want G to be.
 
If you are not already a member then please register an account and join in the discussion!

Sign up / Register


Back
Top