excel date formula help

Thread Tools
 
Search this Thread
 
Old 04-03-2007, 01:11 PM
  #1  
Registered User
Thread Starter
 
sc0013z's Avatar
 
Join Date: 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
sc0013z is offline  
Old 04-03-2007, 01:29 PM
  #2  
Registered User
iTrader: (2)
 
jvick125's Avatar
 
Join Date: Mar 2005
Location: Monterey
Posts: 10,375
Car Info: Sline
what are you trying to do?
jvick125 is offline  
Old 04-03-2007, 01:33 PM
  #3  
Registered User
iTrader: (15)
 
SubyN00by's Avatar
 
Join Date: Aug 2005
Location: Salinas, CA
Posts: 12,522
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?
SubyN00by is offline  
Old 04-03-2007, 01:42 PM
  #4  
Registered User
Thread Starter
 
sc0013z's Avatar
 
Join Date: 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
sc0013z is offline  
Old 04-03-2007, 01:58 PM
  #5  
Registered User
iTrader: (15)
 
SubyN00by's Avatar
 
Join Date: Aug 2005
Location: Salinas, CA
Posts: 12,522
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; 04-03-2007 at 02:06 PM.
SubyN00by is offline  
Old 04-03-2007, 02:07 PM
  #6  
Registered User
Thread Starter
 
sc0013z's Avatar
 
Join Date: 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.
sc0013z is offline  
Old 04-03-2007, 02:09 PM
  #7  
Registered User
iTrader: (15)
 
SubyN00by's Avatar
 
Join Date: Aug 2005
Location: Salinas, CA
Posts: 12,522
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...
SubyN00by is offline  
Old 04-03-2007, 02:14 PM
  #8  
Registered User
Thread Starter
 
sc0013z's Avatar
 
Join Date: 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.
sc0013z is offline  
Old 04-03-2007, 02:25 PM
  #9  
Registered User
iTrader: (15)
 
SubyN00by's Avatar
 
Join Date: Aug 2005
Location: Salinas, CA
Posts: 12,522
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.
SubyN00by is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
cabe
Ongoing Projects
1
08-22-2004 02:53 PM
SmokinALLFOURS
Tri-State
3
04-02-2004 05:34 AM
leegina
For Sale by Members
11
04-21-2003 02:34 PM



Quick Reply: excel date formula help



All times are GMT -7. The time now is 06:55 PM.