Fresh insight to an excel problem

%3CLINGO-SUB%20id%3D%22lingo-sub-1556772%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556772%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThough%20I%20have%20some%20ideas%20on%20how%20to%20tackle%20this%2C%20it%20would%20be%20much%20easier%20to%20visualize%20with%20a%20sample%20of%20the%20data%20that%20you%20are%20working%20with.%20Could%20you%20please%20share%20a%20sample%20of%20your%20workbook%3F%20(please%20remove%20any%20sensitive%20data)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556774%22%20slang%3D%22pt-BR%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556774%22%20slang%3D%22pt-BR%22%3E%3CP%3ECan%20you%20make%20your%20spreadsheet%20available%20so%20that%20I%20can%20analyze%20and%20develop%20a%20solution%20for%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556783%22%20slang%3D%22de-DE%22%3ESubject%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556783%22%20slang%3D%22de-DE%22%3EDid%20I%20get%20it%20right%20in%20the%20translation%3F%20Would%20you%20like%20to%20find%20X1%20in%20the%20workbook%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20If%20it%20is%20only%20that%2C%20then%20CTRL%20%2B%20F%20key%2C%20pop-up%20menu%20Search%20and%20Replace%20appears.%20Search%20for%3A%20enter%20the%20desired%20name%20and%20if%20you%20continue%20searching%2C%20it%20shows%20the%20first%20area%20with%20such%20an%20entry%20...%20Even%20if%20I%20don't%20think%20that's%20what%20you're%20looking%20for%2C%20I'll%20just%20send%20it%20as%20an%20additional%20thought.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20If%20this%20is%20not%20desired%2C%20please%20give%20a%20short%20feedback.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Glad%20to%20help%20how%20I%20am%20helped.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Nikolino%20%3CBR%20%2F%3E%20I%20know%20I%20don't%20know%20anything%20(Socrates)%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556794%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556794%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20the%20most%20recent%20version%20of%20Excel%3F%20Can%20you%20enter%20a%20formula%20using%20the%20FILTER%20function%2C%20specifically%3F%20If%20so%2C%20you%20should%20be%20able%20to%20create%20a%20formula%20that%20would%20sift%20through%20that%20table%20you%20have%20and%20use%20such%20criteria%20as%20the%20designation%20of%20the%20CP%20in%20question%2C%20as%20well%20as%20a%20%22window%22%20of%20date%26amp%3Btime%20using%20the%20time%20stamps%20of%20movement....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20possibility%20that%20occurs%20to%20me%20is%20the%20Pivot%20Table%20with%20date%20and%20time%20being%20used%20as%20filter(s)%20for%20the%20data%20to%20be%20displayed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20for%20you%20to%20post%20a%20mock%20up%20of%20your%20actual%20file%20so%20as%20to%20enable%20me%20or%20somebody%20else%20here%20to%20see%20the%20kind%20of%20layout%20of%20your%20data%3F%20It's%20hard%20to%20give%20specific%20suggestions%20with%20only%20a%20verbal%20description%3B%20and%20an%20actual%20spreadsheet--just%20not%20containing%20proprietary%20info--is%20far%20more%20helpful%20than%20an%20image.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556825%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556825%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20multiple%20way%20I%20could%20imagine%20to%20get%20what%20you%20want%20but%20having%20an%20actual%20sample%20sheet%20would%20significantly%20help%20us%20cater%20a%20formula%20for%20what%20you%20want.%20That%20said%20if%20you%20want%20to%20give%20it%20a%20try%20here%20are%20some%20thing%20I%20would%20consider%3A%3CBR%20%2F%3Ea)%20filter%20by%20unique%20product%20and%20station%20then%20check%20max%20time%20stamp%20then%20filter%20again%20by%20only%20product%20'coming'%20to%20that%20station%3CBR%20%2F%3Eb)%20use%20countifs%20to%20determine%20which%20products%20have%20an%20ODD%20number%20(unless%20it%20is%20the%201st%20station%20which%20you%20would%20be%20looking%20for%20an%20EVEN%20number%20unless%20you%20have%20an%20line%20indicating%20the%20arrival%20of%20the%20product%20at%20station%201%20also)%20of%20entries.%26nbsp%3B%20Or%20if%20you%20other%20entries%20then%20use%20countifs%20arrival%20%26gt%3B%20countifs%20departure.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556866%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556866%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556867%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556867%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20book%20posted%20below.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556871%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556871%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F693882%22%20target%3D%22_blank%22%3E%40Aleomar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20book%20posted.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556744%22%20slang%3D%22en-US%22%3EFresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556744%22%20slang%3D%22en-US%22%3E%3CP%3EI%20hoping%20to%20get%20some%20fresh%20thoughts%20on%20a%20problem%20I'm%20trying%20to%20solve%20in%20excel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20work%20in%20a%20manufacturing%20plant%20and%20my%20job%20is%20to%20track%20the%20location%20of%20certain%20product%20as%20they%20move%20through%20various%20control%20points.%20Let's%20say%20I%20have%205%20control%20points%20(CP1-CP5.)%20This%20product%2C%20though%20it's%20manufacturing%20life%20cycle%2C%20will%20transition%20to%20and%20from%20some%20of%20these%20control%20points.%20Every%20time%20a%20person%20moves%20a%20piece%20of%20product%20from%20one%20CP%20to%20another%20CP%20they%20create%20a%20report%20listing%20the%20date%2C%20where%20it's%20moving%20from%20and%20where%20it's%20moving%20to.%20I%20keep%20a%20summary%20of%20all%20these%20reports%20in%20a%20table.%20If%20I%20want%20to%20find%20the%20current%20location%20of%2C%20for%20example%2C%20piece%20X1%2C%20I%20simply%20find%20the%20most%20recent%20entry%20in%20the%20table%20for%20X1.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I'm%20trying%20to%20figure%20out%20is%20how%20to%20look%20at%20a%20certain%20CP%20and%20find%20out%20everything%20that's%20still%20in%20there.%20When%20I%20do%20that%20now%2C%20I%20have%20a%20lot%20of%20entries%2C%20but%20some%20of%20these%20pieces%20of%20product%20will%20have%20moved%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20sheet%20added.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%20would%20be%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1556744%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556877%22%20slang%3D%22en-US%22%3EBetreff%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556877%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20looking%20to%20find%20X1.%20I'm%20looking%20to%20query%20a%20certain%20location%20and%20find%20all%20the%20product%20that's%20currently%20logged%20into%20that%20location.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556880%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556880%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20book%20posted.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556887%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556887%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20book%20posted.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556897%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556897%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20was%20the%20column%20%22Current%20Location%22%20determined%3F%20Couldn't%20you%20simply%20filter%20this%20column%20to%20determine%20everything%20that%20is%20being%20held%20in%20a%20certain%20location%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditionally%2C%20I%20do%20not%20see%20anything%20representing%20control%20points%20(CP).%20Is%20this%20represented%20by%20the%20%22Current%20Location%22%20column%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556932%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556932%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20%22CP%22%20I%20was%20referring%20to%20is%20the%20location.%20Each%20of%20these%20entries%20in%20this%20workbook%20logs%20a%20move%20from%20the%20%22previous%20location%22%20to%20the%20%22current%20Location.%22%20What%20I'm%20looking%20to%20do%20is%20query%20a%20specific%20%22current%20location%22%20and%20find%20all%20the%20product%20that%20is%20in%20there.%20For%20example%2C%20say%20I%20have%20lots%20%22abc1%22%20through%20%22abc50.%22%20Each%20of%20these%20lots%20may%20have%20multiple%20entries%20in%20the%20table.%20Going%20from%20location%201%20to%205%2C%20back%20to%201%2C%20then%20to%203.%20What%20I'm%20looking%20to%20do%20is%20for%20every%20unique%20%22current%20location%22%20find%20all%20the%20lots%20which%20have%20the%20most%20recent%20%22current%20location%22%20entry%20of%20that%20location.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20if%20that%20makes%20sense%20or%20not.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1556936%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1556936%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%20in%20addition%20to%20question%20by%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%20I%20also%20don't%20follow%20this%20table.%26nbsp%3B%20There%20isn't%20a%20unique%20product%20to%20track.%26nbsp%3B%20the%20%22Form%20Factor%22%20has%20a%20general%20product%20that%20has%20parts%20all%20over%20the%20place%20and%20the%20program%20name%20and%20lot%20numbers%20are%20unique%20numbers%20throughout.%26nbsp%3B%20Basically%20there%20is%20no%20specific%20LOT%20that%20is%20being%20tracked%20from%20station%201%20to%20station%202%20to%20...%20Furthermore%2C%20most%20of%20the%20'previous%20locations'%20don't%20ever%20have%20a%20present%20location%20so%20presumably%20they%20are%20all%20original%20source%20locations%20and%20most%20of%20the%20present%20locations%20are%20not%20represented%20by%20a%20previous%20location%20so%20are%20presumably%20final%20destinations.%26nbsp%3B%20So%20if%20you%20have%2050%20units%20go%20from%20station%20SSU1%20to%20SSU6%20and%20100%20units%20go%20from%20SSU6%20to%20customer%20how%20do%20you%20know%20how%20many%20units%20are%20at%20SSU6%20since%20they%20can%20both%20originate%20there%20and%20get%20transferred%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1557020%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1557020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3Bnoted%2C%20a%20unique%20ID%20for%20each%20incoming%20and%20outgoing%20product%20is%20almost%20necessary%20to%20track%20what%20is%20where.%20With%20that%20in%20mind%2C%20the%20following%20workbook%20may%20not%20be%20entirely%20accurate.%20In%20the%20attached%20workbook%2C%20I%20have%20included%20a%20pivot%20table%20which%20can%20be%20filtered%20to%20find%20what%20products%20have%20come%20from%20where%20and%20what%20products%20are%20held%20in%20a%20current%20location.%20Simply%20change%20the%20%22Current%20Location%22%20and%2For%20the%20%22Previous%20Location%22%20in%20the%20pivot%20table.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1557022%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1557022%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wonder%20if%20you're%20going%20to%20get%20a%20flurry%20of%20possible%20answers.%20I'm%20attaching%20one%20that%20makes%20primary%20use%20of%20the%20FILTER%20function%2C%20only%20available%20in%20the%20newest%20versions%20of%20Excel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20a%20cell%20with%20yellow%20background%20where%20you%20can%20select%20the%20code%20for%20one%20of%20your%20%22current%20locations%22%20--when%20you%20do%20that%2C%20the%20date%20below%20will%20automatically%20populate%20with%20the%20latest%20date%20for%20which%20there's%20an%20entry%20for%20that%20location.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20the%20list%20will%20automatically%20populate%20with%20the%20rows%20that%20correspond%20to%20that%20location%20and%20date.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1557035%22%20slang%3D%22en-US%22%3ERe%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1557035%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eas%20others%20have%20noted%2C%20you%20may%20need%20to%20refine%20your%20table%20to%20be%20more%20specific%20on%20actual%20products...or%20maybe%20we're%20just%20not%20seeing%20what's%20there%20in%20front%20of%20us.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20methods%20(pregan's%20pivot%20table%2C%20my%20use%20of%20FILTER)%20may%20suffice%20to%20give%20you%20that%20%22fresh%20insight%22%20you%20were%20seeking%2C%20in%20any%20event.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1558214%22%20slang%3D%22de-DE%22%3ESubject%3A%20Fresh%20insight%20to%20an%20excel%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558214%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745095%22%20target%3D%22_blank%22%3E%40aludka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20only%20thing%20I%20could%20imagine%20is%20to%20find%20the%20last%20change%20with%20VBA%20date%20and%20user%20and%20to%20see%20who%20was%20the%20last%20user...%20ergo%20the%20last%20%22x%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20VBA%20code%3A%3C%2FP%3E%3CP%3EFor%20example%2C%20when%20the%20status%20in%20cell%20B3%20changes%20in%20cell%20C3%2C%20the%20date%20of%20the%20change%20should%20be%20displayed%20and%20in%20cell%20D3%20the%20user%20name%20that%20changed%20B3.%20Changes%20to%20cell%20B4%20should%20be%20reflected%20in%20C4%20and%20D4%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20Worksheet_Change%20(ByVal%20Target%20As%20Range)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Dim%20z%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20On%20Error%20GoTo%20Error%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20Not%20Intersect(Range(%22B%3AB%22)%2C%20Target)%20Is%20Nothing%20Then%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20Target.Row%20%3D%201%20Then%20Exit%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20For%20Each%20z%20In%20Target%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20z.Offset(0%2C%20-1)%20%26lt%3B%26gt%3B%20%22%22%20Then%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Application.EnableEvents%20%3D%20False%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20z.Offset(0%2C%201)%20%3D%20Format(Date%2C%20%22DD.MM.YYYY%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20e.p.offset(0%2C%202)%20%3D%20Environ(%22username%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20End%20If%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Next%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20End%20If%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20'%20Error%20handling%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Err.Clear%3C%2FP%3E%3CP%3EError%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Application.EnableEvents%20%3D%20True%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20Err.Number%20%26lt%3B%26gt%3B%200%20Then%20MsgBox%20%22Error%3A%20%22%20%26amp%3B%20_%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Err.Number%20%26amp%3B%20vbLf%20%26amp%3B%20Err.Description%3A%20Err.Clear%3C%2FP%3E%3CP%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20helped%2C%20I%20am%20very%20happy%20...%20please%20mark%20this%20as%20the%20correct%20answer%20so%20that%20others%20are%20informed.%20If%20not%2C%20please%20give%20a%20short%20feedback%2C%20maybe%20the%20other%20helpers%20could%20help%20more%20than%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I hoping to get some fresh thoughts on a problem I'm trying to solve in excel.

 

I work in a manufacturing plant and my job is to track the location of certain product as they move through various control points. Let's say I have 5 control points (CP1-CP5.) This product, though it's manufacturing life cycle, will transition to and from some of these control points. Every time a person moves a piece of product from one CP to another CP they create a report listing the date, where it's moving from and where it's moving to. I keep a summary of all these reports in a table. If I want to find the current location of, for example, piece X1, I simply find the most recent entry in the table for X1.

 

What I'm trying to figure out is how to look at a certain CP and find out everything that's still in there. When I do that now, I have a lot of entries, but some of these pieces of product will have moved on.

 

Example sheet added.

 

Any idea would be appreciated.

18 Replies

Hello @aludka,

 

Though I have some ideas on how to tackle this, it would be much easier to visualize with a sample of the data that you are working with. Could you please share a sample of your workbook? (please remove any sensitive data)

You can make your spreadsheet available so that I can analyze and develop a solution for that?

Did I get it right in the translation? Would you like to find X1 in the workbook?

If it is only that, then CTRL + F key, pop-up menu Search and Replace appears. Search for: enter the desired name and if you continue searching, it shows the first area with such an entry ... even if I don't think that's what you're looking for, I'll just send it as an additional thought.

If this is not desired, please give a short feedback.

Glad to help how I am helped.

Nikolino
I know I don't know anything (Socrates)

@aludka 

 

Do you have the most recent version of Excel? Can you enter a formula using the FILTER function, specifically? If so, you should be able to create a formula that would sift through that table you have and use such criteria as the designation of the CP in question, as well as a "window" of date&time using the time stamps of movement....

 

Another possibility that occurs to me is the Pivot Table with date and time being used as filter(s) for the data to be displayed.

 

Is it possible for you to post a mock up of your actual file so as to enable me or somebody else here to see the kind of layout of your data? It's hard to give specific suggestions with only a verbal description; and an actual spreadsheet--just not containing proprietary info--is far more helpful than an image.

There are multiple way I could imagine to get what you want but having an actual sample sheet would significantly help us cater a formula for what you want. That said if you want to give it a try here are some thing I would consider:
a) filter by unique product and station then check max time stamp then filter again by only product 'coming' to that station
b) use countifs to determine which products have an ODD number (unless it is the 1st station which you would be looking for an EVEN number unless you have an line indicating the arrival of the product at station 1 also) of entries.  Or if you other entries then use countifs arrival > countifs departure.

@PReagan 

 

Example book posted below. Thank you.

@Aleomar 

Example book posted. Thank you.

@Nikolino 

 

I'm not looking to find X1. I'm looking to query a certain location and find all the product that's currently logged into that location.

@mathetes 

 

Example book posted. Thank you.

@mtarler 

 

Example book posted. Thank you.

@aludka

 

How was the column "Current Location" determined? Couldn't you simply filter this column to determine everything that is being held in a certain location?

 

Additionally, I do not see anything representing control points (CP). Is this represented by the "Current Location" column?

@PReagan 

 

The "CP" I was referring to is the location. Each of these entries in this workbook logs a move from the "previous location" to the "current Location." What I'm looking to do is query a specific "current location" and find all the product that is in there. For example, say I have lots "abc1" through "abc50." Each of these lots may have multiple entries in the table. Going from location 1 to 5, back to 1, then to 3. What I'm looking to do is for every unique "current location" find all the lots which have the most recent "current location" entry of that location.

 

I'm not sure if that makes sense or not.

@aludka  in addition to question by@PReagan  I also don't follow this table.  There isn't a unique product to track.  the "Form Factor" has a general product that has parts all over the place and the program name and lot numbers are unique numbers throughout.  Basically there is no specific LOT that is being tracked from station 1 to station 2 to ... Furthermore, most of the 'previous locations' don't ever have a present location so presumably they are all original source locations and most of the present locations are not represented by a previous location so are presumably final destinations.  So if you have 50 units go from station SSU1 to SSU6 and 100 units go from SSU6 to customer how do you know how many units are at SSU6 since they can both originate there and get transferred there.

 

