Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2014, 07:06 AM
shilabrow shilabrow is offline Formula to divide if no of days in month is 28 Windows Vista Formula to divide if no of days in month is 28 Office 2007
Advanced Beginner
Formula to divide if no of days in month is 28
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default Formula to divide if no of days in month is 28

I am not getting this right - All Help appreciated.
I want to divide if no of days in month is 28 and if not then the other criteria.



=K6/if(weeknum(today())=28,(Month(today())*12,(MONTH(T ODAY())-1)*12). I think am suppose to reference the 28days in a different way but I am unsure and dont know how. Thanks for the help!!

Last edited by shilabrow; 06-25-2014 at 08:14 AM.
Reply With Quote
  #2  
Old 06-25-2014, 08:29 AM
whatsup whatsup is offline Formula to divide if no of days in month is 28 Windows 7 64bit Formula to divide if no of days in month is 28 Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

Hi
Quote:
if no of days in month is 28
In your formula you don't obtain this but the "weeknum". The appropiate function should be DAY() instead of WEEKNUM()
Reply With Quote
  #3  
Old 06-25-2014, 09:05 AM
shilabrow shilabrow is offline Formula to divide if no of days in month is 28 Windows Vista Formula to divide if no of days in month is 28 Office 2007
Advanced Beginner
Formula to divide if no of days in month is 28
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

Thanks, Whatsup - Help still needed

=K6/if(day(today())=28,(Month(today()),(MONTH(TODAY())-1)*12)). when I use this I get error. I see your point though but I still need help in making the formula work.
Reply With Quote
  #4  
Old 06-25-2014, 03:24 PM
whatsup whatsup is offline Formula to divide if no of days in month is 28 Windows 7 64bit Formula to divide if no of days in month is 28 Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

Check on the parentheses, there is something wrong, excel doesn't allow to enter the formular, but gives you some idea where to look.

Maybe that will work for you, but make sure that it meets your requirement:
=K6/IF(DAY(TODAY())=28,MONTH(TODAY()),(MONTH(TODAY())-1)*12)
Reply With Quote
  #5  
Old 06-25-2014, 08:05 PM
shilabrow shilabrow is offline Formula to divide if no of days in month is 28 Windows Vista Formula to divide if no of days in month is 28 Office 2007
Advanced Beginner
Formula to divide if no of days in month is 28
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

Thanks Whatsup. This worked. Appreciate !!!
=k6/IF(DAY(TODAY())=28,MONTH(TODAY()),MONTH(TODAY())-1)*12
Reply With Quote
  #6  
Old 06-26-2014, 12:17 AM
macropod's Avatar
macropod macropod is offline Formula to divide if no of days in month is 28 Windows 7 32bit Formula to divide if no of days in month is 28 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by shilabrow View Post
I am not getting this right - All Help appreciated.
I want to divide if no of days in month is 28 and if not then the other criteria.
Surely the only time that is true is if the month is February in a non-leap year. For the most part, therefore, all you need test with whether the month is '2' and the year divided by '4' <> '0'. I know there are more sophisticated leap-year tests, but that will suffice for any year from 1901 to 2099, inclusive.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Formula Showing Revenue Recognition Based on Days and Months stratcat Excel 4 03-16-2014 10:09 AM
Formula to divide if no of days in month is 28 Formula To Calculate Countdown Days To Project Completion Catherine Project 1 02-19-2014 11:15 AM
Formula for week days only gbaker Excel 5 02-15-2014 01:07 AM
Formula to count entries as per month, year and submission wise from different sheets pinkacidpunk Excel 1 05-28-2013 08:26 AM
Formula to divide if no of days in month is 28 formula divide by serio error vthomeschoolmom Excel 1 04-18-2012 02:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft