rwmill9716
Active Member
- Joined
- May 20, 2006
- Messages
- 493
- Office Version
- 2013
- Platform
- Windows
I need a macro or formula that reads the word in Cell C1 and its inverse in E1 and the number of spaces between letters in Cell C2, then counts the number of times this word and its inverse with the appropriate spaces occurs in Column A. The word should contain upto 8 letters and the spaces from 0 to 50. In the example, 2 were found. Note, any letter, including the ones used in the search word, can occur in the spaces.
230906 Genesis Code Random.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Letters | ric | or | cir | |||
2 | i | 1 | |||||
3 | n | ||||||
4 | t | # Occurrences | |||||
5 | h | 2 | |||||
6 | e | ||||||
7 | b | ||||||
8 | e | ||||||
9 | r | ||||||
10 | i | ||||||
11 | i | ||||||
12 | n | ||||||
13 | c | ||||||
14 | n | ||||||
15 | g | ||||||
16 | G | ||||||
17 | o | ||||||
18 | d | ||||||
19 | c | ||||||
20 | r | ||||||
21 | i | ||||||
22 | a | ||||||
23 | r | ||||||
24 | e | ||||||
25 | d | ||||||
26 | t | ||||||
27 | h | ||||||
28 | e | ||||||
29 | h | ||||||
30 | e | ||||||
31 | a | ||||||
32 | v | ||||||
33 | e | ||||||
34 | n | ||||||
35 | a | ||||||
36 | n | ||||||
37 | d | ||||||
38 | t | ||||||
39 | h | ||||||
40 | e | ||||||
41 | e | ||||||
42 | a | ||||||
43 | r | ||||||
44 | t | ||||||
45 | h | ||||||
46 | a | ||||||
47 | n | ||||||
48 | d | ||||||
49 | t | ||||||
50 | h | ||||||
51 | e | ||||||
52 | e | ||||||
Sheet2 |