Get result based on dates and assumption

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
290
Office Version
  1. 365
Platform
  1. Windows
Based on dates and assumption.xlsx
ABCDEFG
1dd-mm-yyyyFormula Requestdd-mm-yyyy
2DateReadingto get ResultDateAssumption
316-06-20201275.00135.00B3-G320-05-20201140.00
414-07-20201360.00220.00B4-G3
519-08-20201520.0040.00B5-G421-07-20201480.00
611-09-20201611.00131.00B6-G4
722-09-20201744.664.66B7-G721-09-20201740.00
827-09-20201814.0074.00B8-G727-11-20202220.00
930-09-2020Blank" "
1028-12-2020Blank" "
Sheet1

Excel 365
Kindly help me with a formula in Column C. Taking into account dates in Column A and B, output required in Column C, which should be based on relevant dates in
Columns F and G. Thanking you,
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Dear sirs, I may kindly be excused for reopening the issue. In C3 I get 1275(B3) and not 135(B3-G3). Can you please help me.
I once again request I may be pardoned if it is not permitted to reopen the thread. Thanking you, sirs.
 
Upvote 0
Compare what you've typed with my solution, it works. I have 135 in C3.
All figures are exactly as you've requested.
 
Upvote 0
In B3
Excel Formula:
=LET(rb,B3:B10,rg,G3:G10,da,A3:A10,df,F3:F10,MAP(rb,da,ROW(rb),LAMBDA(x,y,z,IF(x="","",LET(a,LARGE(IF((rg<>"")*(ROW(rg)<=z)*(df<=y),ROW(rg),""),1)-ROW(G2),b,INDEX(rg,a),IF(x="","",x-b))))))
 
Upvote 0
Improved formula in B3
Excel Formula:
=LET(rb,B3:B10,rg,G3:G10,da,A3:A10,df,F3:F10,MAP(rb,da,LAMBDA(x,y,IF(x="","",x-INDEX(rg,LARGE(IF((df<>"")*(df<=y),ROW(rg),""),1)-ROW(G2))))))
 
Upvote 0
Solution
Thank you Special-K99 sir and kvsrinivasamurthy sir. I get the answer. I am grateful to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
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