Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hello again
Today I have a table with a column called 'Concat'. This column contains multiple values. I have an update query and I want to update another column with the occurence # of the corresponding 'Concat' value. What do you think is the best approach?
Just to demonstrate this is how I would do it in excel:
Excel 2003
Today I have a table with a column called 'Concat'. This column contains multiple values. I have an update query and I want to update another column with the occurence # of the corresponding 'Concat' value. What do you think is the best approach?
Just to demonstrate this is how I would do it in excel:
Excel Workbook | ||||
---|---|---|---|---|
A | B | |||
1 | Concat | Occurence | ||
2 | 1700000023/2006-5160 | 1 | ||
3 | 1700001149/2006-5160 | 1 | ||
4 | 5106264863/2006-5160 | 1 | ||
5 | 5106264863/2006-5160 | 2 | ||
6 | 5106266720/2006-5160 | 1 | ||
7 | 5106267549/2006-5160 | 1 | ||
8 | 5106367910/2006-5913 | 1 | ||
9 | 5106367910/2006-5913 | 2 | ||
10 | 5106367910/2006-5913 | 3 | ||
11 | 5106367993/2006-5913 | 1 | ||
12 | 5106367993/2006-5913 | 2 | ||
13 | 5106368651/2006-5913 | 1 | ||
14 | 5106368652/2006-5913 | 1 | ||
15 | 5106368653/2006-5913 | 1 | ||
16 | 5106368654/2006-5913 | 1 | ||
17 | 5106368656/2006-5913 | 1 | ||
18 | 5106368656/2006-5913 | 2 | ||
19 | 5106368658/2006-5913 | 1 | ||
Index |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2 | =COUNTIF($A$2:A2,A2) |