@aludka

 

As @mtarler noted, a unique ID for each incoming and outgoing product is almost necessary to track what is where. With that in mind, the following workbook may not be entirely accurate. In the attached workbook, I have included a pivot table which can be filtered to find what products have come from where and what products are held in a current location. Simply change the "Current Location" and/or the "Previous Location" in the pivot table.

@aludka 

 

I wonder if you're going to get a flurry of possible answers. I'm attaching one that makes primary use of the FILTER function, only available in the newest versions of Excel.

 

There's a cell with yellow background where you can select the code for one of your "current locations" --when you do that, the date below will automatically populate with the latest date for which there's an entry for that location.

 

Then the list will automatically populate with the rows that correspond to that location and date.

@aludka 

 

as others have noted, you may need to refine your table to be more specific on actual products...or maybe we're just not seeing what's there in front of us.

 

Our methods (pregan's pivot table, my use of FILTER) may suffice to give you that "fresh insight" you were seeking, in any event.

@aludka 

The only thing I could imagine is to find the last change with VBA date and user and to see who was the last user… ergo the last “x”

 

Example VBA code:

For example, when the status in cell B3 changes in cell C3, the date of the change should be displayed and in cell D3 the user name that changed B3. Changes to cell B4 should be reflected in C4 and D4, etc.

 

Private Sub Worksheet_Change(ByVal Target As Range)

    Dim z

    On Error GoTo Error

    If Not Intersect(Range("B:B"), Target) Is Nothing Then

        If Target.Row = 1 Then Exit Sub

        For Each z In Target

            If z.Offset(0, -1) <> "" Then

                Application.EnableEvents = False

                z.Offset(0, 1) = Format(Date, "DD.MM.YYYY")

                z.Offset(0, 2) = Environ("Username")

            End If

        Next

    End If

    ' Error handling

    Err.Clear

Error:

    Application.EnableEvents = True

    If Err.Number <> 0 Then MsgBox "Error: " & _

        Err.Number & vbLf & Err.Description: Err.Clear

End Sub

 

If it helped, I am very happy ... please mark this as the correct answer so that others are informed. If not, please give a short feedback, maybe the other helpers could help more than me.

 

Nikolino

I know I don't know anything (Socrates)