Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a list of data in a sheet and I want to extract into a new sheet
values based on a condition . E.g. Column A has 100 rows of data. Column B has a grouping e.g. Dept A, Dept B, Dept C etc . I want to extract into another sheet any data from column A based on the value in column B (say Dept B). Could you advise on the best way? |
#2
![]() |
|||
|
|||
![]()
Hi!
Here's one way... Assume the data in sheet1 is in the range A1:B100 On sheet2 in cell A1 you have a drop down list of the departments: Dept A, Dept B, Dept C etc.. Use this array formula entered using the key combo of CTRL,SHIFT,ENTER to extract the corresponding data from sheet1 based on the selection made from the drop down: =IF(COUNTIF(Sheet1!B$1:B$100,A$1)=ROWS($1:1),INDE X(Sheet1!A$1:A$100,SMALL(IF(Sheet1!B$1:B$100=A$1,R OW($1:$100)),ROW(1:1))),"") Copy down to enough cells to cover the maximum number of occurrences of any single department. For example, if Dept B appears 20 times and that is the most of any department then copy the formula to at least 20 cells. Biff "Neil" wrote in message ... I have a list of data in a sheet and I want to extract into a new sheet values based on a condition . E.g. Column A has 100 rows of data. Column B has a grouping e.g. Dept A, Dept B, Dept C etc . I want to extract into another sheet any data from column A based on the value in column B (say Dept B). Could you advise on the best way? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Return Multiple Results with Lookup | Excel Worksheet Functions | |||
How do I lookup and return different values when the lookup value. | Excel Discussion (Misc queries) | |||
Lookup values in a list and return multiple rows of data | Excel Worksheet Functions | |||
How to look up and return multiple values | Excel Worksheet Functions |