Problem with data import

Diskutiere und helfe bei Problem with data import im Bereich Microsoft Office im Windows Info bei einer Lösung; I wanted to import data within the actual Office365 Excel version. When I changed separator to space most of my data just disappeared. When I use most... Dieses Thema im Forum "Microsoft Office" wurde erstellt von Olo Eopia, 19. März 2020.

  1. Olo Eopia
    Olo Eopia Gast

    Problem with data import


    I wanted to import data within the actual Office365 Excel version. When I changed separator to space most of my data just disappeared. When I use most of the other separators it works fine, its just the space. I just changed the Seperator and did nothing else, does anyone know what went wrong? Attached there is a Screenshot with the problem form german Excel


    [​IMG]


    Best regards

    Reinhold
     
  2. Andreas Killer Win User

    Excel kopiert nur 9000 zeilen einer gefilterten mappe

    Könnte vielleicht sein das Excel den SpecialCellsBUG auch beim Kopieren hat, mach mal eine neue Datei und führe das Makro unten darin aus.

    Es schreibt ein paar Daten in die Tabelle und setzt einen Autofilter.

    Markiere alle sichtbaren Zellen und drückt STRG-C, kommt der Fehler?

    Andreas.



    Sub SpecialCellsBUG()

    Dim Count As Long

    Dim Data() As Variant

    Dim i As Long

    Dim R As Range



    'Number of areas (8192 is the limit for Specialcells)

    Count = 8193



    ReDim Data(1 To Count * 2, 1 To 2)

    For i = 1 To UBound(Data)

    Data(i, 1) = i \ 2

    Data(i, 2) = i Mod 2

    Next

    Data(1, 1) = "Nr"

    Data(1, 2) = "Value"



    'Cells.ClearContents

    With Range("A1")

    .Resize(UBound(Data), UBound(Data, 2)) = Data

    .AutoFilter 2, 0

    'Set R = .Parent.AutoFilter.Range

    End With



    'Set R = R.SpecialCells(xlCellTypeVisible)

    'R.Select

    End Sub
  3. Claus Busch Win User

    Loop Befehl in Zusammenhang mit Formel

    Hallo,



    nein, du müsstest vor jede Funktion das WorksheetFunction setzen, also:

    =WorksheetFunction.IfError(Worksheetfunction.Countifs....



    Ich lasse dann lieber die With-Anweisung für das Blatt weg und referenziere immer auf das Blatt und schreibe dann eine With-Anweisung für die WorksheetFunction:



    For Each rngfp In Sheets("FP").Range("D3:D" & lrowfp)

    With WorksheetFunction

    rngfp.Value = .IfError(.CountIfs(Sheets("Raw data 48hrs") _

    .Range("A2:A" & Lrow48), Sheets("FP").Cells(rngfp.Row, 2), _

    Sheets("Raw Data 48hrs").Range("M2:M" & Lrow48), "No"), "")

    End With

    Next



    Mit freundlichen Grüßen

    Claus
  4. ThomasLST Win User

    Mail auf andere 365 Lizenz übertragen

  5. Andreas Killer Win User

    Hallo, ich möchte aus Performance-Gründen einen SVERWEIS mit mehreren Suchkriterien als Makro programmieren.

    Okay, also ich probier mal mit Material, Lager und 30 Spalten mit 20.000 Datensätzen und einer Suche die 60 Kombinationen dort rausfiltert.

    Mach mal eine neue Datei und lass dies Makro laufen, das erzeugt meinen Datenbestand:

    Sub Setup()

    Dim Data(1 To 20000, 1 To 32)

    Dim Temp

    Dim i As Long, j As Long, k As Long

    Cells.ClearContents

    For i = 1 To UBound(Data)

    Do

    j = Rnd * 10

    Loop Until j > 5

    If i + j > UBound(Data) Then j = UBound(Data) - i

    k = k + 1

    For j = i To i + j

    Data(j, 1) = "Mat " & k

    Next

    i = j - 1

    Next

    For i = 1 To UBound(Data)

    Data(i, 2) = "Lager " & Int(Rnd * 30)

    For j = 3 To UBound(Data, 2)

    Data(i, j) = Chr(Asc("A") + Rnd * 25)

    Next

    Next

    With Sheets("Tabelle1")

    .Cells.ClearContents

    .Range("A2").Resize(UBound(Data), UBound(Data, 2)) = Data

    ReDim Temp(1 To UBound(Data, 2))

    Temp(1) = "Material"

    Temp(2) = "Lager"

    For i = 3 To UBound(Temp)

    Temp(i) = "Spalte " & i - 2

    Next

    .Range("A1").Resize(1, UBound(Temp)) = Temp

    End With

    With Sheets("Tabelle2")

    .Cells.ClearContents

    .Range("A1:B1") = Array("Material", "Lager")

    .Range("A2").FormulaLocal = "=INDEX(Tabelle1!A:A;ZUFALLSBEREICH(1;2000))"

    .Range("B2").FormulaLocal = "=INDEX(Tabelle1!B:B;ZUFALLSBEREICH(1;2000))"

    With .Range("A2:B61")

    .FillDown

    .Value = .Value

    End With

    End With

    With Sheets("Tabelle3")

    .Cells.ClearContents

    End With

    End Sub

    Unten findest Du eine modifizierte Variante Deines Makros, braucht bei mir ca. 1,5 Sekunden um das Ergebnis zu liefern.

    Das Zeilen in meinem Beispiel leer bleiben ist kein Fehler, denn es ist wohl auch bei Dir möglich das es manche Kombination aus Material und Lager nicht gibt.

    Andreas.

    Public Sub machs3()

    Dim MyDic As Object

    Dim Matrix, Suchkriterium, Ausgabe

    Dim L As Long, i As Long, r As Long

    Dim Key As String

    Set MyDic = CreateObject("Scripting.Dictionary")

    With Sheets("Tabelle1")

    Matrix = .Range("A1").CurrentRegion

    End With

    For L = 1 To UBound(Matrix)

    Key = Matrix(L, 1) & vbNullChar & Matrix(L, 2)

    If Not MyDic.Exists(Key) Then MyDic(Key) = L

    Next

    With Sheets("Tabelle2")

    Suchkriterium = .Range("A1", .Range("B" & Rows.Count).End(xlUp))

    End With

    ReDim Ausgabe(1 To UBound(Suchkriterium), 1 To UBound(Matrix, 2))

    For L = 1 To UBound(Suchkriterium)

    Key = Suchkriterium(L, 1) & vbNullChar & Suchkriterium(L, 2)

    If MyDic.Exists(Key) Then

    r = MyDic(Key)

    For i = 1 To UBound(Matrix, 2)

    Ausgabe(L, i) = Matrix(r, i)

    Next

    End If

    Next

    Sheets("Tabelle3").Range("A1").Resize(UBound(Suchkriterium), UBound(Matrix, 2)) = Ausgabe

    End Sub
  6. question_of_ Win User

    Import Problem

    Hallo,

    Danke für die Rückmeldung, werde es mal probieren..

    Melde mich dann ob es geklappt hat oder nicht..:-(



    Wolfgang
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

Problem with data import - Microsoft Office

Die Seite wird geladen...

Problem with data import - Similar Threads - Problem with data

Forum Datum

Problem Import Sharepointliste aus Excel

Problem Import Sharepointliste aus Excel: Hallo zusammen, ich habe folgendes Problem: ich möchte ganz normal eine Excelliste in eine Sharepoint-Liste umwandeln. Jedes Mal wenn ich den Import starte, bekomme ich die Fehlermeldung, dass in...
Microsoft Office 22. Februar 2024

Problem with Exchange emails

Problem with Exchange emails: hi,I use my hotmail.com address as my main email. I get emails on my iPhone, MacBook and Mac but since a few days I am having problems using it on my iPad.It constantly asks for my password and...
Outlook.com 10. Januar 2024

Problem with wevtutil / WMI

Problem with wevtutil / WMI: Der folgende Befehl listet 1.180 Protokolle, u.a. "Microsoft-Windows-USBVideo/Analytic":C:\Windows\system32>wevtutil el...Microsoft-Windows-USBVideo/Analytic...Auf 1.179 Protokolle kann ich eine...
Apps 15. August 2022

Problem with wevtutil / WMI

Problem with wevtutil / WMI: Der folgende Befehl listet 1.180 Protokolle, u.a. "Microsoft-Windows-USBVideo/Analytic":C:\Windows\system32>wevtutil el...Microsoft-Windows-USBVideo/Analytic...Auf 1.179 Protokolle kann ich eine...
Games und Spiele 15. August 2022

Problems with Microsoft Support & Data-Management. You too?

Problems with Microsoft Support & Data-Management. You too?: I sent my surface for service and wrote the correct delivery address into your form. A day later I get an invoice with the wrong delivery address. To check whether you sent the new surface to the...
Surface 16. März 2018

kb4038779 - problem with getnameinfo()

kb4038779 - problem with getnameinfo(): Don't know whether this is a place to drop my question. Probably not. But maybe someone coudl guide me to the right place. The following program stopped working after this patch (kb4038779) had...
Allgemeines 13. Dezember 2017

kb4038779 - problem with getnameinfo()

kb4038779 - problem with getnameinfo(): The following program stopped working after this patch (kb4038779) had been installed in Windows 7 Pro x64 SP1: // gethostname.c : // // Testprogramm zum Testen der getnameinfo-Funktion unter...
Allgemeines 5. Dezember 2017
Problem with data import solved
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.