saltire1963
Board Regular
- Joined
- Aug 11, 2014
- Messages
- 69
I'm not sure how to fix this.
I've copied my last years worth of credit card statements (2400 rows) into Excel so that I can analyse the data. In each cell in Column D there is text (the narration provided by the Bank) which could be say PAYPAL *NETFLIX.COM 402***** AU and what I would like to do is to search this text string for certain sub strings, say NETFLIX and if a match is found, I would like to categorise it in the cell before in Column C with say the text string "Entertainment". Then move onto all other Rows and categorise each one etc.
If the next row say has any of the multiple words "taxi" or "cab" or "Uber" then I may want to put in Column C the text "Taxi".
SubString = ("taxi", "cab", "Uber")
For i = 3 To finalrow
MainString = Range("D" & i)
If InStr(MainString, SubString) <> 0 Then
Range("C" & i).Value = "Taxi"
End If
Next i
Thanks in advance
I've copied my last years worth of credit card statements (2400 rows) into Excel so that I can analyse the data. In each cell in Column D there is text (the narration provided by the Bank) which could be say PAYPAL *NETFLIX.COM 402***** AU and what I would like to do is to search this text string for certain sub strings, say NETFLIX and if a match is found, I would like to categorise it in the cell before in Column C with say the text string "Entertainment". Then move onto all other Rows and categorise each one etc.
If the next row say has any of the multiple words "taxi" or "cab" or "Uber" then I may want to put in Column C the text "Taxi".
SubString = ("taxi", "cab", "Uber")
For i = 3 To finalrow
MainString = Range("D" & i)
If InStr(MainString, SubString) <> 0 Then
Range("C" & i).Value = "Taxi"
End If
Next i
Thanks in advance