VBA if else statement with multiple conditions - Excel VBA

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024
  • This tutorial explains IF Elseif Else Statement in Excel VBA with simple example. We can use IF ElseIF Statement with multiple conditions in VBA programming.

Комментарии • 19

  • @Sarfoo93
    @Sarfoo93 3 года назад +2

    How to use these conditions on time? For example if work done within certain time it should "Met" and if not done within time line it should show "Not met"

    • @ExcelDestination
      @ExcelDestination  3 года назад

      thank for your comment.
      you can take help from following tutorial :
      ruclips.net/video/VmtEM5-RkQY/видео.html

  • @gullivergimeno7586
    @gullivergimeno7586 3 года назад +1

    This is super nice!!!

  • @alshdesignstudio5552
    @alshdesignstudio5552 Год назад +1

    Thanks bro...

  • @sandeepkumar-cx4or
    @sandeepkumar-cx4or 5 лет назад +1

    Great sir you genious

  • @anilkumardaharwal904
    @anilkumardaharwal904 3 года назад +1

    if in a case the value of A1= A2=A3=A4= till A ActiveSheet.UsedRange then add the G1+G2 upto G ActiveSheet.UsedRange can be possible write a VBA code to check this condition . Request for answer on my mail ID pls

  • @foxycikgu1410
    @foxycikgu1410 5 лет назад

    And make the condition from cell row 5 until row 30 colom 3 and colom 4

  • @1gopalakrishnarao
    @1gopalakrishnarao 5 лет назад +1

    Thank you.

  • @nilimasenapati6660
    @nilimasenapati6660 4 года назад +1

    But how to use else if , if in multiple ledger transforming to their concern destination worksheet.

    • @ExcelDestination
      @ExcelDestination  4 года назад +1

      for any specific vba code, you can write to exceldestination@gmail.com

    • @nilimasenapati6660
      @nilimasenapati6660 4 года назад

      @@ExcelDestination ok I will submit my file with the problems in details and for a possible solutions; to this id tomorrow and I am hopeful that the same will be resolved by you. Thank u for replying thank u so much. I am really glad .

    • @nilimasenapati6660
      @nilimasenapati6660 4 года назад

      @@ExcelDestination what happened about the coding of my email file . plz break the silence

    • @nilimasenapati6660
      @nilimasenapati6660 4 года назад

      @@ExcelDestination Coding for extracting data from data base between any two different dates
      While run Show Compile error wrong number of arguments or invalid property assignment
      My Date is under column 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61
      plz correct the code
      Private Sub CommandButton1_Click()
      Dim i As Long
      Dim x As Integer
      Sheet5.Range("A" & 2, "M" & 50000).ClearContents
      For i = 3 To Sheet1.Range("B100000").End(xlUp).Row
      If Sheet1.Cells(i, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61) >= CDate(Me.TextBox1) And _
      Sheet1.Cells(i, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61)

  • @foxycikgu1410
    @foxycikgu1410 5 лет назад

    How about 5 condition? Please give me solution
    Thank....👍👍👍👍👍

  • @MohAboAbdo
    @MohAboAbdo 5 лет назад

    Thanks ... Thanks.

  • @javedahmed8343
    @javedahmed8343 3 года назад

    Nice