Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Listbox Selection Displays the Column.

I have the following data set:

Col A Col B Col C
S&P NASD Dow
1% 3% 4%


I want to have a list box that lists the column titles (S&P, NASD,
Dow) in the text box (vertically) and then when you click on the
title, the whole column with its data appears on another sheet or in
another section of the current sheet. Is this possible?

Thanks for your help,
Scott

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Listbox Selection Displays the Column.

Perhaps a set up using data validation which gives the required functionality?

A sample construct is available at:
http://www.savefile.com/files/459852
Select header n display col data in other sht.xls

Assume source data within A1:C9 in Sheet1
headers in A1:C1, data in rows 2 to 9 (8 rows)

Click Insert Name Define
and create a named range
MyRange: =Sheet1!$A$1:$C$1

Then in Sheet2,
create a Data Validation list
for selecting the desired col header in say, B2

Select B2, click Data Validation,
Allow: List, Source: =MyRange

Then select B3:B10 (for the 8 rows of data),
place the multicell array formula below into the formula bar
and press CTRL+SHIFT+ENTER:
=IF(B$2="","",OFFSET(Sheet1!$A$2:$A9,,MATCH(B$2,My Range,0)-1))

Test it out. B3:B10 will return the col data for the header selected in B2
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Scott Halper" wrote:
I have the following data set:

Col A Col B Col C
S&P NASD Dow
1% 3% 4%


I want to have a list box that lists the column titles (S&P, NASD,
Dow) in the text box (vertically) and then when you click on the
title, the whole column with its data appears on another sheet or in
another section of the current sheet. Is this possible?

Thanks for your help,
Scott


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Listbox Selection Displays the Column.

On Feb 2, 1:27 am, Max wrote:
Perhaps a set up using data validation which gives the required functionality?

A sample construct is available at:http://www.savefile.com/files/459852
Select header n display col data in other sht.xls

Assume source data within A1:C9 in Sheet1
headers in A1:C1, data in rows 2 to 9 (8 rows)

Click Insert Name Define
and create a named range
MyRange: =Sheet1!$A$1:$C$1

Then in Sheet2,
create a Data Validation list
for selecting the desired col header in say, B2

Select B2, click Data Validation,
Allow: List, Source: =MyRange

Then select B3:B10 (for the 8 rows of data),
place the multicell array formula below into the formula bar
and press CTRL+SHIFT+ENTER:
=IF(B$2="","",OFFSET(Sheet1!$A$2:$A9,,MATCH(B$2,My Range,0)-1))

Test it out. B3:B10 will return the col data for the header selected in B2
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---



"Scott Halper" wrote:
I have the following data set:


Col A Col B Col C
S&P NASD Dow
1% 3% 4%


I want to have a list box that lists the column titles (S&P, NASD,
Dow) in the text box (vertically) and then when you click on the
title, the whole column with its data appears on another sheet or in
another section of the current sheet. Is this possible?


Thanks for your help,
Scott- Hide quoted text -


- Show quoted text -


Many thanks Max. It is truly appreciated.

Scott

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Listbox Selection Displays the Column.

You're welcome, Scott.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
On Feb 3, 1:19 am, "Scott Halper"
wrote:
Many thanks Max. It is truly appreciated.
Scott


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Macro Help excelmad Excel Discussion (Misc queries) 7 January 19th 07 10:04 PM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"