.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 27th, 2004, 05:34 PM
Ragnarok's Avatar

Ragnarok Ragnarok is offline
General
 
Join Date: Mar 2002
Location: Indiana
Posts: 3,229
Thanks: 0
Thanked 0 Times in 0 Posts
Ragnarok is on a distinguished road
Default OT: Excel Help

I don't know if we have any excel experts here but I am seeking some help with an excel formula.

I have two cells, one will be named Check Out and the other Check In. I need a formula that will check the Check Out cell to see if it has been longer then 6 months since that date if the Check In cell is empty. Is this possible in excel?

Edit: Forgot to mentioned I searched the web before posting here but I could not find anything.

Thanks for your help!
__________________
Ragnarok - Hevordian Story Thread
-------------------
I think...therefore I am confused.
They were armed. With guns, said Omari.
Canadians. With guns. And a warship. What is this world coming to?
The dreaded derelict dwelling two ton devil bunny!
Every ship can be a minesweeper... Once
Reply With Quote
  #2  
Old August 27th, 2004, 06:07 PM

Rasorow Rasorow is offline
Sergeant
 
Join Date: Apr 2004
Posts: 253
Thanks: 0
Thanked 0 Times in 0 Posts
Rasorow is on a distinguished road
Default Re: OT: Excel Help

Yes, it should be possible. Just to recap:

Check out Check in Greater then 6 months
6/24/03 1/28/04 yes

The above is the table you have. You want to automate the calculation of the third col to tell you if it has been greater then 6 months. I believe you can do this 1 of 2 ways. You can write a VB script through Excel's VB interface or use an IF statement for your formula. Try IF(DATE(A3,B3,120)>D3,"No","Yes") where cell A3 is the year and cell B3 is the month. If you need it down to the specific day look at the Day function.

Rasorow
Reply With Quote
  #3  
Old August 27th, 2004, 06:32 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Excel Help

I would say the easiest way to do it is with a nested IF formula. The exact formula would depend on how you figure the 6 month interval. If you go with 180 days = 6 months, the formula is pretty simple:

=IF(B3="",IF(TODAY()-A3>180,"yes","no"),"no")

where colum B is your Checkout dates and Column A is your CheckIn dates

If you want to use 6 months on the Calendar regardless of number of days, it gets more complicated. It can still be done with one nested IF formula, but you'd need three IF's instead of two because you use the difference in months if todays day of the month is greater then the check out day of the month, and if it's not greater, you use the difference in months - 1. I can work that up tonight and post it if you'd like.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #4  
Old August 27th, 2004, 06:48 PM
Ragnarok's Avatar

Ragnarok Ragnarok is offline
General
 
Join Date: Mar 2002
Location: Indiana
Posts: 3,229
Thanks: 0
Thanked 0 Times in 0 Posts
Ragnarok is on a distinguished road
Default Re: OT: Excel Help

I am having trouble getting it set up. I may not understand fully how I need to set up my cells to get it to work correctly.

Say I have cell A1 with just the text "Check out" and then cell B1 with the text "Check in."

Next I have cell A2 with a date of 6/30/2004 and cell B2 with a date of 2/15/2005. where would I put the formula?
__________________
Ragnarok - Hevordian Story Thread
-------------------
I think...therefore I am confused.
They were armed. With guns, said Omari.
Canadians. With guns. And a warship. What is this world coming to?
The dreaded derelict dwelling two ton devil bunny!
Every ship can be a minesweeper... Once
Reply With Quote
  #5  
Old August 27th, 2004, 07:23 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Excel Help

Wherever you'd want to put it that isn't going to have some other data. The most likely spot would be C2.

And the formula would be

=IF(B2="",IF(TODAY()-A2>180,"yes","no"),"no")

Or are you wanting it to list the actual number of months instead of yes or no that it's over 6 months?
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #6  
Old August 30th, 2004, 04:25 PM
Ragnarok's Avatar

Ragnarok Ragnarok is offline
General
 
Join Date: Mar 2002
Location: Indiana
Posts: 3,229
Thanks: 0
Thanked 0 Times in 0 Posts
Ragnarok is on a distinguished road
Default Re: OT: Excel Help

Thanks Geo! That seemed to do the trick. I had to toy around with it a bit just to understand what it was doing but your formula worked.
__________________
Ragnarok - Hevordian Story Thread
-------------------
I think...therefore I am confused.
They were armed. With guns, said Omari.
Canadians. With guns. And a warship. What is this world coming to?
The dreaded derelict dwelling two ton devil bunny!
Every ship can be a minesweeper... Once
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.