MATCH and/or INDEX formula requested

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
152
Office Version
  1. 365
Platform
  1. Windows
G'day Magicians

I have an Excel 365 spreadsheet with a number of worksheets.

One worksheet is called DivsDue and in cell L250 I would like a MATCH and/or INDEX formula that will pick up the Date from column J and the Code from from column A and look at worksheet named Banks Etc and find the Price from column C that corresponds to the Code and Date from the first worksheet.In this case $12.05. The Data in worksheet Banks Etc is manipulateable, It can be sorted or columns rearranged if necessary.
The attached examples are shortened versions of my rather large file for simplicity sake.
Any guidance will be greatly appreciated.

Old Mike
Investment Tracker.xlsx
ABCDEFGHIJKL
229COHCochlear Ltd2723-Sep-21$1.400.00%Final18-Oct-210.62%12-Aug-21
230NWHNRW Holdings Ltd2723-Sep-21$0.05100.00%Final13-Oct-212.72%12-Aug-21
231MYEMastermyne Group Ltd2723-Sep-21$0.02100.00%Final14-Oct-212.39%12-Aug-21
232VLSVita Life Sciences Ltd2723-Sep-21$0.03100.00%Interim08-Oct-212.28%12-Aug-21
233CAFCentrepoint Alliance Ltd2723-Sep-21$0.01100.00%Final08-Oct-213.70%12-Aug-21
234LAULindsay Australia Ltd2723-Sep-21$0.010.00%Final08-Oct-211.35%12-Aug-21
235LYLLycopodium Ltd2723-Sep-21$0.15100.00%Final08-Oct-213.14%12-Aug-21
236APEEagers Automotive Ltd2523-Sep-21$0.28100.00%Interim15-Oct-211.75%12-Aug-21
237CAJCapitol Health Ltd2523-Sep-21$0.01100.00%Final22-Oct-211.32%12-Aug-21
238CUPCountplus Ltd2523-Sep-21$0.02100.00%Final13-Oct-211.60%12-Aug-21
239GNEGenesis Energy Ltd2523-Sep-21$0.080.00%Final08-Oct-212.54%12-Aug-21
240BFLBSP Financial Group Ltd2824-Sep-21$0.130.00%Interim18-Oct-212.37%13-Aug-21
241IMDIMDEX Ltd3127-Sep-21$0.02100.00%Final12-Oct-210.78%16-Aug-21
242PICPerpetual Equity Investment Company Ltd3228-Sep-21$0.03100.00%Final20-Oct-212.15%17-Aug-21
243EOLEnergy One Ltd3329-Sep-21$0.060.00%Final18-Oct-210.93%18-Aug-21
244MEZMeridian Energy Ltd3329-Sep-21$0.100.00%Final15-Oct-212.15%18-Aug-21
245BOLBoom Logistics Ltd3129-Sep-21$0.010.00%Final05-Nov-215.41%18-Aug-21
246CWPCedar Woods Properties Ltd3129-Sep-21$0.14100.00%Final29-Oct-212.02%18-Aug-21
247COSCosol Ltd3430-Sep-21$0.01100.00%Final29-Oct-211.45%19-Aug-21
248PBPProbiotec Ltd3430-Sep-21$0.03100.00%Final08-Oct-211.32%19-Aug-21
249XRFXRF Scientific Ltd3430-Sep-21$0.02100.00%Final15-Oct-213.81%19-Aug-21
250NCKNick Scali Ltd3201-Oct-21$0.25100.00%Final25-Oct-211.94%20-Aug-21
251BSABSA Ltd3804-Oct-21$0.01100.00%Final03-Nov-211.56%23-Aug-21
252CAMClime Capital Ltd3905-Oct-21$0.02100.00%Interim28-Oct-211.58%24-Aug-21
253NCCNaos Emerging Opportunities Company Ltd3905-Oct-21$0.04100.00%Final25-Oct-213.30%24-Aug-21
DivsDue


and worksheet Banks Etc is ....
Investment Tracker.xlsx
ABCDEFGHIJ
31CBA13-Aug-21$104.03-1.85-1.75%$106.00$106.26$103.633,748,467$390,357,371
32NCK16-Aug-21$12.30-0.29-2.30%$12.63$12.74$12.26365,361$4,519,439
33BEN16-Aug-21$10.00-1.1-9.91%$10.85$10.85$10.0013,399,496$135,995,518
34CBA16-Aug-21$102.54-1.49-1.43%$103.55$103.63$102.423,913,742$401,099,612
35NCK17-Aug-21$12.09-0.21-1.71%$12.64$12.64$12.01311,609$3,810,304
36BEN17-Aug-21$9.86-0.14-1.40%$10.19$10.19$9.777,114,380$70,495,016
37CBA17-Aug-21$99.00-3.54-3.45%$100.68$100.90$99.003,990,475$386,079,989
38NCK18-Aug-21$12.03-0.06-0.50%$12.01$12.16$11.88281,781$3,388,225
39BEN18-Aug-21$9.950.090.91%$9.87$10.08$9.832,670,729$26,653,956
40CBA18-Aug-21$99.770.770.78%$99.49$100.57$99.283,068,552$306,701,954
41NCK19-Aug-21$12.140.110.91%$12.10$12.45$11.98370,233$4,492,306
42BEN19-Aug-21$9.990.040.40%$9.97$10.07$9.922,368,162$23,667,131
43CBA19-Aug-21$99.22-0.55-0.55%$99.12$100.07$99.102,319,533$230,627,024
44NCK20-Aug-21$12.05-0.09-0.74%$12.14$12.27$11.96376,362$4,557,032
45BEN20-Aug-21$9.80-0.19-1.90%$10.01$10.07$9.803,399,157$33,614,810
46CBA20-Aug-21$99.270.050.05%$100.00$100.70$99.252,620,966$261,160,273
47NCK23-Aug-21$11.97-0.08-0.66%$12.35$12.35$11.74391,364$4,651,476
48BEN23-Aug-21$9.810.010.10%$9.87$9.90$9.811,786,839$17,582,017
49CBA23-Aug-21$100.170.90.91%$99.89$100.17$99.621,326,874$132,705,387
50NCK24-Aug-21$11.990.020.17%$12.15$12.15$11.88284,546$3,406,900
51BEN24-Aug-21$9.900.090.92%$9.84$9.97$9.811,476,349$14,635,049
52CBA24-Aug-21$99.91-0.26-0.26%$100.51$100.60$99.751,766,246$176,699,792
53NCK25-Aug-21$12.290.32.50%$12.09$12.34$12.04298,424$3,633,046
Banks Etc
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
hi mike,

