Weighting/ Flighting Data

KingCal

New Member
Joined
Jan 25, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Good Morning,

I am hoping some of the brains on here can help with some a data query on Excel. I'm trying to flight costs across several Months/ Quarters correctly so i can view this accurately on one of my dashboards.

Eg. A sale that i make for £10,000 will have a duration from 01.03-30.04 - When viewing on my dashboard the full value gets attributed to March as this is the start date of the sale but i need it to Flight/Weight across the months/Quarters correctly allocating along the way. Example attached to hopefully help my request make sense.

Is it as simple as finding out how many days are between 2 dates, dividing the full total by those days and then manually allocating per sale. If so, thats alot of manual work as my business makes 1,000s of sales a year.

Any advise or ideas are most welcome. I'm fairly new to Excel but trying to make this dashboard work for my business

Thanks in Advance :)
 

Attachments

  • Screenshot 2023-01-25 at 11.45.17.png
    Screenshot 2023-01-25 at 11.45.17.png
    12.5 KB · Views: 6
  • Screenshot 2023-01-25 at 11.46.05.png
    Screenshot 2023-01-25 at 11.46.05.png
    98 KB · Views: 6

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I probably made this more complicated than it actually is. This is for months, and has helper rows. For quarters, you could add another helper row. Also, it will only work with end dates in the same calendar year as the start date. You have 365 so a Let and Lambda exercise would be more efficient. I have that will try to come up with something different.

WorkBook1.xlsx
ABCDEFGHIJKL
1
2AmountStartEnd
3100003/15/202310/10/2023345678910
41630313031313010
5765.551435.411483.251435.411483.251483.251435.41478.47
Sheet1
Cell Formulas
RangeFormula
E3:L3E3=MONTH(EOMONTH(C3,SEQUENCE(,MONTH(D3)-MONTH(C3)+1,0,1)))
E4:L4E4=TEXTSPLIT(-DAY(C3)& IF(MONTH(D3)-MONTH(C3)>1, LEFT(",0,0,0,0,0,0,0,0,0,0,0",2*(MONTH(D3)-MONTH(C3)-1)), "")&IF(MONTH(D3)-MONTH(C3)>0,","&DAY(D3),""),",") + TEXTSPLIT(DAY(EOMONTH(C3,0))&IF(MONTH(D3)<>MONTH(C3), ","& IF(MONTH(D3)-MONTH(C3)<2,DAY(D3), ARRAYTOTEXT(DAY(EOMONTH(C3,1+SEQUENCE(,MONTH(D3)-MONTH(C3)-1,0,1))),0)&","&0),""),",")
E5:L5E5=ROUND(B3*(E4#/SUM(E4#)),2)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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