Embedded formulas

bclaredal

Board Regular
Joined
May 3, 2013
Messages
98
I've got an interesting one that I hope someone can help me with.

I have a spreadsheet with two drop-down lists and two cells to fill in and this populates data in a table so that a journal entry can be entered into the accounting software.

The drop-down lists consist of the following:
1. Type = Annual or Prorated
2. Month = months of the year showing first three letters of the month

I have figured out how to calculate the prorated amount per month but I am struggling on how to calculate the annual amount. The annual amount depends on what month is selected in the month drop-down list, and of course annual being selected in the Type drop-down list. For each account that I have listed in column B, if annual is selected, and say for example JUL (July) is selected in the month, I want everything from April to July included in July's data and all other month's going forward to have their prorated amount.

Here's an example for you:

If the data was stating the following for each month: April = 1, May = 2, June = 3, etc. until March = 12. If I select July in the month drop-down list, I would want July's data total to be 10 (1+2+3+4) and August to March to show their correct amounts (i.e., 5 to 12).

I would be very grateful if someone could help me with this. The solution can be macro or formula generated, I have no preference.

Let me know if you require further information.

Thanks for you help!!!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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