Ok I have been stuck on this for a while, and hope someone can help. I have an Excel Workbook with useful data in Column A and Column K. I would like to accomplish the following using a VBA macro on Worksheet 30:
Dim D04C_MMF_Count As Integer
D04C_MMF_Count = 0
If the contents of a cell in column A = D04C AND the contents of a cell in column K = MMF, Then
D04C_MMF_Count = D04C_MMF_Count +1
Else
End If
I have Googled every resource I can find, and reviewed several threads, and I can't find a solution. I plan to scale this up to many more examples, but can't seem to get the Logic/Syntax right. I would like to search all cells in each column. It was just pointed out to me Concatenating strings MAY help, but I would like to avoid that if at all possible. Any input would be helpful. Thank You.
Dim D04C_MMF_Count As Integer
D04C_MMF_Count = 0
If the contents of a cell in column A = D04C AND the contents of a cell in column K = MMF, Then
D04C_MMF_Count = D04C_MMF_Count +1
Else
End If
I have Googled every resource I can find, and reviewed several threads, and I can't find a solution. I plan to scale this up to many more examples, but can't seem to get the Logic/Syntax right. I would like to search all cells in each column. It was just pointed out to me Concatenating strings MAY help, but I would like to avoid that if at all possible. Any input would be helpful. Thank You.
Last edited: