Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Spaltenvergleich bei Excel 97

Empfohlene Antworten

Hab ein Problem mit Exel und brauch dringend Hilfe. Hab ne Tabelle mit 2 Spalten, in denen Nummern aufgezählt sind. Soll jetzt überprüfen, welche Werte aus der ersten Spalte in der zweiten Spalte vorkommen. Weis von euch die verdammte Formel dafür, des kann doch net so schwer sein, aber ich habs heute den ganzen Tag gar net auf die Reihe gekriegt. Danke schon mal im voraus :mad:

Mit den Formeleditor kommst du da meiner Meinung nach nicht weit, am besten ist es du schreibst ein Makro das die beiden Spalten vergleicht.

Das ganze könnte so Aussehen:


Option Explicit

Sub Makro1()

    Dim ColumnA As Integer

    Dim ColumnB As Integer

    Dim ColumnErg As Integer

    Dim RowA As Integer

    Dim RowB As Integer


    ColumnA = 1

    ColumnB = 2

    ColumnErg = 3

    RowA = 1

    RowB = 1


    Sheets("Tabelle1").Select


    Do Until (Cells(RowA, ColumnA) = "")

        Do Until (Cells(RowB, ColumnB) = "")

            If Cells(RowA, ColumnA) = Cells(RowB, ColumnB) Then

                Cells(RowA, ColumnErg) = RowB

            End If

            RowB = RowB + 1

        Loop

        RowA = RowA + 1

        RowB = 1

    Loop

End Sub  

;)

Es wird Spalte 1 mit Spalte 2 verglichen. Kommt in Spalte 2 nun ein Wert aus Spalte 1 vor wird in Spalte 3 die ZeilenNr vom Wert in Spalte 2 geschrieben.

Viele Grüße

Jemand der zuviel Zeit hat ;-)

<FONT COLOR="#a62a2a" SIZE="1">[ 22. November 2001 18:58: Beitrag 1 mal editiert, zuletzt von Naberius ]</font>

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.