Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I need a formula which will return the number of days in the given month i.e January = 31, April = 30. Can this be achieved with reference to" Today()". The following conditional format formula, which I currently use, assumes that there are always 31 days in every month which obviously produces inaccurate results for many months of the year:
=IF(M4TODAY(),0,IF(N4=0,IF(((TODAY()-B4)<31),(TODAY()-B4)*(G4*0.0328767%),(G4*0.0328767%)*31),0)) I would like to replace "31" in the above with a formula that returns the correct number of days for the given month. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Wed, 4 Feb 2015 18:27:41 +0000 schrieb Quilp: I need a formula which will return the number of days in the given month i.e January = 31, April = 30. Can this be achieved with reference to" Today()". The following conditional format formula, which I currently use, assumes that there are always 31 days in every month which obviously produces inaccurate results for many months of the year: the days of todays month is: =DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0)) Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi again,
Am Wed, 4 Feb 2015 20:09:55 +0100 schrieb Claus Busch: =DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0)) or: =DAY(EOMONTH(TODAY(),0)) Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
#4
![]() |
|||
|
|||
![]()
Thanks, Claus, you always seem to be the guy who solves my problems! Could I trouble you to enter your suggested formula into the long conditional formula which I included in my original posting - I am unsure I understand what it is that I need to enter?
|
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Thu, 5 Feb 2015 14:13:55 +0000 schrieb Quilp: Could I trouble you to enter your suggested formula into the long conditional formula which I included in my original posting - I am unsure I understand what it is that I need to enter? try: =IF(AND(TODAY()-B4<DAY(EOMONTH(TODAY(),0)),N4=0),(TODAY()-B4)*G4*0.0328767%,G4*0.0328767%*DAY(EOMONTH(TODAY( ),0)))*(M4<=TODAY()) Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
#6
![]() |
|||
|
|||
![]() Quote:
Taking row 7, L7 now shows £1.01 whereas it should show £1.12. Bridging Loan 4 02/06/2014 28/02/2015 249 £0.00 £110.22 £110.22 £6.56 £0.55 Yes £0.04 £1.12 0 Bridging Loan 4 02/06/2014 28/02/2015 249 £0.00 £110.22 £110.22 £6.56 £0.55 Yes £0.04 £1.01 0 Any suggestions? Regards Quilp |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel to make the days cary over month to month automaticly | New Users to Excel | |||
Number of days in month counted from shortened name of month & yea | Excel Worksheet Functions | |||
Days per month for calculating storage days | Excel Programming | |||
Days per month for calculating storage days | Excel Worksheet Functions | |||
formula for days in month - days left??? | Excel Programming |