chanman525
IS-IT--Management
Could I get some help on getting some if statements kicked off with the data below? Here is what I am looking to do.
Example: if the service period covers May through July we will want the spreadsheet to show NULL values for Feb through April AND August through January. We will want to show the three months of May, June and July with dollar values in those cells on the 4-5-4 schedule. If the invoice was for $2,500 the values would be May = $769, June = $962 and July = $769
Now to add to the pain would it be possible to add this into the formula.
Start Date: IF the start date is between the first and fifteenth of the month the start period is the current month. IF the start date is greater than the 15th then the start date is the current month PLUS one. Basically the charge falls into the next month.
End Date: IF the end date is less than or equal to the 15th then the end date is the current month MINUS one. Basically the charge fails into the previous month. IF the end date is greater than the 15th then the end date is the current month.
The idea is that the begin and end date along with the 4 and 5 week values are plugged in and then the months populate accordingly across the page so there is no need to manually type the value for the 4 and 5 week data under each month.
I have truncated the data below just for ease of use and it contains only the fields that are a part of this post.
Thank you for your time, expertise and help.
Working in XP with Excel 2007.
4 5 4 4 5 4
begins ends 4Week 5Week February March April May June July
2/1/2009 2/28/2009 $7,591 $9,489 $7,591
5/1/2009 6/30/2009 $465 $581 $465 $581
4/1/2009 7/31/2010 $231 $288 $231 $231 $288 $231
I tried getting the data to align but it just is not getting there in the final post. the 454454 numbers at the top represent the 4 week or 5 week month so it should start on February. The values for each month should align with the begins and ends dates.
Example: if the service period covers May through July we will want the spreadsheet to show NULL values for Feb through April AND August through January. We will want to show the three months of May, June and July with dollar values in those cells on the 4-5-4 schedule. If the invoice was for $2,500 the values would be May = $769, June = $962 and July = $769
Now to add to the pain would it be possible to add this into the formula.
Start Date: IF the start date is between the first and fifteenth of the month the start period is the current month. IF the start date is greater than the 15th then the start date is the current month PLUS one. Basically the charge falls into the next month.
End Date: IF the end date is less than or equal to the 15th then the end date is the current month MINUS one. Basically the charge fails into the previous month. IF the end date is greater than the 15th then the end date is the current month.
The idea is that the begin and end date along with the 4 and 5 week values are plugged in and then the months populate accordingly across the page so there is no need to manually type the value for the 4 and 5 week data under each month.
I have truncated the data below just for ease of use and it contains only the fields that are a part of this post.
Thank you for your time, expertise and help.
Working in XP with Excel 2007.
4 5 4 4 5 4
begins ends 4Week 5Week February March April May June July
2/1/2009 2/28/2009 $7,591 $9,489 $7,591
5/1/2009 6/30/2009 $465 $581 $465 $581
4/1/2009 7/31/2010 $231 $288 $231 $231 $288 $231
I tried getting the data to align but it just is not getting there in the final post. the 454454 numbers at the top represent the 4 week or 5 week month so it should start on February. The values for each month should align with the begins and ends dates.