I would like to count how many times a value is in the column furniture, however this column may sometimes be in a different place. So I'd have to refer to the name instead of column number. Eventually create a new column where it is stated how many times that furniture appears. Below you find a simple example.
| owner | furniture |
|---|---|
| owen | chair |
| mila | table |
| will | |
| jack | chair |
| zoe | lamp |
| mike | lamp |
| maya | chair |
Wanted outcome
| owner | furniture | groupsize |
|---|---|---|
| owen | chair | 3 |
| mila | table | 1 |
| will | ||
| jack | chair | 3 |
| zoe | lamp | 2 |
| mike | lamp | 2 |
| maya | chair | 1 |
'Chair' appears 3 times in the column furniture
I'm aware of the countif formula, but I need vba. I tried several things, but neither came close. Any suggestions?