VBA IF else with For Loop - Excel VBA IF ElseIF Else Using Loop

  Рет қаралды 20,546

Excel Destination

Excel Destination

Күн бұрын

Пікірлер: 16
@1112GT
@1112GT Жыл бұрын
Thanks for explaining with clarity. Can you please add the code dynamic if more than 101 rows are used. Thanks
@venkateshchellakannu4227
@venkateshchellakannu4227 5 жыл бұрын
God bless you sir... Please ..copy row from one sheet to multiple sheet for different data information...example Monday one sheet , Sunday one sheet, Tuesday one sheet
@akshaytapadiya2239
@akshaytapadiya2239 5 жыл бұрын
Thank you very much sir for all ur videos learning a lot !!!😊
@MrWmo1975
@MrWmo1975 2 жыл бұрын
Thank you sir! How do you apply this vba code horizontally rather vertically? What I mean is that if cell in column B =value then auto fill cells on the active row (not sequential columns for example cells in columns: F-L and M-v) with “N/A” Thanks in advance!
@alializadeh8195
@alializadeh8195 Жыл бұрын
Thank ya
@razamoulvi8801
@razamoulvi8801 3 жыл бұрын
Thanks for the video..😊👌 Appreciate😊
@ExcelDestination
@ExcelDestination 3 жыл бұрын
My pleasure 😊
@harinath624
@harinath624 Жыл бұрын
Tks for sharing this video 📹 , Can anyone help me if condition met how copy data one cells another to cells
@ashishsachdev6154
@ashishsachdev6154 5 жыл бұрын
Thankyou for this informative video... please suggest...what if we want macro to auto pick last row Or let say, if we keep on adding data and we want macro to automatically consider it as a repetitive process
@ExcelDestination
@ExcelDestination 5 жыл бұрын
Thanks Ashish! You can take help from one of my another tutorial. Link is kzbin.info/www/bejne/qYqplYiIeN6jg5o
@kapilchauhan8507
@kapilchauhan8507 3 жыл бұрын
Sir I ko aapne declare nhi kiya fir kaise code run hua
@gerardvaneggermond9967
@gerardvaneggermond9967 5 жыл бұрын
Hello sir, maybe you can help me with a rather complex problem, can help me with that. In the worksheet "Menu" I have in cell "E2" I have data from 1 to 3, now I have cell "B4" and "B10" I have an ID reference to names, what do I want to do now, Eg. if E2 = 1 I want to go to worksheet "1" then look at the IdNr then put the data in the right place. It contains date for "B4" = cell "C6", "E6", "E8". for "B10" = cell "C12", "E12", "E14". So with flea cup and a loop, maybe the next formula. if "E2" = 1 then Workbook 1 if B4 = 1 then and B10 = 2 then Hlookup (B4, workbook 1 (A1: CV21), 1) lookup (B10; workbook 1 (A1: CV21), 3.3) C6 = workbook 1 (places in column 3 row 3) for each number in b4) E6 = workbook 1 (places in column 5 row 3) for each number in b4) E8 = workbook 1 (places in column 4 row 3) for each number in b4) if B10 = 2 and B4 = 1 then Hlookup (B10, workbook 1 (A1: CV1), 1) lookup (B10; workbook 1 (A1: CV21), 3.3) C6 = workbook 1 (places in column 8 (is also colmin 3 of "B10") row 3) for each number in b4) E6 = workbook 1 (places in column 10 (is also column 5 of "B10") row 3) for each number in b4) E8 = workbook 1 (places in column 9 (is also column 4 of "B10") row 3) for each number in b4) So maybe it is useful to work with a loop loop It would be useful to (search on both B4 and B10) than put the data in the right place, is this possible? There are 20 names, I do not know if this formula is correct.
@nmeofdst8
@nmeofdst8 Жыл бұрын
Here is a much easier and simpler way to write this code: For i = 2 To 11 If Worksheets("data").Cells(i, 3).Value = "Saturday" Or Worksheets("data").Cells(i, 3).Value = "Sunday" Then Worksheets("data").Cells(i, 4).Value = "Holiday" Else: Worksheets("data").Cells(i, 4).Value = "Workday" End If Next End Sub
@MohAboAbdo
@MohAboAbdo 5 жыл бұрын
Thanks ... Thanks.
@swetaawasthi7036
@swetaawasthi7036 4 жыл бұрын
What if our data is in different sheets
@ExcelDestination
@ExcelDestination 4 жыл бұрын
then little different code would be required along with activating different sheets using looping statement
Add Data to Specific Sheet from User Form - Advanced Excel VBA Userform
25:56
The 7 Keys Areas of Excel VBA (with code examples)
28:00
Excel Macro Mastery
Рет қаралды 65 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 61 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 41 МЛН
Excel VBA If Elseif Else Statement with for loop
7:27
Excel Destination
Рет қаралды 10 М.
VBA if else statement with multiple conditions - Excel VBA
10:46
Excel Destination
Рет қаралды 43 М.
Excel VBA - If Else Using For Loop
5:27
TutorialsPoint
Рет қаралды 122 М.
Excel VBA Loop for the Beginners | Excel VBA Tutorials
45:52
Yoda Learning Academy
Рет қаралды 12 М.
Excel VBA Basics #4 - IF THEN statements within the FOR NEXT loop
11:35
VBA: IF, AND, OR statements
10:28
Amber Sharpe
Рет қаралды 21 М.
Master VBA Code Loop in Excel - 3 Types of VBA LOOPs
9:13
MyExcelOnline.com
Рет қаралды 4,3 М.
If Then Else / Excel VBA
12:27
TOPTORIALS OFFICE
Рет қаралды 5 М.
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 54 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 61 МЛН