Content from entire column in other column

rme0108

New Member
Joined
Feb 10, 2012
Messages
9
Hi,
I need to do the following:
I have a list of cities on one sheet. The headers are the counties and below each (6 columns) are all the cities names
I need to be able to show all the cities of a specific column on a nother sheet (autofilling column down with all cities names) when i type the name of the related county in an adjacent cell.
thanks for the help
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi

Maybe try:

Where you are typing in Country into cell B1 in sheet 2

Cell A1 Sheet2 = :

=IF(OFFSET(INDEX(Sheet1!$A$1:$F$1,MATCH(Sheet2!$B$1,Sheet1!$A$1:$F$1,0)),ROW(),0)=0,"",OFFSET(INDEX(Sheet1!$A$1:$F$1,MATCH(Sheet2!$B$1,Sheet1!$A$1:$F$1,0)),ROW(),0)) - copy down
 
Upvote 0
You are a genius. Thank you so much. All I had to do is change the cell refs and convert the , into ; (don't know how the , got there in the first place).
Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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