excel date formula help

Thread Tools
 
Search this Thread
 
Old Apr 3, 2007 | 01:11 PM
  #1  
sc0013z's Avatar
Thread Starter
Registered User
 
Joined: Apr 2004
Posts: 93
excel date formula help

i have a column that list dates, and i want to change it to the ff:

1/1/** - 1/15/** should return a value of 1/15/**
1/16/** - 1/31or1/30/** should return a value of end of the month
Old Apr 3, 2007 | 01:29 PM
  #2  
jvick125's Avatar
Registered User
iTrader: (2)
 
Joined: Mar 2005
Posts: 10,375
From: Monterey
Car Info: Sline
what are you trying to do?
Old Apr 3, 2007 | 01:33 PM
  #3  
SubyN00by's Avatar
Registered User
iTrader: (15)
 
Joined: Aug 2005
Posts: 12,522
From: Salinas, CA
Car Info: 1997 Acura Integra GS Sedan
he's trying to conquer the world!!!

I don't know how to do it without converting the date field to a special, and entering your dates in as MMDDYYYY and letting the logic take care of the rest.

Is the info already in a spreadsheet, or is it something that someone will be entering?
Old Apr 3, 2007 | 01:42 PM
  #4  
sc0013z's Avatar
Thread Starter
Registered User
 
Joined: Apr 2004
Posts: 93
the info is already there

2 pay cycles 15th and 30th or last day of the month

i need to have those dates from 1st to the 15th show pay period of 15th and those from 16th to last day of the month to show pay period of last day of the month.

I am manually changing it right now, i have been playing with some formulas but i cant get it right
Old Apr 3, 2007 | 01:58 PM
  #5  
SubyN00by's Avatar
Registered User
iTrader: (15)
 
Joined: Aug 2005
Posts: 12,522
From: Salinas, CA
Car Info: 1997 Acura Integra GS Sedan
so first off all, make two key cells, one put in 1/1/2007, the other put in 1/15/2007, say you put them in K1 and L1, and say your date cell is C1

=IF(C1>=K1,IF(C1>=L1,"1/31/2007","1/15/2007"),"undefined")

so what you have is IF Date >= 1/1/2007 & Date >= 1/15/07, it should be 1/31/2007, otherwise it should be 1/15/2007.

Also, for error checking, if Date is less than 1/1/2007 return error

Last edited by SubyN00by; Apr 3, 2007 at 02:06 PM.
Old Apr 3, 2007 | 02:07 PM
  #6  
sc0013z's Avatar
Thread Starter
Registered User
 
Joined: Apr 2004
Posts: 93
what if there are different years involved, 2005, 2006, 2007? that was also my formula in mind, but then my dates have different years, i was trying to put "*" on the years but wont take it.
Old Apr 3, 2007 | 02:09 PM
  #7  
SubyN00by's Avatar
Registered User
iTrader: (15)
 
Joined: Aug 2005
Posts: 12,522
From: Salinas, CA
Car Info: 1997 Acura Integra GS Sedan
Originally Posted by sc0013z
what if there are different years involved, 2005, 2006, 2007? that was also my formula in mind, but then my dates have different years, i was trying to put "*" on the years but wont take it.
that ones a tuffy...I can do it C or PHP, but excel...I dunno about that one...
Old Apr 3, 2007 | 02:14 PM
  #8  
sc0013z's Avatar
Thread Starter
Registered User
 
Joined: Apr 2004
Posts: 93
thanks, all i can think of right now is sorting by year then go from there. much better than manually doing it.
Old Apr 3, 2007 | 02:25 PM
  #9  
SubyN00by's Avatar
Registered User
iTrader: (15)
 
Joined: Aug 2005
Posts: 12,522
From: Salinas, CA
Car Info: 1997 Acura Integra GS Sedan
sort by date.

then make the first one like 1/1/2007 and drag it down until 1/15/07, then drag that down till 2/1/07, then drag...etc.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
cabe
Ongoing Projects
1
Aug 22, 2004 02:53 PM
SmokinALLFOURS
Tri-State
3
Apr 2, 2004 05:34 AM
leegina
For Sale by Members
11
Apr 21, 2003 02:34 PM




All times are GMT -7. The time now is 07:47 PM.