Excel Array with condition

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
I just want to look up the dates in A column with in the array in F column.If the date in column A is less than from the first starting date in column F, there is no a desired result. But if the date in A3 is between the date in F2 and F3, multiply the amount in column B3 by G2. If the date in A4 is greater or equal to F3 and F4, multiply the amount in B4 by G3 etc. What would be the best Excel Function to calculate this type of large date in Excel.



ABCDEFG
1DateAmountDesired resultstarting Date increase Rate
212/31/20181,000006/30/20195%
307/30/20191,2006012/31/20197.5%
412/31/20191,26094.5006/01/20209%
506/15/20201354.50121.5012/31/202012%
612/31/20201476.40177.16
7

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

Thank you for your help and time
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try,

1] Assume your "Result Table" in A1:C6, and "Lookup Table" in F1:G5

2] In "Desired result" C2, copied down :

=IFERROR(LOOKUP(9^9,G$2:G$5/(F$2:F$5<=A2))*B2,0)

Regards
Bosco
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,787
Members
449,188
Latest member
Hoffk036

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