#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional List

I am trying to auto generate a list on a worksheet based on conditions in
another i.e.

Worksheet 1 Contains the list below,

tree 1
Car 2
Fruit 1
tea 1

I want a list to be generated in worksheet2 containing just,

Tree
Fruit
Tea

I was hoping to do this with in sheet formula as opposed to macro etc (don't
understand them)

Thanks in Advance

Ceptor54
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional List

Select your target range in sheet 2, say A1:A20, and enter this formula in
the formula bar

=IF(ISERROR(SMALL(IF(Sheet1!$B$1:$B$20=1,ROW($A1:$ A20),""),ROW($A1:$A20))),"
",
INDEX(Sheet1!$A$1:$A$20,SMALL(IF(Sheet1!$B$1:$B$20 =1,ROW($A1:$A20),""),ROW($
A1:$A20))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ceptor54" wrote in message
...
I am trying to auto generate a list on a worksheet based on conditions in
another i.e.

Worksheet 1 Contains the list below,

tree 1
Car 2
Fruit 1
tea 1

I want a list to be generated in worksheet2 containing just,

Tree
Fruit
Tea

I was hoping to do this with in sheet formula as opposed to macro etc

(don't
understand them)

Thanks in Advance

Ceptor54



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional List

Cheers Bob,

Worked a treat

Ceptor54

"Bob Phillips" wrote:

Select your target range in sheet 2, say A1:A20, and enter this formula in
the formula bar

=IF(ISERROR(SMALL(IF(Sheet1!$B$1:$B$20=1,ROW($A1:$ A20),""),ROW($A1:$A20))),"
",
INDEX(Sheet1!$A$1:$A$20,SMALL(IF(Sheet1!$B$1:$B$20 =1,ROW($A1:$A20),""),ROW($
A1:$A20))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ceptor54" wrote in message
...
I am trying to auto generate a list on a worksheet based on conditions in
another i.e.

Worksheet 1 Contains the list below,

tree 1
Car 2
Fruit 1
tea 1

I want a list to be generated in worksheet2 containing just,

Tree
Fruit
Tea

I was hoping to do this with in sheet formula as opposed to macro etc

(don't
understand them)

Thanks in Advance

Ceptor54




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
How do you find the list option in excel on office xp angel Excel Worksheet Functions 8 June 22nd 06 09:29 PM
Conditional Drop Down List Bogo Excel Discussion (Misc queries) 2 February 16th 06 09:11 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
How do i set up conditional drop-down list Vikas New Users to Excel 3 June 23rd 05 01:17 PM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM


All times are GMT +1. The time now is 05:37 PM.

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

About Us

"It's about Microsoft Excel"