#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Complex Lookup

I have to following inventory data:

Pool Part # Final Discrepancies Actions

FG11 286692-001 -1
FG13 286692-001 1 Move 1 to FG11

I need a formula that automatically gives me the comment "Move 1 to FG11"
considering 1 as the number of parts to move in order to correct both
inventories. Please note that there are hundreds of diferent part #'s under
FG11 and FG13. What I need is for Excel to find, everytime there is an
overcount of one part, if there is the same part # somewhere else with a
short count and suggest me to move the part there. The -1 means I'm short one
piece and the 1 I'm over one piece. Sorting doesn't work when handling
hundreds of parts. It's better if I get that comment automatically then sort
that column and work over it.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Complex Lookup

Maybe a formula like this:

=INDIRECT("D" & MATCH(1,C1:C10,0))

HTH,
Paul


--

"Byron720" wrote in message
...
I have to following inventory data:

Pool Part # Final Discrepancies Actions

FG11 286692-001 -1
FG13 286692-001 1 Move 1 to FG11

I need a formula that automatically gives me the comment "Move 1 to FG11"
considering 1 as the number of parts to move in order to correct both
inventories. Please note that there are hundreds of diferent part #'s
under
FG11 and FG13. What I need is for Excel to find, everytime there is an
overcount of one part, if there is the same part # somewhere else with a
short count and suggest me to move the part there. The -1 means I'm short
one
piece and the 1 I'm over one piece. Sorting doesn't work when handling
hundreds of parts. It's better if I get that comment automatically then
sort
that column and work over it.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Complex Lookup

Not that helpful

"PCLIVE" wrote:

Maybe a formula like this:

=INDIRECT("D" & MATCH(1,C1:C10,0))

HTH,
Paul


--

"Byron720" wrote in message
...
I have to following inventory data:

Pool Part # Final Discrepancies Actions

FG11 286692-001 -1
FG13 286692-001 1 Move 1 to FG11

I need a formula that automatically gives me the comment "Move 1 to FG11"
considering 1 as the number of parts to move in order to correct both
inventories. Please note that there are hundreds of diferent part #'s
under
FG11 and FG13. What I need is for Excel to find, everytime there is an
overcount of one part, if there is the same part # somewhere else with a
short count and suggest me to move the part there. The -1 means I'm short
one
piece and the 1 I'm over one piece. Sorting doesn't work when handling
hundreds of parts. It's better if I get that comment automatically then
sort
that column and work over it.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Complex Lookup

Another play to try ...

Assuming source table in cols A to C*, data from row2 down
*ie Pool, Part #, Final Discrepancies

Put in D2:
=IF(C2="","",COUNTIF(C$2:C2,C2))