Example - Copy.xlsb
ABCDEFGHIJK
1COHCochlear Ltd2723-Sep-21$ 1.400%Final18-Oct-211%12-Aug-21 -
2NWHNRW Holdings Ltd2723-Sep-21$ 0.05100%Final13-Oct-213%12-Aug-21 -
3MYEMastermyne Group Ltd2723-Sep-21$ 0.02100%Final14-Oct-212%12-Aug-21 -
4VLSVita Life Sciences Ltd2723-Sep-21$ 0.03100%Interim08-Oct-212%12-Aug-21 -
5CAFCentrepoint Alliance Ltd2723-Sep-21$ 0.01100%Final08-Oct-214%12-Aug-21 -
6LAULindsay Australia Ltd2723-Sep-21$ 0.010%Final08-Oct-211%12-Aug-21 -
7LYLLycopodium Ltd2723-Sep-21$ 0.15100%Final08-Oct-213%12-Aug-21 -
8APEEagers Automotive Ltd2523-Sep-21$ 0.28100%Interim15-Oct-212%12-Aug-21 -
9CAJCapitol Health Ltd2523-Sep-21$ 0.01100%Final22-Oct-211%12-Aug-21 -
10CUPCountplus Ltd2523-Sep-21$ 0.02100%Final13-Oct-212%12-Aug-21 -
11GNEGenesis Energy Ltd2523-Sep-21$ 0.080%Final08-Oct-213%12-Aug-21 -
12BFLBSP Financial Group Ltd2824-Sep-21$ 0.130%Interim18-Oct-212%13-Aug-21 -
13IMDIMDEX Ltd3127-Sep-21$ 0.02100%Final12-Oct-211%16-Aug-21 -
14PICPerpetual Equity Investment Company Ltd3228-Sep-21$ 0.03100%Final20-Oct-212%17-Aug-21 -
15EOLEnergy One Ltd3329-Sep-21$ 0.060%Final18-Oct-211%18-Aug-21 -
16MEZMeridian Energy Ltd3329-Sep-21$ 0.100%Final15-Oct-212%18-Aug-21 -
17BOLBoom Logistics Ltd3129-Sep-21$ 0.010%Final05-Nov-215%18-Aug-21 -
18CWPCedar Woods Properties Ltd3129-Sep-21$ 0.14100%Final29-Oct-212%18-Aug-21 -
19COSCosol Ltd3430-Sep-21$ 0.01100%Final29-Oct-211%19-Aug-21 -
20PBPProbiotec Ltd3430-Sep-21$ 0.03100%Final08-Oct-211%19-Aug-21 -
21XRFXRF Scientific Ltd3430-Sep-21$ 0.02100%Final15-Oct-214%19-Aug-21 -
22NCKNick Scali Ltd3201-Oct-21$ 0.25100%Final25-Oct-212%20-Aug-21$ 12.05
23BSABSA Ltd3804-Oct-21$ 0.01100%Final03-Nov-212%23-Aug-21 -
24CAMClime Capital Ltd3905-Oct-21$ 0.02100%Interim28-Oct-212%24-Aug-21 -
25NCCNaos Emerging Opportunities Company Ltd3905-Oct-21$ 0.04100%Final25-Oct-213%24-Aug-21 -
DivsDue
Cell Formulas
RangeFormula
J1:J25J1=D1-42
K1:K25K1=IFERROR(INDEX('Banks Etc'!C:C,MATCH(1,('Banks Etc'!A:A=DivsDue!A1)*('Banks Etc'!B:B=DivsDue!J1),0),0),"-")
C22C22=D22-TODAY()


Please check the formula.
 
Upvote 0
You may need to adjust the ranges to suit your Bank Etc data, but try this.

Excel Formula:
=FILTER('Banks Etc'!C$2:C$1000,('Banks Etc'!A$2:A$1000=A250)*('Banks Etc'!B$2:B$1000=J250),NA())
 
Upvote 0
Solution
Many thanks for your prompt response Peter.
However when I copy that formula to the other cells in Column L the "250" references don't change to represent the Rows. I will try and see if I can adjust it?

Mike.
 
Upvote 0
Many thanks for your prompt response Peter.
However when I copy that formula to the other cells in Column L the "250" references don't change to represent the Rows. I will try and see if I can adjust it?

Mike.
OK Peter, found my problem - your solution is working perfectly for me now.
Your excellent skills and this Forum are most valuable to old incompetents like me.

Mike.
 
Upvote 0

Forum statistics

Threads
1,223,964
Messages
6,175,659
Members
452,666
Latest member
AllexDee

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