How to carry out this task in VBA?
Example, the following information is contained in a spreadsheet named fraca1 in Excel, note the letters A and F are the column names in Excel and not part of dataset.
A F
FRACA 012313 Correction 1
FRACA 012313 Correction 2
FRACA 012313 Investigation 1
FRACA 012313 Investigation 2
FRACA 012317 Investigation 1
FRACA 012317 Investigation 2
FRACA 012317 Investigation 3
FRACA 018593 Correction 1
FRACA 035586 Correction 1
I have data contained in several columns. I need to find 3 things.
- What are the unique FRACA numbers in column A.
- How many cells in column F contain the word "Correction" corresponding to each unique FRACA number.
- How many cells in column F contain the word "Investigation" corresponding to each unique FRACA number.
This information must then be put into a new spreadsheet in the same workbook. The resulting spreadsheet would look like this:
A B C
FRACA No. Correction No. Investigation No.
FRACA 012313 2 2
FRACA 012317 0 3
FRACA 018593 1 0
FRACA 035586 1 0