Bifurcate total expenses on the basis of calendar months other than AD

MandeepBajimaya

New Member
Joined
Jun 2, 2021
Messages
20
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have an Excel file where the total expenses for a certain period are mentioned. The issue is the dates are in Bikram Sambat calender (This is in Nepali calender which is not recognized by Excel). I want them to be allocated on the basis of months. EG: If I have paid expenses from 4th April to 3rd July, the amount should be allocated for 26 days of April, 31 days of May, 30 days of June and 3 days of July. Unfortunately for BS calender. I have tried some working as well but couldn't succeed though. I have also attached my workings.
Nepali expenses.xlsx
BCDEFGHIJKLMNOPQR
3Year Start2079
4Year End2080
5
6
7313131302930293030313231365
8040506070809101112010203
92079.042079.052079.062079.072079.082079.092079.102079.112079.122080.012080.022080.03
10ShrawanBhadraAsojKartikMangsirPoushMaghFalgunChaitraBaishakhJesthaAshadhTotal
1101.04.207930.12.207927112,0001,3731,3731,3731,3281,2841,3281,2841,3281,328---12,000
1201.04.207925.11.207923612,0001,5761,5761,5761,5251,4751,5251,475-1,525---12,254
13112,0001,5761,5761,5761,5251,4751,5251,4751,5251,52513,780
14112,000-
152079.04.012079.11.2523612,0001,5761,5761,5761,5251,4751,5251,475----1,57612,305
16112,000-
17112,000FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE-
18112,000-
19112,000-
20112,000-
Sheet1
Cell Formulas
RangeFormula
C4C4=C3+1
R7,R11:R20R7=SUM(F7:Q7)
F9F9=$C$3&".04"
G9G9=$C$3&".05"
H9H9=$C$3&".06"
I9I9=$C$3&".07"
J9J9=$C$3&".08"
K9K9=$C$3&".09"
L9L9=$C$3&".10"
M9M9=$C$3&".11"
N9N9=$C$3&".12"
O9O9=$C$4&".01"
P9P9=$C$4&".02"
Q9Q9=$C$4&".03"
F11:Q12F11=IF(AND(OR(VALUE(RIGHT($B11,4))=$C$3,VALUE(RIGHT($B11,4))=$C$4),MID($B11,4,2)<=F$8,OR(MID($C11,4,2)>=G$8,VALUE(RIGHT($C11,4))=$C$4)),$E11/$D11*F$7,0)
F13:N13F13=IF(AND(VALUE(RIGHT($B12,4))=$C$3,MID($B12,4,2)<=F$8),$E12/$D12*F$7,0)
F15:Q15F15=IF(AND(LEFT($B15,7)<=F$9,LEFT($C15,7)>=G$9),$E15/$D15*F$7,0)
F17:P17F17=F9>G9
D11:D20D11=DATEDIF(B2A(B11),B2A(C11),"d")+1
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What difference is there between the Bikram Sambat calender and the Gregorian Calendar? As in your example it seems to have the same number of days in April, May and June.
 
Upvote 0
What difference is there between the Bikram Sambat calender and the Gregorian Calendar? As in your example it seems to have the same number of days in April, May and June.
In some months, there are 32 days in one month and 32 days in a month is not considered by Excel. If you see the excel file, there is 32 days in second last month.
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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