Calculating monthly costs

Confusi

New Member
Joined
Aug 1, 2011
Messages
2
I have a file with the following entries:

Frequency - NRC - MRC - Start Date – End Date<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
(1) One-off - $200 - $0 - 4/5/2011 - 4/5/2011<o:p></o:p>
(2) Monthly - $0 - $500 - 12/4/2010 - 6/3/2011<o:p></o:p>
(3) Monthly - $0 - $200 - 4/1/2011 - 6/30/2011<o:p></o:p>
(4) Quarterly - $0 - $300 - 12/1/2010 - 2/28/2011 <o:p></o:p>
(5) Quarterly - $0 - $600 - 2/25/2011 - 5/24/2011<o:p></o:p>
<o:p> </o:p>
My desired result for the Jan 2011 to Dec 2011 columns would :<o:p></o:p>
<o:p> </o:p>
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec<o:p></o:p>
(1) April is 200 while all the rest is 0.<o:p></o:p>
(2) Jan to May is 500 while Jun is 50. All the rest is 0.<o:p></o:p>
(3) Apr to Jun is 200 while the rest is 0.<o:p></o:p>
(4) Jan to Feb is 100 while the rest is 0.<o:p></o:p>
(5) Feb is 50, Mar and Apr is 200, May is 150, the rest is 0.<o:p></o:p>
<o:p> </o:p>
I still have Half-year and Yearly entries but they follow similar logic.<o:p></o:p>
<o:p> </o:p>
I can’t seem to find the best way to do this. Should I segregate the frequency first before doing the checking? But bec this is a moving file (being updated monthly) I’d like a formula that can catch all. Please help! Thanks!<o:p></o:p>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I was thinking abt this the whole night, maybe I should do a Jan to Dec columns to temporarily store the result of the month (say check if Jan is within the Start and End range) and then check if it's full month or not, then store the no. of days. At the final result field, use hard coded no of days month to calculate the days.

Does this make sense?
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,569
Members
452,926
Latest member
rows and columns

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top