Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

I fixed my problem with Excell, now I have another question.

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU
 
hedgehog Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Dec-04-09 02:07 PM
Original message
I fixed my problem with Excell, now I have another question.
I found out that if yu check the "high contrast" button the Accesibility Options in the control panel, it locks the screen image in Excell to black type on a white background. Your cells will print in any color you slect, but you won't see the color selections on the monitor.


Now, my question:

I often do spread sheets based on pay periods which would have dates set for the 15 and last of each month. Is there a way to generate the fill for this? The best I can do is get Excell to insert every 15 days, which soon gets off-track.

I want this: 1/15/10, 1/31/10, 2/15/10, 2/28/10, 3/15/10, 3/31/10 etc.

I get this: 1/15/10, 1/30/10, 2/13/10, 2/28/10, 3/15/10, 3/30/10 etc
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Dec-04-09 02:32 PM
Response to Original message
1. I have used a workaround
It's not elegant but it works.

I fill one column with all the fifteenths and another column with all the 'lasts.' (If you start with a 31 month, OpenOffice figures out the shorter months - I expect excell will too.)

Then I cut/paste one column into the other.

Then I run a sort on the column.

Presto!

Printer Friendly | Permalink | Reply | Top
 
Dead_Parrot Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Dec-05-09 03:59 AM
Response to Original message
2. This should do the trick:
=if(day(a1)=15,(eomonth(a1,0),a1+16)

So, assuming A1 is the previous/first date in the series:
>If the previous date is the 15th, find the last day of that month;
>>Otherwise, we assume it's the end of the month - add 16 days to find the 15th of the following month.

If you need this for 2000 or earlier (ie, no 'eomonth' function) let me know - it's fiddly but do-able.

Note that it will probably forget it's dealing with dates, and chuck the date serials out (numbers around 40,000 at the moment) - format the cells to 'date' manually to restore sanity.
Printer Friendly | Permalink | Reply | Top
 
Dead_Parrot Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Dec-05-09 04:13 PM
Response to Reply #2
3. Oops
Sorry, that should be: =if(day(a1)=15,eomonth(a1,0),a1+16) - no ( before the eomonth call. Brain not connected to fingers. :)
Printer Friendly | Permalink | Reply | Top
 
struggle4progress Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Dec-05-09 05:52 PM
Response to Original message
4. You can do something like this using a nested if:
Say column D represents one of 24 semimonthly payment periods in the year:
Set D2 to 1
Put =IF(D2 <24,D2+1,1) in D3 and drag down to fill the column 1, 2, 3, 4, 5 , ... , 23, 24, 1 , ...

Say column E represents one of 12 months in the year:
Set E2 to 1
Put =ROUND(D2/2,0) in E3 and drag down to fill the column 1, 1 , 2, 2, 3, .... 11, 12, 12 , 1 , ...

Say column F represents one of 24 monthly pay days in the year
-- we'll get to the rest of this in a minute

Say column G represents the year:
Set G2 to 2
Put =IF(D2<24,G2,G2+1) in G3 and drag down to fill the column 2010, 2010, ... 2010, 2011, 2011, ...

Now finish with column F
Put
=IF(MOD($D2,2)=1,15,IF(OR(AND($E2<8,MOD($E2,2)=1),AND($E2>7,MOD($E2,2)=0)),31,IF($E2=2,IF(MOD(G2,4)=0,29,28),30)))
into F2 and drag down to fill the column 15, 31, 15, 28, 15, 31, ...

Say column H represents the date
Put =DATE(G2,E2,F2) in H2 and drag down to fill the column

I did this in "Numbers" but something entirely similar should work in excel

Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun May 05th 2024, 06:53 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC