VBA For Beginners: How To EASILY Master The If/Then Statement

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • 🎁 SAVE UP TO 40% IN JULY 2024 DURING OUR BIRTHDAY CELEBRATION ► rebrand.ly/7thAnniv_YTDesc
    🔥 GET THIS + 350 OF MY BEST DONE-FOR-YOU TEMPLATES HERE ► rebrand.ly/350Wkbks_YTDesc
    📚 GET A DISCOUNTED DEVELOPERS LIBRARY HERE ► rebrand.ly/UDVL_YTDesc
    🤖BRING AI INTO EXCEL WITH THIS INCREDIBLE ADD-IN ► rebrand.ly/AIToolpack_YTDesc
    👉CREATE & SELL EXCEL BASED SOFTWARE IN MY MENTORSHIP PROGRAM ► rebrand.ly/MentorshipProgram_...
    ▶️ GET ACCESS TO OVER 100 UPDATED TRAININGS, WORKBOOKS & PDF CODEBOOKS: rebrand.ly/Patreon_YTDesc
    👨‍💼BECOME AN EXPERT AT DASHBOARDS ► rebrand.ly/ExcelDashboard_YTDesc
    📣START LEARNING VBA HERE ► rebrand.ly/VBAEFFDan_YTDesc
    🏝BECOME A SUCCESSFUL FREELANCER ► rebrand.ly/FreelancersAcademy...
    ⭐️JOIN RUclips MEMBERS FOR UNRELEASED TRAININGS ► rebrand.ly/YTMembership_YTDesc
    In this training, I will share with you all of the fundamental techniques of the powerful If/Then Statement within Microsoft Excel VBA. After this 30-minute masterclass, you will have all of the tools, tips, tricks and techniques necessary to write your own code with ease.
    ⬇DOWNLOAD THIS WEEK'S WORKBOOK TEMPLATE HERE:
    bit.ly/IfThenStatemnts_WkbkDl
    🤑 START EARNING BIG $$$ WITH MY AFFILIATE PROGRAM 👉 rebrand.ly/Affiliate_YTDesc
    EXCEL COURSES:
    ►FREELANCER ACADEMY: rebrand.ly/FreelancersAcademy...
    ►MENTORSHIP PROGRAM: rebrand.ly/MentorshipProgram_...
    ►DASHBOARD MASTERCLASS: rebrand.ly/ExcelDashboard_YTDesc
    ►BEGINNERS VBA COURSE: rebrand.ly/VBAEFFDan_YTDesc
    ►WEB AUTOMATION COURSE WITH EXCEL VBA: rebrand.ly/WebAuto_YTDesc
    EXCEL PRODUCTS:
    ►Turbocharge Your App Development: rebrand.ly/UDVL_YTDesc
    ►Get 350 Templates In 1 Zip File: rebrand.ly/350Wkbks_YTDesc
    ►Get ChatGPT Into Excel With This Addin: rebrand.ly/AIToolpack_YTDesc
    ►The Ultimate Excel Resource Guide: rebrand.ly/UERG_YTDesc
    ►Get Your Actual Employee Hourly Cost: rebrand.ly/LBC_YTDesc
    ►1000 Incredible Freelancing Resources: rebrand.ly/UFRG_YTDesc
    🧐Find the Best Excel Products & Courses Here: rebrand.ly/ExcelProductsAndCo...
    Timestamps:
    0:00 - Introduction
    0:58 - Single Condition - Single Action
    1:38 - Single Condition - Single Action w/ Else
    10:09 - Single Row
    11:08 - Single Row with Else
    12:08 - Basic IF THEN Example
    12:59 - IF THEN Else Example
    14:07 - IF THEN Else If Example
    15:06 - Nested If Then Sample
    16:14 - If Then Sample Using End
    17:16 - If Then Sample Using Or
    18:30 - Group Students By Weekday
    JOIN OUR COMMUNITY:
    ►Facebook Group: rebrand.ly/EFF_Group
    ►Facebook Fan Page: rebrand.ly/EFF_FanPage
    Follow me on my Social Media Accounts:
    🤩TikTok: / excel4freelancers
    🐦Twitter: / excel4freelance
    🌏Website: www.ExcelForFreelancers.com
    🔗LinkedIn: / excelforfreelancers
    👤Facebook: / excelforfreelancers
    📸 Instagram: / excelforfreelancers
    🎥Rumble: rumble.com/c/ExcelForFreelancers
    ✉Telegram: t.me/ExcelForFreelancers
    About Us:
    I help Microsoft Excel enthusiasts turn their passion into profits so they can earn passive income using their skills without having to trade time for money.
    I love making these videos for you each and every week. A great way of supporting Excel For Freelancers to keep this training free each and every week is by supporting us through one of the amazing products offered that will help you skyrocket your Excel Skills and reach your dreams.
    Get Alerted IMMEDIATELY with new Free Training Videos & Workbook by subscribing here:
    👉 / excelforfreelancers
    New Training Video Uploaded every Tuesday!
    Thank you very much for your continued support,
    Randy Austin

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

  • @ExcelForFreelancers
    @ExcelForFreelancers  2 месяца назад

    🎉 7th Anniversary Sale: Save Big This July 2024! ► rebrand.ly/7thAnniv_YTPinnedCom

  • @Jojosmith342
    @Jojosmith342 7 месяцев назад +4

    Always thumps up to the best vba teacher Randy. Thanks for sharing your knowledge Randy

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Thank you so very much, I really appreciate that Jojo. I am happy to help and share

  • @Dexter101x
    @Dexter101x 7 месяцев назад +3

    Thanks for another excellent tutorial on VBA

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад +1

      For sure, you are very welcome Dexter and thanks for your continued support.

  • @juanakonneh7232
    @juanakonneh7232 2 месяца назад +1

    So many thanks Sir!..

    • @ExcelForFreelancers
      @ExcelForFreelancers  2 месяца назад

      For sure, you are very welcome and I am happy to help and share

  • @michaelsvenson2456
    @michaelsvenson2456 7 месяцев назад +1

    As I said before, you are a true wizard in this, easy to follow and understand what is happening. Thumbs up. 😁👏

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Great thanks so much and I am very happy you enjoyed the video

  • @akibul_islam
    @akibul_islam 7 месяцев назад +4

    please continue this course...

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      For sure, you are very welcome and I will be sure to do these VBA Basic trainings every weekend. Thank you for your Likes, Shares & Comments. It really helps.

  • @martindejesus1169
    @martindejesus1169 7 месяцев назад +2

    Great lesson.
    I loved how you declared the GrpRow variable and ended up using the End (xlup) shortcut instead. I will be using this from now on.

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Thanks so much Martin, yes it was a simple change I figured it made more sense. Thank you for your Likes, Shares & Comments. It really helps.

    • @martindejesus1169
      @martindejesus1169 7 месяцев назад +1

      @@ExcelForFreelancers I was wondering how you were going to create 3 groups in different columns without declaring a variable for each row. Then I saw it. 👏👏👏

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Yes thanks. I wanted something kind of unique. This could also be done with an advanced filter. If i had a lot of data, for sure an advanced filter would be faster, but this training I really wanted to focus on the If/Then statement and for sure we will get to the advanced filter in the near future.

  • @MegaTimPim
    @MegaTimPim 7 месяцев назад +1

    Another awesome video of VBA magic. Thank you !!!

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Thank you so very much, I really appreciate that MegaTimePim

  • @sahralsahri7180
    @sahralsahri7180 7 месяцев назад +1

    Something beautiful, excellent and wonderful.
    👍⭐⭐⭐⭐

  • @sueharper7155
    @sueharper7155 7 месяцев назад +2

    Thanks!

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Thank you so very much, I really appreciate that Sue. Very kind and considerate of you and thanks for your support.

  • @Estimation_costing_mithun
    @Estimation_costing_mithun 7 месяцев назад +2

    Super course for beginners 🎉🎉🎉

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Great and thanks so much. I am glad you enjoyed the training.

  • @gmagcaling
    @gmagcaling 7 месяцев назад +1

    Amazing presentation. thank you.

  • @laminulams8723
    @laminulams8723 7 месяцев назад +5

    Please next do, mastering loops. Thanks, we can't thank you more.

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад +2

      WOW, How did you know? I just recorded that 2 days ago and scheduled it for next Saturday. I am sure you will love that

    • @akkintouch
      @akkintouch 7 месяцев назад +1

      @@ExcelForFreelancers
      Please also include find and find next and also with multiple criteria to be found

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад +2

      Great idea and thanks so much. I will make sure to get it done in the very near future within this VBA Basics training.

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад +2

      Great idea and thanks so much. I will make sure to get it done in the very near future within this VBA Basics training.

  • @rnunez047
    @rnunez047 7 месяцев назад +1

    ¡Gracias!

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад +1

      Thank you so very much, I really appreciate that @rnunez047 I appreciate your generosity and kindness

  • @vinodrajeshkumar6025
    @vinodrajeshkumar6025 7 месяцев назад +3

    Thank you very much. Really appreciate this beginner friendly series very much 🙏🏽

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      For sure, you are very welcome and I am very happy to bring you these basic trainings.

  • @thehgamers
    @thehgamers 7 месяцев назад +1

    Hello Randy, this is amazing teaching video as always. I saw your video on coauthoring with any version of excel where you created a message box to be sent between different users, I have a suggestion, can you create approval form as well in similar way but on opening, instead of killing it, load its different responses and details to a database. This would be a very useful app for users of Microsoft other than 365.

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Hi and thanks for the nice suggestion. I will certainly consider this in the near future. For the approval form, what type of context did you have in mind? Like a Purchase Order approval or something different?

  • @conan7422
    @conan7422 7 месяцев назад +1

    better nested conditions because vba performes all conditions on the way before testing it so the 2th condition perhaps is only valid if the first is true: "if x0 and y>(1/x) then" must be nested

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Yes for sure and thanks. I also share a nested sample within the code. Thank you for your Likes, Shares & Comments. It really helps.

  • @kalpanathakur6300
    @kalpanathakur6300 6 месяцев назад +1

    What is difference between "Nested if" and "IF with AND "

    • @ExcelForFreelancers
      @ExcelForFreelancers  6 месяцев назад +1

      Hi and thanks for your comment. In a nested if we can perform some actions with a single condition and then additional actions when the other condition is true. Using the AND statement we can only perform actions when both actions are true.
      I hope this helps and thanks so much.

  • @AyushmanThakur-mo3ee
    @AyushmanThakur-mo3ee 5 месяцев назад +1

    Sir why did you take "GrpRow as Long" what is is working in code ???
    and 2nd Question is If we add more names is Student list then what will be the code
    because loop is 3 to 27 amd end userr is not able to increase it then what will be the code...for 27 become 28 then 29 as we add the more students Names
    Thank you....

    • @ExcelForFreelancers
      @ExcelForFreelancers  5 месяцев назад

      Hi and thanks the GrpRow is the row of the database or list. Since this video purpose is only to demonstrate the If/Then statement and not to create applications. To learn more about creating full applications please see any one of my hundreds of other videos. I hope this helps and thanks so much.

  • @excelpro365_1
    @excelpro365_1 7 месяцев назад +1

    Good afternoon sir. I have created a database and forms in it using MS Access. My problem is, I cannot find a way to set it in such a way that when i click on the database on my desktop it will open just that form and not open MS Access at All. Any help on this will be greatly appreciated.

    • @ExcelForFreelancers
      @ExcelForFreelancers  7 месяцев назад

      Hi and thanks very much. I am not sure with Access as I am focussed on Excel VBA. Thank you for your Likes, Shares & Comments. It really helps.

    • @excelpro365_1
      @excelpro365_1 7 месяцев назад +1

      @@ExcelForFreelancers Thank you boss.

  • @dineshthakur3278
    @dineshthakur3278 5 месяцев назад

    Can you give subtitles in hinglish??? If you can it will very very helpful for me i am not able to catch your assent that's why

    • @ExcelForFreelancers
      @ExcelForFreelancers  5 месяцев назад +1

      Hi and thanks very much. I do have subtitles in 12 languages but no 'hinglish' :D :D i will do my best to slow down. I hope this helps and thanks so much.