Notes
Notes - notes.io |
Dim ws As Worksheet
Dim i As Long
Dim lastRow As Long
Dim sinif As String
Dim runHesap As Variant
Dim toplamRun As Double
Set ws = ThisWorkbook.Sheets("Sheet1")
lastRow = ws.Cells(ws.Rows.Count, "F").End(xlUp).Row ' F sütunu: SOIR
For i = 2 To lastRow
Dim soir As Variant: soir = ws.Cells(i, "F").Value
' SOIR Sheet4'te varsa devam et
If Not IsError(Application.Match(soir, Sheets("Sheet4").Range("A:A"), 0)) Then
Dim q As String: q = ws.Cells(i, "Q").Value
Dim h As Variant: h = ws.Cells(i, "H").Value
Dim k As Variant: k = Val(ws.Cells(i, "K").Value)
Dim af As Double: af = Val(ws.Cells(i, "AF").Value)
Dim n As Double: n = Val(ws.Cells(i, "N").Value)
' Sınıflandırma
If q = "UÇAK" Then
If Not IsError(Application.Match(h, Sheets("Sheet3").Range("A2:A13"), 0)) Then
sinif = "Kalınlar"
ElseIf Not IsError(Application.Match(h, Sheets("Sheet3").Range("L2:L13"), 0)) Then
sinif = "İnceler + S19"
ElseIf k = 424 And Not IsError(Application.Match(h, Sheets("Sheet3").Range("A20:A23"), 0)) Then
sinif = "424 Dome"
ElseIf k = 426 And Not IsError(Application.Match(h, Sheets("Sheet3").Range("A20:A23"), 0)) Then
sinif = "426 Dome"
Else
sinif = "Uçak_Diğer"
End If
ElseIf af * 3000 <= 16 Then
sinif = "Kılçık"
ElseIf af * 3000 <= 75 Then
sinif = "Kanca"
Else
sinif = "Other"
End If
ws.Cells(i, "AH").Value = sinif
' Run hesabı
Select Case sinif
Case "Kalınlar"
If n <> 0 Then runHesap = n / 4 Else runHesap = ""
Case "İnceler + S19"
If n <> 0 Then runHesap = n / 8 Else runHesap = ""
Case "424 Dome"
If n <> 0 Then runHesap = n / 32 Else runHesap = ""
Case "426 Dome"
If n <> 0 Then runHesap = n / 16 Else runHesap = ""
Case "Kılçık"
If n <> 0 Then runHesap = (n / 122 / 6) * 20 * 210 / 147000 Else runHesap = ""
Case "Kanca"
If n <> 0 Then runHesap = (n / 11 / 12) * 35 * 210 / 147000 Else runHesap = ""
Case "Other"
If n <> 0 Then runHesap = (af * 3000) / n / 147000 Else runHesap = ""
Case Else
runHesap = ""
End Select
If IsNumeric(runHesap) Then
ws.Cells(i, "AI").Value = runHesap
toplamRun = toplamRun + runHesap
Else
ws.Cells(i, "AI").Value = ""
End If
End If
Next i
' Sonuçları H12 ve I12'ye yaz
ws.Range("H12").Value = "Toplam Run"
ws.Range("I12").Value = toplamRun
End Sub
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
