Here is what I am trying to do. We get 6.67 hours a month vacation. I want a cell that will calculate 6.67 x the month. So that it will automatically change on the 1st of each month. Is there a way to do this.
Thanks
Here is what I am trying to do. We get 6.67 hours a month vacation. I want a cell that will calculate 6.67 x the month. So that it will automatically change on the 1st of each month. Is there a way to do this.
Thanks
try this, and tell me if it works:
=IF(DAY(TODAY())=1),MONTH(TODAY())*6.67,"")
that formula will mulitply month (ie, Jan=1, Feb=2, etc) times 6.67
it will only do the calculation if it is the first of the month
I copied and pasted the info into a cell and it says that the formula that
you typed has an error.
Hi,
Just a extra )
Try
=IF(DAY(TODAY())=1,MONTH(TODAY())*6.67,"")
Warning - Please stop Spam posting duplicate posts !!
VBA Noob
Last edited by VBA Noob; 02-16-2007 at 03:18 PM.
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
OK it took that but the cell is blank. The cell should show 13.34 right?
6.67 for January 1
6.67 for February 1
13.34 total right
Why is the cell blank
Try this mod of BigBas formula
=IF(MONTH(TODAY())=2,MONTH(TODAY())*6.67,"")
VBA Noob
It sounds like you don't need the IF statement. Try this:
=MONTH(TODAY())*6.67
=MONTH(TODAY())*6.67
That work perfectly exactly what I was looking for.
Thanks
and you only had to post once not 4 times
VBA Noob
I considered doing it that way, but it was hard to do without more info. If he had some sort of daily total setup, I was afraid that it would add 6.67 for each day of the month.Originally Posted by jasoncw
Either way, I'm glad we found a suitable solution.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks