VBA if else statement with multiple conditions - Excel VBA

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 19

  • @gullivergimeno7586
    @gullivergimeno7586 3 ปีที่แล้ว +1

    This is super nice!!!

  • @alshdesignstudio5552
    @alshdesignstudio5552 ปีที่แล้ว +1

    Thanks bro...

  • @sandeepkumar-cx4or
    @sandeepkumar-cx4or 5 ปีที่แล้ว +1

    Great sir you genious

  • @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 :
      th-cam.com/video/VmtEM5-RkQY/w-d-xo.html

  • @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

  • @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 ปีที่แล้ว

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

  • @MohAboAbdo
    @MohAboAbdo 5 ปีที่แล้ว

    Thanks ... Thanks.

  • @javedahmed8343
    @javedahmed8343 3 ปีที่แล้ว

    Nice

  • @foxycikgu1410
    @foxycikgu1410 5 ปีที่แล้ว

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