Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Am new into vba. I have this task which is a little difficult for me. i
need to translate this excel formula into program: =IF(C2="FSOP","P","S"). Iwas on column "I". and developing a macro for an undetermined no of rows, i got this but couldn't achieve the objective. Dim z As Integer Dim str As String Dim tt As String Dim cy As String str = "A1" Range(str).Select z = 2 Do While str < " " cy = "C" & z Range(cy).Select If cy = "FSOP" Then tt = "i" & z Range(tt).Select tt = "P" z = z + 1 str = "A" & z Else tt = "i" & z Range(tt).Select tt = "S" str = "A" & z z = z + 1 End If Loop |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert vlookup formula to link formula | Excel Worksheet Functions | |||
How to convert a static formula to dynamic formula ? | Excel Worksheet Functions | |||
Excell convert formula row to formula column | Excel Worksheet Functions | |||
how to convert a formula into text in order to display the formula | Excel Discussion (Misc queries) | |||
Convert Normal formula to array formula | Excel Programming |