Array index problems, need assistance or any advice to help to create formula to enable to operate worksheet.

teresafinance

New Member
Joined
Dec 8, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hi All, I am trying to figure out a formula that find the data of families with one, two, three, four, or five children in our database. In the first worksheet is where the data is compiled. Column 1 - Family ID, Colum 2 - No of children in Family, and column 3 Student IDs relevant to each family. In worksheet 2 I have the same data that is extracted from our system on a ms query that has the Student ID listed.

I have attached an example of what I am working with. What formula would I need to put into cell c3:C1500 to obtain the information needed? I know very little about Index and arrays and what I have tried thus far is not working and returns a #N/A result.
 

Attachments

  • Snippit.PNG
    Snippit.PNG
    43.1 KB · Views: 10
OK, see if this helps.

teresafinance_1.xlsx
ABC
1Family IDStudent IDStudent Name
220221000Adam
320221001Aarron
420231002Peter
520231003Rachel
628411004Phoebe
728411005Mark
824051006Calum
920261007Aiden
1023781008Myra
1123771009Petra
1223781010Michael
1320281011Ollie
1426911012Kaden
1523311013Ryan
Sheet2


teresafinance_1.xlsx
ABC
1Family IDNo of ChildrenStudent ID
2202221000
3202221001
4202321002
5202321003
6284121004
7284121005
8240531006
9202621007
10237831008
11237711009
12237831010
13202831011
14269121012
15233111013
Sheet1
Cell Formulas
RangeFormula
C2:C15C2=INDEX(Sheet2!B:B,AGGREGATE(15,6,ROW(Sheet2!B$2:B$15)/(Sheet2!A$2:A$15=A2),COUNTIF(A$2:A2,A2)))
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,215,032
Messages
6,122,772
Members
449,095
Latest member
m_smith_solihull

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