Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ren Ren is offline
external usenet poster
 
Posts: 67
Default find the matching and allocate the required quantity

hi i am using excel 2003,new to VBA
I have 3 sheets (pl see at the end)
Sheet1 LIST (n number of rows,keeps changing)
Sheet2 slrs
Sheet3 fab

Sheet1 LIST, column B..take the item and find whether we have
the matching in slrs,
if there is a matching then take the corresponding value and place it
in "LIST" column D(store1) or E(store2)( based on the slrs-location ie
store1 or store2),check the quantity is sufficient enough to supply the
columnC ie Balance quantity,
If not goto Fab and search for the matching device,if u find the
matching take the value along with the DATE
If there is no matching in both sheets,then leave it empty
if qty is not enough write NA
In both the cases we have to take the corresponding PONUMBER and place
it in allocation column.
The quantity you supplied in quantity column,and the balance quantity left.
And repeat the process for all the devices.

The items will appear many no of times.

Note: some items have the matching more than one ie if u dont find
SC14471A8 9M7
or the sufficient qty is not there then look for SC14471A8 TM7

the result should looks like this
sheet1(POLIST)
Number L50 reqd qty DIE WF FAB ETA
45594010 LMX4180G8 170092 170092
45600810 LMX4180G8 331068 169081
113703 20071224
48285 20080104
45613110 LMX4270C8 294954 3000
159942 20080101
90876 20080104
41136 20080119

sheet2(SLRS) (Grand total=Die+WF)
DEVICE Die Wf GrandTotal bal allocation qty
LMX4180G8 339173 339173 169081 45594010 170092
0 45600810 169081
LMX4270C8 3000 3000 0 45613110 3000


sheet3(FAB)
L50 ETA Total bal allocation qty
LMX4180G8 20071224 113703 0 45600810 113703
20080104 1279155 1230870 45600810 48285
LMX4270C8 20080101 159942 0 45613110 159942
20080104 90876 0 45613110 90876
20080119 272629 231493 45613110 41136



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
how do I find quantity between some dates? Jul Excel Discussion (Misc queries) 3 October 3rd 09 11:19 AM
Formula required for matching cells daviebutton New Users to Excel 2 September 24th 09 12:07 AM
Need a formula to increase quantity of one cell until the quantity ofanother is exceeded rudyeb Excel Discussion (Misc queries) 1 October 24th 08 03:34 PM
verify use of TIME Function, Find Quantity Level compare to time-d nastech Excel Discussion (Misc queries) 9 July 11th 07 01:58 PM
How do I find duplicate rows, add quantity field & retain one reco Pearl Excel Programming 7 May 23rd 06 09:07 AM


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