R
Ray
I need help checking to see if an entry in column A pre-
exists within that same column, but in the rows above the
current location. This data is potentially non-sequential.
What I need to do is generate a unique cell entry that
contains a portion of a last and first name. I started
simple, like this;
All examples are entered in Cell A2, with row 1
containing a heading.
Column C = last name
Column D = first name
Column A = formula as seen below
=CONCATENATE(LEFT(C2,4),LEFT(D2,1))
There is a conditional formula that highlights
duplicates in RED
=IF(AND(NOT(A1="")),(A1)=(A2))
I then modified the formula to check for duplicates in
the cell portions I would prefer to pull from, and, if
applicable, change the format from 4LAST/1FIRST to
3LAST/2FIRST, like this;
=IF(CONCATENATE(LEFT(C1,4),LEFT(D1,1))=(CONCATENATE(LEFT
(C2,4),LEFT(D2,1))),CONCATENATE(LEFT(C2,3),LEFT
(D2,2)),CONCATENATE(LEFT(C2,4),LEFT(D2,1)))
Which works great, if there is only one duplicate. Of
course, my data contains several potential duplicates.
RODRIGUEZ ABUNDIO
RODRIGUEZ ANDRES
RODRIGUEZ ANDRES
RODRIGUEZ ANTONIO
RODRIGUEZ JOSEPH
RODRIGUEZ MIQUEL
RODRIGUEZ RAUL
RODRIGUEZ RICARDO
RODRIGUEZ RICARDO
RODRIGUEZ RUBEN
RODRIGUEZ VALERY
I was thinking I could use something like the LOOKUP or
INDEX function and copy a range that anchors the first
cell so the range continually expands from A$2 to the
cell above the current entry, but I'm not sure how to go
about this.
Grant it, I would prefer to generate this unique cell
entry entirely by formula, but I assume that due to
Excel's limitations, I may have to settle for overcoming
a few duplicates and flagging then rest for manual
intervention.
Further more, I would love to conditionally format (if
not correct) the cell based on validation for proper
charector length, but mayne I am dreming here.
Any help would be greatly appreciated!
exists within that same column, but in the rows above the
current location. This data is potentially non-sequential.
What I need to do is generate a unique cell entry that
contains a portion of a last and first name. I started
simple, like this;
All examples are entered in Cell A2, with row 1
containing a heading.
Column C = last name
Column D = first name
Column A = formula as seen below
=CONCATENATE(LEFT(C2,4),LEFT(D2,1))
There is a conditional formula that highlights
duplicates in RED
=IF(AND(NOT(A1="")),(A1)=(A2))
I then modified the formula to check for duplicates in
the cell portions I would prefer to pull from, and, if
applicable, change the format from 4LAST/1FIRST to
3LAST/2FIRST, like this;
=IF(CONCATENATE(LEFT(C1,4),LEFT(D1,1))=(CONCATENATE(LEFT
(C2,4),LEFT(D2,1))),CONCATENATE(LEFT(C2,3),LEFT
(D2,2)),CONCATENATE(LEFT(C2,4),LEFT(D2,1)))
Which works great, if there is only one duplicate. Of
course, my data contains several potential duplicates.
RODRIGUEZ ABUNDIO
RODRIGUEZ ANDRES
RODRIGUEZ ANDRES
RODRIGUEZ ANTONIO
RODRIGUEZ JOSEPH
RODRIGUEZ MIQUEL
RODRIGUEZ RAUL
RODRIGUEZ RICARDO
RODRIGUEZ RICARDO
RODRIGUEZ RUBEN
RODRIGUEZ VALERY
I was thinking I could use something like the LOOKUP or
INDEX function and copy a range that anchors the first
cell so the range continually expands from A$2 to the
cell above the current entry, but I'm not sure how to go
about this.
Grant it, I would prefer to generate this unique cell
entry entirely by formula, but I assume that due to
Excel's limitations, I may have to settle for overcoming
a few duplicates and flagging then rest for manual
intervention.
Further more, I would love to conditionally format (if
not correct) the cell based on validation for proper
charector length, but mayne I am dreming here.
Any help would be greatly appreciated!