Put in E2, array-entered (press CTRL+SHIFT+ENTER to confirm the formula):
=IF(D2="","",IF(ISNUMBER(MATCH(-C2&"_"&D2&"_"&B2,C$2:C2&"_"&D$2:D2&"_"&B$2:B2,0)), "Move
"&C2&" to
"&INDEX(A$2:A2,MATCH(-C2&"_"&D2&"_"&B2,C$2:C2&"_"&D$2:D2&"_"&B$2:B2,0)), ""))

Select D2:E2, fill down as far as required. Hide away col D. Col E should
return the required "action" indications (resembling what you're after)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Complex Lookup

Sorry, pl dismiss the earlier ..

Here's a revised, more robust play ..

Illustrated in this sample construct:
http://www.savefile.com/files/1003536
Complex Lookup - Inventory Matching.xls

Assuming source table in cols A to C*, data from row2 down
*ie Pool, Part #, Final Discrepancies

In D1: =IF(OR(B2="",C2=""),"",B2&"_"&C2)
In E1: =IF(D2="","",COUNTIF(D$2:D2,D2))

In F1, array-entered (press CTRL+SHIFT+ENTER to confirm the formula):
=IF(E2="","",
IF(ISNUMBER(MATCH(-C2&"_"&E2&"_"&B2,C$2:C2&"_"&E$2:E2&"_"&B$2:B2,0)) ,
"Move "&C2&" to "&
INDEX(A$2:A2,MATCH(-C2&"_"&E2&"_"&B2,C$2:C2&"_"&E$2:E2&"_"&B$2:B2,0)), ""))

Select D1:F1, fill down as far as required. Hide away cols D & E.
Col F will return the required "action" indications (resembling what you're
after)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Byron720" wrote in message
...
I have to following inventory data:

Pool Part # Final Discrepancies Actions

FG11 286692-001 -1
FG13 286692-001 1 Move 1 to FG11

I need a formula that automatically gives me the comment "Move 1 to FG11"
considering 1 as the number of parts to move in order to correct both
inventories. Please note that there are hundreds of diferent part #'s under
FG11 and FG13. What I need is for Excel to find, everytime there is an
overcount of one part, if there is the same part # somewhere else with a
short count and suggest me to move the part there. The -1 means I'm short one
piece and the 1 I'm over one piece. Sorting doesn't work when handling
hundreds of parts. It's better if I get that comment automatically then sort
that column and work over it.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Complex Lookup

You are an absolute Excel Monster (in a good way). Thank you soooo much.

"Max" wrote:

Sorry, pl dismiss the earlier ..

Here's a revised, more robust play ..

Illustrated in this sample construct:
http://www.savefile.com/files/1003536
Complex Lookup - Inventory Matching.xls

Assuming source table in cols A to C*, data from row2 down
*ie Pool, Part #, Final Discrepancies

In D1: =IF(OR(B2="",C2=""),"",B2&"_"&C2)
In E1: =IF(D2="","",COUNTIF(D$2:D2,D2))

In F1, array-entered (press CTRL+SHIFT+ENTER to confirm the formula):
=IF(E2="","",
IF(ISNUMBER(MATCH(-C2&"_"&E2&"_"&B2,C$2:C2&"_"&E$2:E2&"_"&B$2:B2,0)) ,
"Move "&C2&" to "&
INDEX(A$2:A2,MATCH(-C2&"_"&E2&"_"&B2,C$2:C2&"_"&E$2:E2&"_"&B$2:B2,0)), ""))

Select D1:F1, fill down as far as required. Hide away cols D & E.
Col F will return the required "action" indications (resembling what you're
after)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Byron720" wrote in message
...
I have to following inventory data:

Pool Part # Final Discrepancies Actions

FG11 286692-001 -1
FG13 286692-001 1 Move 1 to FG11

I need a formula that automatically gives me the comment "Move 1 to FG11"
considering 1 as the number of parts to move in order to correct both
inventories. Please note that there are hundreds of diferent part #'s under
FG11 and FG13. What I need is for Excel to find, everytime there is an
overcount of one part, if there is the same part # somewhere else with a
short count and suggest me to move the part there. The -1 means I'm short one
piece and the 1 I'm over one piece. Sorting doesn't work when handling
hundreds of parts. It's better if I get that comment automatically then sort
that column and work over it.

  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Complex Lookup

welcome, glad it helped.

There were a couple of typos in the cell refs earlier

All of these should be referring to row2,
instead of row1, eg:

"In D1, In E1, In F1, D1:F1"

should have read:
"In D2, In E2, In F2, D2:F2 "
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Byron720" wrote in message
...
You are an absolute Excel Monster (in a good way). Thank you soooo much.



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
Complex Lookup Jason Lepack Excel Worksheet Functions 2 February 4th 07 04:59 PM
Complex lookup bobb Excel Worksheet Functions 0 October 14th 06 08:33 PM
Complex LookUp / Match Problem ?? carl Excel Worksheet Functions 2 May 2nd 05 08:53 PM
complex lookup [email protected] Excel Discussion (Misc queries) 1 December 17th 04 02:01 PM
Complex lookup task for a newbies nhwong Excel Worksheet Functions 5 November 9th 04 04:05 PM


All times are GMT +1. The time now is 10:51 PM.

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"