j0h Posted May 28, 2013 Share Posted May 28, 2013 Ho un problemino. Ho due colonne X e Y composte da una serie di numeri [TABLE=class: grid, width: 500] [TR] [TD=align: center] Colonna X[/TD] [TD=align: center]Colonna Y[/TD] [/TR] [TR] [TD=align: center]4[/TD] [TD=align: center]5[/TD] [/TR] [TR] [TD=align: center]92[/TD] [TD=align: center]30[/TD] [/TR] [TR] [TD=align: center]21[/TD] [TD=align: center]376[/TD] [/TR] [TR] [TD=align: center]376[/TD] [TD=align: center]92[/TD] [/TR] [TR] [TD=align: center]11[/TD] [TD=align: center]346[/TD] [/TR] [TR] [TD=align: center]4[/TD] [TD=align: center]31[/TD] [/TR] [TR] [TD=align: center]14[/TD] [TD=align: center]4[/TD] [/TR] [/TABLE] Vorrei creare un filtro che nella colonna Z inserisca i numeri in X che compaiono anche in Y, ad esempio 4, 376 e 92 compaiono sia in X che in Y. Il risultato quindi vorrei fosse questo [TABLE=class: outer_border, width: 250] [TR] [TD=align: center]Colonna Z (numeri di X che compaiono anche in Y)[/TD] [/TR] [TR] [TD=align: center]4[/TD] [/TR] [TR] [TD=align: center]92[/TD] [/TR] [TR] [TD=align: center]376[/TD] [/TR] [TR] [TD=align: center]4[/TD] [/TR] [/TABLE] Perchè [TABLE=class: grid, width: 500] [TR] [TD=align: center] Colonna X[/TD] [TD=align: center]Colonna Y[/TD] [/TR] [TR] [TD=align: center]4[/TD] [TD=align: center]5[/TD] [/TR] [TR] [TD=align: center]92[/TD] [TD=align: center]30[/TD] [/TR] [TR] [TD=align: center]21[/TD] [TD=align: center]376[/TD] [/TR] [TR] [TD=align: center]376[/TD] [TD=align: center]92[/TD] [/TR] [TR] [TD=align: center]11[/TD] [TD=align: center]346[/TD] [/TR] [TR] [TD=align: center]4[/TD] [TD=align: center]31[/TD] [/TR] [TR] [TD=align: center]14[/TD] [TD=align: center]4 [/TD] [/TR] [/TABLE] Spero di essere stato chiaro. Quote Link to comment Share on other sites More sharing options...
j0h Posted May 28, 2013 Author Share Posted May 28, 2013 Ovviamente mi andrebbe bene anche un programmino non in excel ma che dati due elenchi mi dia in output un terzo elenco contenente i valori cercati in qualunque formato. Considerate comunque che si tratta di circa 800.000 righe Quote Link to comment Share on other sites More sharing options...
j0h Posted May 31, 2013 Author Share Posted May 31, 2013 up Quote Link to comment Share on other sites More sharing options...
Voiager Posted May 31, 2013 Share Posted May 31, 2013 J0f di + semplice da dirti nell'immediato e' che puoi usare la funzione if che sicuramente ci sarà su Excel, diversamente io lavoro molto con msacces e qll e' il top. Se non riesci inviami il file che te lo sistemo io Sent from my iPhone using Tapatalk Quote Link to comment Share on other sites More sharing options...
j0h Posted May 31, 2013 Author Share Posted May 31, 2013 con msacces sono riuscito a fare qualcosina ma non funziona benissimo, purtroppo non posso inviarti i file perchè sono dati sensibili inerenti ad un procedimento penale sul quale sto lavorando :( Anche io cercavo una funzione del tipo "if" su excel ma non ci sono riuscito Quote Link to comment Share on other sites More sharing options...
Voiager Posted May 31, 2013 Share Posted May 31, 2013 allora ipotiziamo questa situazione: ---A----------------------- B----- C------ D [TABLE=width: 331] [TR] [TD]1 pane[/TD] [TD=align: right]2[/TD] [TD=align: right]2[/TD] [TD=align: right]2[/TD] [/TR] [TR] [TD]2 caffe[/TD] [TD=align: right]3[/TD] [TD=align: right]5[/TD] [TD=align: right]0[/TD] [/TR] [TR] [TD]3 latte[/TD] [TD=align: right]7[/TD] [TD=align: right]7[/TD] [TD=align: right]7[/TD] [/TR] [TR] [TD]4 orzo[/TD] [TD=align: right]5[/TD] [TD=align: right]4[/TD] [TD=align: right]0[/TD] [/TR] [TR] [TD]5 te[/TD] [TD=align: right]6[/TD] [TD=align: right]6[/TD] [TD=align: right]6[/TD] [/TR] [/TABLE] La formula è: =SE(B1=C1;C1;) In sostanza se B ed C sono uguali copia C in D altrimenti mette zero Spero ti ho aiutato Quote Link to comment Share on other sites More sharing options...
Voiager Posted June 5, 2013 Share Posted June 5, 2013 Hai risolto poi ? Sent from my iPhone using Tapatalk Quote Link to comment Share on other sites More sharing options...
j0h Posted July 1, 2013 Author Share Posted July 1, 2013 Ciao Valter, ho provato con alcuni programmi, in access (sql) sono riuscito a fare qualcosina ma non prettamente quello che vorrei. Ho un una serie di record come questi, [TABLE=width: 195] [TR] [TD]ID [/TD] [TD]Matricola [/TD] [TD]Località [/TD] [/TR] [TR] [TD]1 [/TD] [TD]25 [/TD] [TD]Bari [/TD] [/TR] [TR] [TD]2 [/TD] [TD]41 [/TD] [TD]Roma [/TD] [/TR] [TR] [TD]3 [/TD] [TD]61 [/TD] [TD]Bari [/TD] [/TR] [TR] [TD]4 [/TD] [TD]25 [/TD] [TD]Napoli [/TD] [/TR] [TR] [TD]5 [/TD] [TD]41 [/TD] [TD]Roma [/TD] [/TR] [TR] [TD]6 [/TD] [TD]25 [/TD] [TD]Bari [/TD] [/TR] [/TABLE] Ho la necessità che il database mi estrapoli solo i record che hanno la matricola uguale e che siano presente in due o più Località differenti. [TABLE=width: 195] [TR] [TD]ID [/TD] [TD]Matricola [/TD] [TD]Località [/TD] [/TR] [TR] [TD]1 [/TD] [TD]25 [/TD] [TD]Bari [/TD] [/TR] [TR] [TD]4 [/TD] [TD]25 [/TD] [TD]Napoli [/TD] [/TR] [TR] [TD]6 [/TD] [TD]25 [/TD] [TD]Bari [/TD] [/TR] [/TABLE] Non deve estrapolare i record con matricola uguale che risultano solo in una Località, per esempio i record 2 e 5 perché solo presenti in Località uguali. Posso utilizzare Access, Excel o altro software, in SQL, etc. Sono riuscito a rendere disponibili solo le matricole uguali, scartando quelle singole, riunendole in gruppi, ma non riesco a far comparire solo ed esclusivamente i gruppi delle matricole uguali presenti in diverse località. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.