<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Zeilenindex in Sammlungen finden in Deutschsprachige Community</title>
    <link>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45319#M335</link>
    <description>Hallo Marietta,&lt;BR /&gt;&lt;BR /&gt;Ich benutze gerne Sammelungen&lt;BR /&gt;&lt;BR /&gt;Wenn du einfach "Utility - Collection Manipulation::Filter Collection" benutzt bekommst du eine neue Sammelung mit&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;0 Zeilen&amp;nbsp; = Wert nicht gefunden&lt;BR /&gt;1 Zeile = Wert gefunden und du kannst mit ein "Loop" einfach an die Werten kommen&lt;BR /&gt;&amp;gt;1 Zeile = Mehr als 1 Resultat ==&amp;gt; Exception ?&lt;BR /&gt;&lt;BR /&gt;Dein "Filter" sieht ungefahr so aus : "[Liste1.SpalteA] = '"&amp;amp;&amp;nbsp; [PLZ des Kunden (Liste 2)]&amp;nbsp; &amp;amp;"' "&lt;BR /&gt;&lt;BR /&gt;Eine andere Lösung :&lt;BR /&gt;* Utility - Collection Manipulation::Get Row Number&lt;BR /&gt;* Utility - Collection Manipulation::Get Value by RowNumber and ColumnName - 0 Based&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Utility - Collection Manipulation::Get Value by RowNumber and ColumnName - 0 Based ==&amp;gt; hat Restrictionen !!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johan Michiels&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 22 Nov 2022 07:51:00 GMT</pubDate>
    <dc:creator>johan.m</dc:creator>
    <dc:date>2022-11-22T07:51:00Z</dc:date>
    <item>
      <title>Zeilenindex in Sammlungen finden</title>
      <link>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45316#M332</link>
      <description>Hallo zusammen,&lt;BR /&gt;&lt;BR /&gt;aktuell habe ich die Aufgabe einen Datenabgleich über BluePrism zu machen. &lt;BR /&gt;&lt;BR /&gt;Hierfür habe ich zwei Excellisten. Die erste Liste (Liste 1) ist ein Datenabzug aus dem Bestandssystem mit 3 Spalten und 500 Zeilen. Diese Liste ändert sich eher selten. Die zweite Liste bekommen wir täglich von einem Dienstleister geliefert und enthält Kundendaten (Liste 2).&lt;BR /&gt;&lt;BR /&gt;Im ersten Schritt soll geschaut werden, ob die PLZ des Kunden (Liste 2) in Liste 1 (Spalte A) enthalten ist. Ergibt das einen Treffer, dann soll aus dieser Zeile die beiden anderen Werte (Spalte B und C) zurückgegeben werden.&lt;BR /&gt;&lt;BR /&gt;Bisher habe ich die Liste 1 in eine Sammlung eingelesen und den ersten Schritt mit der Funktion "Utility - Collection Manipulation" -&amp;gt; "Collection Contains Value" abgebildet. Jetzt komme ich aber an dieser Stelle nicht weiter und habe keine Ahnung wie ich mir den Zeilenindex aus der Sammlung zurückgeben lassen kann um dann die beiden anderen Werte zu erhalten.&lt;BR /&gt;&lt;BR /&gt;Hat einer von euch eine Lösung bzw. bin ich vielleicht falsch ran gegangen und käme mit einen direkten Excel auslesen besser?&lt;BR /&gt;&lt;BR /&gt;Vielen Dank im Voraus und Grüße&lt;BR /&gt;Marietta&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marietta Christoph&lt;BR /&gt;Sachbearbeiterin&lt;BR /&gt;LM&lt;BR /&gt;Europe/Dresden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45316#M332</guid>
      <dc:creator>crm</dc:creator>
      <dc:date>2022-11-21T12:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Zeilenindex in Sammlungen finden</title>
      <link>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45317#M333</link>
      <description>&lt;DIV _msthash="211666" _msttexthash="17472"&gt;Hi&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="565812" _msttexthash="366297516"&gt;There are a couple of options here to do this, if you want to use a collection to just return the other 2 column values if the post code value exists then you can do this using a loop. Continue using the action Utility - Collection Manipulation -&amp;gt; Collection Contains Value to determine the post code already exists if it doesn't then mark it as an exception or whatever you need to do there. If the value does exist the do a loop through the collection using a decision to determine when you have found the value in the collection InStr([Collection.Postcode], [Postcode])&amp;gt;0 when the decision is true then you just need to get the values from the current row and you can do that with a calculation stage to 2 data items for the calulcation you just need to set the collection and column and set the data item to be saved to e.g. [Collection.SecondColumn] or [Collection.ThirdColumn].&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5355.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/5537i1C899154ADA50C76/image-size/large?v=v2&amp;amp;px=999" role="button" title="5355.png" alt="5355.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="1079390" _msttexthash="70866068"&gt;The other option is to use excel to find the value then find the corresponding cell values but for this you will need to create a code stage to find the address of the postcode value and then a calculation stage to modify the cell address to include the column e.g. "B"&amp;amp;Mid([CellAddress],2,10000). I've included the code for this type of search below if you wanted to use it. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="1752400" _msttexthash="296881"&gt;Dim wb, ws As Object&amp;nbsp;&lt;/DIV&gt;
