Comparar columnas en excel

Tengo dos  columnas con direcciones de casas, necesito comparar los datos de las dos y buscar las que sean iguales. Además ordenarlas y copiar la celda vertical en otra columna. Por ejemplo:
columna 1        columna b              columna c
1002                  calle 12 45 12        carrera 10 20 54
1006                  carrea 10 20 54     carrera 5 12 47
1009                calle 14 15 78          calle 12 45 54
en otra columna debo comparar los datos de las columnas b y c, ordenarlas y copiar la celda correspondiente si la columna b y c son iguales. Agradezco mucho su ayuda. Gracias

1 Respuesta

Respuesta
1
¿Buscar las que sean iguales?
¿Qué significa iguales? Hay varios tipos de "iguales"
a) las filas i, tal que Bi=Ci
b) las filas i, j tal que Bi=Cj
c) Bi=Cj exactamente
d) Bi tenga los  datos que tiene Cj
... en fin muchos tipos de "igual", en cual de ellos estas pensando
Por otra parte, ¿cuándo dices "copiar la celda correspondiente" que quieres decir?
Copiar ¿a dónde?
Gracias por contestar, bueno aclaro que tengo 40000 direcciones en una columna y en otra columna tengo 60000 direcciones, necesito buscar las celdas que tengan el mismo texto ya que estan en desorden, por ejemplo calle 17 14 58 en la celda b56 y en la celda c 56 esta el mismo texto de b56 o sea calle 17 14 58,  quiero saber si hay una formula que ordene las celdas que tengan el mismo texto y si es posible que me pase a otra columna el valor que tengo en a56, osea si  a56 = b56, que en esa celda copie el valor de a56, gracias
<table style="border-collapse: collapse; width: 801pt;" border="0" cellspacing="0" cellpadding="0" width="1067">
<col style="width: 119pt;" width="158"></col>
<col style="width: 92pt;" width="123"></col>
<col style="width: 153pt;" width="204"></col>
<col style="width: 60pt;" width="80"></col>
<col style="width: 137pt;" width="182"></col>
<col style="width: 60pt;" span="4" width="80"></col>
<tbody>
<tr style="height: 12.75pt;" height="17">
<td class="xl24" style="height: 12.75pt; width: 119pt;" width="158" height="17">colA
</td>
<td class="xl24" style="width: 92pt;" width="123">ColB</td>
<td class="xl26" style="width: 350pt;" colspan="3" width="466">Buscar
dato ColB en colA, si existe en colA escriba datoColA</td>
<td style="width: 60pt;" width="80"></td>
<td style="width: 60pt;" width="80"></td>
<td style="width: 60pt;" width="80"></td>
<td style="width: 60pt;" width="80"></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 10calle 10</td>
<td>dirección 11calle 11</td>
<td class="xl24">dirección
11calle 11</td>
<td><- fórmula-></td>
<td class="xl25" colspan="5">SI(ESERROR(BUSCARV(B2,$A$2:$A$29,1,0)),"no
se encuentra",BUSCARV(B2,$A$2:$A$29,1,0))</td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 11calle 11</td>
<td>dirección 12calle 12</td>
<td class="xl24">dirección
12calle 12</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 12calle 12</td>
<td>dirección 13calle 13</td>
<td class="xl24">dirección
13calle 13</td>
<td class="xl27" colspan="2">Ordenar la colA: Datos /
ordenar /ColA</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 13calle 13</td>
<td>dirección 14calle 14</td>
<td class="xl24">dirección
14calle 14</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 14calle 14</td>
<td>dirección 15calle 15</td>
<td class="xl24">dirección
15calle 15</td>
<td colspan="5">en la columna C tenemos el campo de
colA donde igual al del campo de colB</td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 15calle 15</td>
<td>dirección 16calle 16</td>
<td class="xl24">dirección
16calle 16</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 16calle 16</td>
<td>dirección 17calle 17</td>
<td class="xl24">dirección
17calle 17</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 17calle 17</td>
<td>dirección 18calle 18</td>
<td class="xl24">dirección
18calle 18</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 18calle 18</td>
<td>dirección 19calle 19</td>
<td class="xl24">dirección
19calle 19</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 19calle 19</td>
<td>dirección 20calle 20</td>
<td class="xl24">dirección
20calle 20</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 1calle 1</td>
<td>dirección 2calle 2</td>
<td class="xl24">dirección
2calle 2</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 20calle 20</td>
<td>dirección 21calle 21</td>
<td class="xl24">dirección
21calle 21</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 21calle 21</td>
<td>dirección 22calle 22</td>
<td class="xl24">dirección
22calle 22</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 22calle 22</td>
<td>dirección 23calle 23</td>
<td class="xl24">dirección
23calle 23</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 23calle 23</td>
<td>dirección 24calle 24</td>
<td class="xl24">dirección
24calle 24</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 24calle 24</td>
<td>dirección 25calle 25</td>
<td class="xl24">dirección
25calle 25</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 25calle 25</td>
<td>dirección 26calle 26</td>
<td class="xl24">dirección
26calle 26</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 26calle 26</td>
<td>dirección 27calle 27</td>
<td class="xl24">dirección
27calle 27</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 27calle 27</td>
<td>dirección 28calle 28</td>
<td class="xl24">dirección
28calle 28</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 28calle 28</td>
<td>dirección 29calle 29</td>
<td class="xl24">no
se encuentra</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 2calle 2</td>
<td>dirección 3calle 3</td>
<td class="xl24">dirección
3calle 3</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 3calle 3</td>
<td>dirección 4calle 4</td>
<td class="xl24">dirección
4calle 4</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 4calle 4</td>
<td>dirección 5calle 5</td>
<td class="xl24">dirección
5calle 5</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 5calle 5</td>
<td>dirección 6calle 6</td>
<td class="xl24">dirección
6calle 6</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 6calle 6</td>
<td>dirección 7calle 7</td>
<td class="xl24">dirección
7calle 7</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 7calle 7</td>
<td>dirección 8calle 8</td>
<td class="xl24">dirección
8calle 8</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 8calle 8</td>
<td>dirección 9calle 9</td>
<td class="xl24">dirección
9calle 9</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td style="height: 12.75pt;" height="17">dirección 9calle 9</td>
<td>dirección 10calle 10</td>
<td class="xl24">dirección
10calle 10</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas