rshields391
New Member
- Joined
- Dec 3, 2010
- Messages
- 9
My table looks like this...
Header
Move In Report
Property 1
11 --- a --- l
22 --- b --- m
33 --- c --- n
44 --- d --- o
55 --- e --- p
Property 1
66 --- f --- q
77 --- g --- r
Property 2
11 --- h --- s
12 --- i --- t
13 --- j --- u
14 --- k --- v
Property 3
Move In Report
This may be stupid, but I was trying a bunch of different macros and none of them have seemed to work exactly as I need it.
My code needs to be based off of columns A , B, and C so that the two columns are compared against each other so that unless the row is EXACTLY the same as another row, it will remain. If they are identical only the ones BELOW the first one get deleted.
In the example I showed, the red and bolded should be deleted.
If it helps, column A has a bunch of headers (property names) and below the properties are the unit codes. Column B has tenant codes and Column C has tenant names. Some unit codes in column A are the same, but those rows should not be deleted unless the tenant code and name are the same too. The headings repeat several times, and those should be deleted, but all the macros that do that also delete the rows that have the same unit codes.
Also, I really don't want the macro to change my formatting or text. One macro that works changes the format of the numbers, and they need to be formatted as text.
Filtering my data so that the duplicates end up on the bottom is out of the question, the data needs to stay in the order that the report generates.
Thanks in advance!!!
Header
Move In Report
Property 1
11 --- a --- l
22 --- b --- m
33 --- c --- n
44 --- d --- o
55 --- e --- p
Property 1
66 --- f --- q
77 --- g --- r
Property 2
11 --- h --- s
12 --- i --- t
13 --- j --- u
14 --- k --- v
Property 3
Move In Report
This may be stupid, but I was trying a bunch of different macros and none of them have seemed to work exactly as I need it.
My code needs to be based off of columns A , B, and C so that the two columns are compared against each other so that unless the row is EXACTLY the same as another row, it will remain. If they are identical only the ones BELOW the first one get deleted.
In the example I showed, the red and bolded should be deleted.
If it helps, column A has a bunch of headers (property names) and below the properties are the unit codes. Column B has tenant codes and Column C has tenant names. Some unit codes in column A are the same, but those rows should not be deleted unless the tenant code and name are the same too. The headings repeat several times, and those should be deleted, but all the macros that do that also delete the rows that have the same unit codes.
Also, I really don't want the macro to change my formatting or text. One macro that works changes the format of the numbers, and they need to be formatted as text.
Filtering my data so that the duplicates end up on the bottom is out of the question, the data needs to stay in the order that the report generates.
Thanks in advance!!!