Experts Required..

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Function FindOperatingMode()
Dim i
Dim j
For j = 13 To i
For i = 13 To Range("BR13").End(xlDown).Row
If Cells(i, "BR") <> "O" Then
Cells(j, "L").Value = "" & Cells(j, "K").Value
End If
Next
End Function

Hey Hi All,
I have stuck pls experts required.
Col Br contains - O , S, D values.
Col K contains some value. eg- 125, 325 etc.
i tryed for,
In the Col "BR", suppose any cells which does contain value "O" (i.e- other than "O")
in this case value contain in col k should get cut and paste into the col L.
Exactly wht i required -
if col BR contain value S or D, that respective cell value in Col k should get cut and paste into the Col L.
Can any one help me on this?, Experts..
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try using only one for loop as you and it should probably be a sub rather than a function.
Code:
Sub FindOperatingMode()
    Dim i As Long
    For i = 13 To Range("BR13").End(xlDown).Row
        If Cells(i, "BR").Value <> "O" Then
            Cells(i, "L").Value = Cells(i, "K").Value
        End If
    Next i
End Sub
 
Upvote 0
u can use the cells(row,column).value so not the "BR" (replace row, column with i,j) the column can have an integer value so looping through is easy
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top