&lt;DIV _msthash="2148692" _msttexthash="733252"&gt;Dim excel, sheet, range As Object&amp;nbsp;&lt;/DIV&gt;
&lt;DIV _msthash="2584842" _msttexthash="444405"&gt;Dim startcell as Object&lt;/DIV&gt;
&lt;DIV _msthash="3060850" _msttexthash="375258"&gt;Dim newCell as object&lt;/DIV&gt;
&lt;DIV _msthash="3576716" _msttexthash="663078"&gt;Dim xlformulas as integer = -4123&lt;/DIV&gt;
&lt;DIV _msthash="4132440" _msttexthash="415727"&gt;Dim xlRows as Integer = 1&lt;/DIV&gt;
&lt;DIV _msthash="4728022" _msttexthash="413790"&gt;Dim xlNext as Integer = 1&lt;/DIV&gt;
&lt;DIV _msthash="5363462" _msttexthash="412672"&gt;Dim xlPart as Integer = 2&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="6753916" _msttexthash="33657"&gt;Try&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181664" _msttexthash="845442"&gt;wb = GetWorkbook(Handle, Workbook)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181663" _msttexthash="1459445"&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181662" _msttexthash="191178"&gt;wb.Activate()&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181661" _msttexthash="192946"&gt;ws.Activate()&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="12876032" _msttexthash="421135"&gt;Excel = WS. Application&lt;/DIV&gt;
&lt;DIV _msthash="13910052" _msttexthash="2152605"&gt;Sheet = Excel. ActiveSheet.Range(StartingCell). Activate()&lt;/DIV&gt;
&lt;DIV _msthash="14983930" _msttexthash="642681"&gt;startcell = Excel. ActiveCell&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV _msthash="17251260" _msttexthash="3422874"&gt;Ws. Cells.Find(What:=SearchText, After:=startcell, LookIn:=xlformulas, _&lt;/DIV&gt;
&lt;DIV _msthash="18444712" _msttexthash="2734225"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LookAt:=xlPart, SearchOrder:=xlRows, SearchDirection:=xlNext, _&lt;/DIV&gt;
&lt;DIV _msthash="19678022" _msttexthash="1697358"&gt;MatchCase:=False, SearchFormat:=False). Activate()&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="22264216" _msttexthash="561704"&gt;newCell = excel. ActiveCell&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="25009842" _msttexthash="196677"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Success = True&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181660" _msttexthash="999648"&gt;Result = newCell.Address(False,False)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181659" _msttexthash="340223"&gt;Catch e As Exception&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181658" _msttexthash="216645"&gt;Success = False&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181657" _msttexthash="318383"&gt;Message = e.Message&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181656" _msttexthash="95511"&gt;Finally&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181655" _msttexthash="151827"&gt;wb = Nothing&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181654" _msttexthash="153595"&gt;ws = Nothing&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181653" _msttexthash="223366"&gt;excel = Nothing&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181652" _msttexthash="224354"&gt;sheet = Nothing&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN _mstmutation="1" _msthash="181651" _msttexthash="222703"&gt;range = Nothing&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV _msthash="44831670" _msttexthash="75517"&gt;End Try&lt;/DIV&gt;
&lt;SPAN _mstmutation="1" _msthash="98176" _msttexthash="17472"&gt;&lt;BR /&gt;&lt;SPAN _mstmutation="1" _msthash="8099" _msttexthash="21207004"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 13:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45317#M333</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-11-21T13:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Zeilenindex in Sammlungen finden</title>
      <link>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45318#M334</link>
      <description>Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;vielen, vielen lieben Dank für die schnelle Antwort! Es hat sehr geholfen. Jetzt hat es funktioniert und ich kann den Rest fertig machen. Wieder was neues gelernt. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marietta Christoph&lt;BR /&gt;Sachbearbeiterin&lt;BR /&gt;LM&lt;BR /&gt;Europe/Dresden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 13:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45318#M334</guid>
      <dc:creator>crm</dc:creator>
      <dc:date>2022-11-21T13:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Zeilenindex in Sammlungen finden</title>
      <link>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45319#M335</link>
      <description>Hallo Marietta,&lt;BR /&gt;&lt;BR /&gt;Ich benutze gerne Sammelungen&lt;BR /&gt;&lt;BR /&gt;Wenn du einfach "Utility - Collection Manipulation::Filter Collection" benutzt bekommst du eine neue Sammelung mit&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;0 Zeilen&amp;nbsp; = Wert nicht gefunden&lt;BR /&gt;1 Zeile = Wert gefunden und du kannst mit ein "Loop" einfach an die Werten kommen&lt;BR /&gt;&amp;gt;1 Zeile = Mehr als 1 Resultat ==&amp;gt; Exception ?&lt;BR /&gt;&lt;BR /&gt;Dein "Filter" sieht ungefahr so aus : "[Liste1.SpalteA] = '"&amp;amp;&amp;nbsp; [PLZ des Kunden (Liste 2)]&amp;nbsp; &amp;amp;"' "&lt;BR /&gt;&lt;BR /&gt;Eine andere Lösung :&lt;BR /&gt;* Utility - Collection Manipulation::Get Row Number&lt;BR /&gt;* Utility - Collection Manipulation::Get Value by RowNumber and ColumnName - 0 Based&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Utility - Collection Manipulation::Get Value by RowNumber and ColumnName - 0 Based ==&amp;gt; hat Restrictionen !!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johan Michiels&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2022 07:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Deutschsprachige-Community/Zeilenindex-in-Sammlungen-finden/m-p/45319#M335</guid>
      <dc:creator>johan.m</dc:creator>
      <dc:date>2022-11-22T07:51:00Z</dc:date>
    </item>
  </channel>
</rss>

