Calculate Range with automatic defined dimension

earthworm

Well-known Member
Joined
May 19, 2009
Messages
773
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I need to calculate profit based on defined range . That is to multiple all data days from 6 column and multiple it by 6 column however on the last column I want the second last rate to apply on the last column . Please help I tried every possible technique i know and still couldnt figure it out . Please help

P.S : I am using office 2016


Calculation.xlsx
ABCDEFGHIJKLMNOPQ
2Booking DateMaturity DateDaysAmountJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21
304-03-202108-08-2021157500,000.005.00%5.50%6.00%6.25%4.50%7.40%6.30%6.20%7.00%
4
5Days28303130317157
6Answer2,301.372,568.491,910.963,041.102,675.34594.5213,091.78(A)
7Required Answer2,301.372,568.491,910.963,041.102,675.34604.1113,101.37(B)<<< This is what I want
8
9Single Formula Answer13,091.78(A)
10
11Required Answer13,101.37(B)
Sheet1
Cell Formulas
RangeFormula
C3C3=B3-A3
M5:M7M5=SUM(G5:L5)
G6:L6G6=G3/365*G5*$D$3
G7:K7G7=G3/365*G5*$D$3
L7L7=K3/365*L5*$D$3
G9G9=SUMPRODUCT(INDEX(E3:M3,MATCH(DATE(YEAR(ROW(INDIRECT(A3&":"&B3-1))),MONTH(ROW(INDIRECT(A3&":"&B3-1))),1),$E$2:$M$2,1))/365)*D3
G11G11=M7
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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