Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Days by month and IF statement.


To find the number of days in a month, use this formula:
=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))

Then just do that*500

To be honest with you, the easiest way to calculate charge is this:

=4706.42+(C1-10240)*.9255

The reason why is because EVERY month, even if it only has 28 days, you
will do over 10240 units, so you just want to find out what is the
remainder and multiple it by .9255

Ok. so put it all together in 1 formula:

=4706.42+(DAY(DATE(YEAR(A1),MONTH(A1)+1,0))-10240)*.9255

Not pretty, but it works


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=563463

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
holiday dates bucci Excel Worksheet Functions 4 June 15th 06 09:35 AM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM
Calculate Days in a Month LGG Excel Discussion (Misc queries) 6 January 13th 06 06:31 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
Calculate running target by days in the month Robert Excel Worksheet Functions 2 July 4th 05 06:14 AM


All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"