Dependent dropdownlist on Excel table with subheaders

BURTPRI

New Member
Joined
May 8, 2020
Messages
16
Office Version
  1. 2010
Platform
  1. Windows
Hello everybody! This is my first time posting a thread and I really hope someone here can help me quick enough.
I have the following "table" (in quotes bc I couldn't format as an actual Excel table) that brings 3 identical subheaders categories (ADDRESS, EMPLOYEES and EMPLOEMAILS) to each header (the Company).
I need to create three cells with dropdown lists for each subheader category based on the main dropdown list where the user chooses the Company.
Please note that Row 1 brings the headers, Row 2 the subheaders and Raws 3 and 4 the data collected.
I hope I was able to express my challenge well.
Thank you very much if you read this far.

Untitled.jpg
 
Yes. That's because DV formulas are set to analyze up to 10th worksheet row.
Check the RED, bolded and underlined entry below. With this you tell CountA formula to count nonempty cells in range from 3rd to 10th row.
If you need more rows to check just change it to suit your needs. I.e. If the biggest company has 50 employees just change this parameter to 53 (because employee list starts from 3rd row).

=OFFSET(INDIRECT(ADDRESS(3;MATCH(B15;A1:BR1;0);1));0;0;COUNTA(INDIRECT(ADDRESS(3;MATCH(B15;A1:BR1;0);1)&":"&ADDRESS(10;MATCH(B15;A1:BR1;0);1)));1)
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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