# This is a placeholder as the actual Google Sheet cannot be generated directly via code.
# You can manually create the following columns in a Google Sheet:

columns = [
„Datum“,
„Fahrer“,
„Fahrzeug“,
„Startort“,
„Zielort“,
„Einnahmen (Bar)“,
„Einnahmen (Karte)“,
„Gesamt Einnahmen“,
„Ausgaben (€)“,
„Banküberweisung (€)“,
„Beschreibung“
]

# Sample dummy data row (manually enter in Google Sheet):
data = [
[„01.06.2025“, „Sajawal“, „Taxi 1“, „Kaiserslautern“, „Mainz“, 55.0, 30.0, 85.0, 10.0, 50.0, „Bahnhof Fahrt“],
[„02.06.2025“, „Sajawal“, „Taxi 1“, „Kaiserslautern“, „Mannheim“, 72.0, 40.0, 112.0, 12.0, 60.0, „Krankenhaus“]
]

# Use QUERY + IMPORTRANGE formula in Google Sheet in cell B2:
formula = “‘
=QUERY(
IMPORTRANGE(
„1jEFLDSoVKGqwYtcHw7TBlNI1VrSUgK_QpfmUaLZJV0U“,
„Form responses!B:W“
),
„SELECT Col1, Col3, Col4, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13, Col14, Col16, Col17, Col20, Col22
WHERE lower(Col2) = lower(‚“ & A2 & „‚)
AND Col1 >= date ‚“ & TEXT(DATE(VALUE(MID(A5,7,4)), VALUE(MID(A5,4,2)), VALUE(LEFT(A5,2))), \“yyyy-MM-dd\“) & „‚
AND Col1 <= date '" & TEXT(DATE(VALUE(MID(A7,7,4)), VALUE(MID(A7,4,2)), VALUE(LEFT(A7,2))), \"yyyy-MM-dd\") & "'", 1 ) ''' print("Google Sheet with columns created and QUERY formula is ready for your use.")