1
   

Formula For Quattro Pro

 
 
Reply Sat 3 Jan, 2004 09:09 pm
I need a Formula for Quattro Pro where it automatically puts in every Sunday of a certain year.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 629 • Replies: 1
No top replies

 
satt fs
 
  1  
Reply Sat 3 Jan, 2004 09:44 pm
I do not use Quattro Pro, but I can suggest a hint for calculating the day of the week as follows:
For integers y (for year), m (for month), and d (date), on the GregorianCalendar, if you calculate an integer julianDay as

julianDay=d - 32075 + 1461*(y + 4800 + (m - 14)/12)/4 + 367*(m-2 - (m-14)/12 * 12)/12 - 3*((y + 4900 + (m -14)/12)/100)/4

(This uses the integer division like in the language C. Do not arbitrarily optimize the formula.)

then the integer weeknum given as

weeknum = (julianDay + 1) % 7
((integer)%7 means the residual of the integer divided by 7)

means the number for the day of the week (0: Sunday; 1: Monday;..;6: Saturday).

.. applicable until AD 4,000.
0 Replies
 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » Formula For Quattro Pro
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/29/2025 at 10:38:51