Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Extracting from a List

I have two columns of data. Column A contains a product's description.
Column B contains a stock number.

Column A (product description) will have descriptions that repeat several
times (repetition will not be in any sort order). Column B's will be unique
(i.e. there are no repetitions).

I need help with a formula that will extract the stock numbers of the first
3 occurances that match a specified product description.

For example - raw data

Shoes XY123
Gloves GL321
Shoes XY124
Mask MA456
Shoes XY125
Belt BE987
Shoes XY126
Socks SO555
Shoes XY127

The formula would extract and place in column A (new tab):

Row 1 XY123
Row 2 XY124
Row 3 XY125

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Extracting from a List

Let's say your criteria in C2 holds Shoes

D2
=INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=$C$2,ROW(IND IRECT("1:"&ROWS($B$2:$B$10)))),ROWS($1:1)))

ctrl+shift+enter, not just enter
copy down from D2 to d4


"Mike Moore" wrote:

I have two columns of data. Column A contains a product's description.
Column B contains a stock number.

Column A (product description) will have descriptions that repeat several
times (repetition will not be in any sort order). Column B's will be unique
(i.e. there are no repetitions).

I need help with a formula that will extract the stock numbers of the first
3 occurances that match a specified product description.

For example - raw data

Shoes XY123
Gloves GL321
Shoes XY124
Mask MA456
Shoes XY125
Belt BE987
Shoes XY126
Socks SO555
Shoes XY127

The formula would extract and place in column A (new tab):

Row 1 XY123
Row 2 XY124
Row 3 XY125

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Extracting from a List

try this
go to data
sort
col B
assending or dessending as u wish......... try this

second one is

give column heading and put in pivot table there also u will get ......
what u r expecting

thank u

"Mike Moore" wrote:

I have two columns of data. Column A contains a product's description.
Column B contains a stock number.

Column A (product description) will have descriptions that repeat several
times (repetition will not be in any sort order). Column B's will be unique
(i.e. there are no repetitions).

I need help with a formula that will extract the stock numbers of the first
3 occurances that match a specified product description.

For example - raw data

Shoes XY123
Gloves GL321
Shoes XY124
Mask MA456
Shoes XY125
Belt BE987
Shoes XY126
Socks SO555
Shoes XY127

The formula would extract and place in column A (new tab):

Row 1 XY123
Row 2 XY124
Row 3 XY125

Thanks!



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
Editing a list of data hot dogs Excel Discussion (Misc queries) 3 November 1st 06 12:42 PM
auto updating list Larry Excel Worksheet Functions 8 July 27th 06 01:59 PM
update data validation list with new entries?? cjtj4700 Excel Discussion (Misc queries) 10 December 12th 05 01:00 AM
Extracting data from multiple worksheets into a list mnirula Excel Worksheet Functions 16 February 25th 05 08:52 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 06:39 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"