Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How do I return multiple occurrences of a match in an array?

Hi All:

Say I have the following array:

Product Salesperson Apr May Jun Jul Aug
X100 J. Smith 2 4 3 5 6
X100 S. Jones 2 3 4 3 4
X100 T. Fields 1 3 2 4 5
X100 F. Tucker 3 4 4 5 6
X200 J. Smith 1 3 2 4 5
X200 S. Jones 3 4 4 5 6
X200 F. Tucker 1 3 2 4 5

I want to use a function that returns all occurrences of June data for
product X100 for all salespeople. That is, I want to return the following:

Product Salesperson Jun
X100 J. Smith 3
X100 S. Jones 4
X100 T. Fields 2
X100 F. Tucker 4

Can anyone suggest a method of doing this? Note that the array heights can
vary as not all salespeople will forecast on a specific product.

Thanks.








  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How do I return multiple occurrences of a match in an array?

Pivot table is the best option.

http://www.contextures.com/excelfiles.html#Pivot


"Umbu" wrote:

Hi All:

Say I have the following array:

Product Salesperson Apr May Jun Jul Aug
X100 J. Smith 2 4 3 5 6
X100 S. Jones 2 3 4 3 4
X100 T. Fields 1 3 2 4 5
X100 F. Tucker 3 4 4 5 6
X200 J. Smith 1 3 2 4 5
X200 S. Jones 3 4 4 5 6
X200 F. Tucker 1 3 2 4 5

I want to use a function that returns all occurrences of June data for
product X100 for all salespeople. That is, I want to return the following:

Product Salesperson Jun
X100 J. Smith 3
X100 S. Jones 4
X100 T. Fields 2
X100 F. Tucker 4

Can anyone suggest a method of doing this? Note that the array heights can
vary as not all salespeople will forecast on a specific product.

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
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
Temporary Array i.e. match "this" and return entire row Alan[_7_] Excel Discussion (Misc queries) 1 August 13th 07 10:06 PM
Is there any way to use HLOOKUP in an array formula to return multiple matches? [email protected] Excel Worksheet Functions 9 August 31st 06 03:55 AM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 0 December 29th 05 08:44 PM
match multiple criteria & return value from array Tat Excel Worksheet Functions 2 June 21st 05 04:31 PM


All times are GMT +1. The time now is 06:31 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"