In G1 as an example:
=if(day(d1)=1,F41*30,ROUND(F44*(30-(DAY(D44-1))),2)
I don't know if your 41 and 44 are meant to be absolute or relative, but I
am sure you can work that out.
--
Regards,
Tom Ogilvy
"jln via OfficeKB.com" wrote:
OK what i have is a dates in column D. in column G i have formuals
If the date in column D is = first day of the month then use =F41*30
if date in column D is greater then first day of month then use =ROUND(F44*
(30-(DAY(D44-1))),2)
Help i need to add code that will do is to a macro that im running.
--
Message posted via http://www.officekb.com