Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
eoht
 
Posts: n/a
Default matching and lookup??

Job # Item # Quantity
51 100 10
85 105 9
64 103 8
78 103 3
45 100 7
53 101 9
24 101 6

I'm trying to find a function that will let me find the "Job #", by matching
the "Item #" and the max number of "Quantity" used. For example, if I know
that "Item#" = 100 has a max. of 10 quanities used, I want to find a function
that will let me find the "Job #" of that quantity and Item # is 51.

Any Suggestions?
  #2   Report Post  
DOR
 
Posts: n/a
Default matching and lookup??

If your job "number" happens to non-numeric, you might want to try

=INDEX(A2:A8,MATCH(D1&" "&MAX((B2:B8=D1)*(C2:C8)),B2:B8&" "&C2:C8,0))

entered with Shift+Ctrl+Enter, and using same assumptions as previous post

"Duke Carey" wrote:

Assuming your data starts in A2, with the headers in row 1, and the Item# is
in D1, use this array formula - entered with Shift+Ctrl+Enter

=SUMPRODUCT(--(B2:B8=D1),--(C2:C8=MAX(IF(B2:B8=D1,C2:C8,0))),A2:A8)

"eoht" wrote:

Job # Item # Quantity
51 100 10
85 105 9
64 103 8
78 103 3
45 100 7
53 101 9
24 101 6

I'm trying to find a function that will let me find the "Job #", by matching
the "Item #" and the max number of "Quantity" used. For example, if I know
that "Item#" = 100 has a max. of 10 quanities used, I want to find a function
that will let me find the "Job #" of that quantity and Item # is 51.

Any Suggestions?

  #3   Report Post  
Biff
 
Posts: n/a
Default matching and lookup??

Here's the non-array version:

=SUMPRODUCT(--(B2:B8=D1),--(C2:C8=MAX((B2:B8=D1)*(C2:C8))),A2:A8)

Biff

"Duke Carey" wrote in message
...
Assuming your data starts in A2, with the headers in row 1, and the Item#
is
in D1, use this array formula - entered with Shift+Ctrl+Enter

=SUMPRODUCT(--(B2:B8=D1),--(C2:C8=MAX(IF(B2:B8=D1,C2:C8,0))),A2:A8)

"eoht" wrote:

Job # Item # Quantity
51 100 10
85 105 9
64 103 8
78 103 3
45 100 7
53 101 9
24 101 6

I'm trying to find a function that will let me find the "Job #", by
matching
the "Item #" and the max number of "Quantity" used. For example, if I
know
that "Item#" = 100 has a max. of 10 quanities used, I want to find a
function
that will let me find the "Job #" of that quantity and Item # is 51.

Any Suggestions?



  #4   Report Post  
DOR
 
Posts: n/a
Default matching and lookup??

A somewhat shorter, but less obvious, formula than that in my previous
post, which will also handle non-numeric item numbers is:

=INDEX(A2:A8,MATCH(1,--(C2:C8=MAX((B2:B8=D1)*(C2:C8))),0))

Also an array formula - enter with ctl-shift-enter

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
matching and lookup?? Duke Carey Excel Worksheet Functions 0 November 10th 05 08:55 PM
Index/ Lookup formulas and fuzzy matching JaB Excel Worksheet Functions 0 November 10th 05 10:04 AM
Only text values matching using index/match lookup - data type pro Stanton Excel Worksheet Functions 1 August 2nd 05 01:05 AM
Matching unsorted lookup values chrisrowe_cr Excel Worksheet Functions 4 July 25th 05 04:57 AM
How do I LOOKUP text values Amber C-W Excel Worksheet Functions 4 July 20th 05 05:27 PM


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