Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
I was wondering if anyone could suggest a way of writing code in VB to compare the texts in cells. For example if, in Column A, going down from row 1 to 4, the values/strings were; Cell A1 had the word Apple Cell A2 had the word Peachy Cell A3 had the word Plopped Cell A4 had the word Hate If I wanted to know how many "p"s appeared in each of the words, and the answer went in the adjacent column, what code could i use? So the end result would then have column B as, Cell B1 has the result 2 Cell B2 has the result 1 Cell B3 has the result 3 Cell B4 has the result 0 Many thanks for your help - please make the code as simple or as complicated as you will, or as long or as short as you see fit. Thanks Rajen |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing Cell Contents in 2 or More Columns | Excel Discussion (Misc queries) | |||
Comparing Field Contents | Excel Discussion (Misc queries) | |||
Comparing cell contents with different reference cells | Excel Worksheet Functions | |||
Comparing contents of two spreadsheets and outputting results to a | Excel Worksheet Functions | |||
Comparing Workbook contents | Excel Discussion (Misc queries) |