BUSCARV a partir de datos de esquema - Consejos de Excel

Tabla de contenido

Alguien que tomó una prueba de certificación de Excel se perdió una pregunta Estaban tratando de pensar demasiado en la cuestión. No requiere una fórmula de matriz loca. Un simple IFNA lo resolverá. Si bien hay muchas formas de resolver todo en Excel, a veces se pasan por alto las formas más simples.

Ver video

Transcripción generada automáticamente

  • bienvenido, es hora de otro
  • duelo de excel podcast Soy Bill Jelen
  • de me acompañará Mike
  • Gerber de Excel es uno de nuestros
  • episodio 189 vlookup a partir de datos de esquema
  • oye, estoy redactando partes de esta pregunta
  • pero es una gran pregunta
  • lamentablemente mis amigos tomaron que yo
  • no puedo volver a tomar qué examen y todavía tenía
  • un problema con esta pregunta tenemos
  • creó una hoja de cálculo para reflejar el
  • pregunta, no tenemos ni idea de esto
  • fórmula la respuesta debe ser el nombre de
  • el país no es verdadero o falso más
  • sinceramente y que redacté su nombre
  • pero hay cinco de ellos que están intentando
  • para resolver esto bien, así que aquí está el
  • pregunta cómo crear una columna 1 cómo
  • crear un vlookup cuando la columna a tiene
  • espacios en blanco con los que quiero llenar la columna B
  • el país y aquí está nuestra tabla de búsqueda
  • de código a país así
  • por ejemplo, a2 será Afganistán y
  • que se repetirá hasta el 10
  • y luego llegaremos a una nueva hacha será
  • OL Anandi Island 11 a 18 ejemplo de
  • los resultados esperados están aquí bien
  • oh hey siento tu dolor pero tu eres
  • Pensando demasiado en esto, cualquier cosa que esté encendida
  • que no puede decirte el nombre del examen
  • no va a ser tan duro como tu
  • están haciendo que esto sea así, tiene que ser
  • super simple igual vlookup ve a hacer si tu
  • buscar buscar una F en esta tabla de búsqueda
  • aquí F 4 coma 2 coma falsa así
  • perfecto correcto y eso funciona para esto
  • fila y para la fila 11 pero no va a
  • trabaja para las otras filas bien, así que solo
  • en inglés simple realmente simple oye Excel
  • si obtienes un n / a solo toma el anterior
  • valor de esta columna lo que sea que
  • encontrado encima de mí, trae eso aquí abajo
  • volvemos aquí igual si no eso
  • lo que están probando si na es nuevo
  • en Excel 2013
  • los chicos que escribieron la prueba quieren
  • asegúrate de saber si no lo sé en
  • al final de eso si obtenemos un n / a que
  • lo que quiero es el valor de arriba
  • yo así que en este caso la celda b1 me gusta
  • eso y no lo copiaremos a todos
  • de nuestras filas y pegar bien para que el
  • primero el vlookup funciona el segundo
  • uno, el vlookup no funciona, así que si no
  • agarra Afganistán por encima de mí y
  • va todo el camino hacia abajo agarrando el valor
  • desde arriba de mí hasta que consigue el
  • que funciona y luego cambia y
  • interruptores e interruptores e interruptores
  • nada difícil aquí estabas intentando
  • hazlo demasiado difícil esta prueba que no puedo
  • decirte que el nombre de la prueba nunca es
  • va a ser tan difícil
  • busque la solución fácil Mike vamos
  • mira lo que tienes
  • gracias si de hecho si un ay
  • vlookup son el camino a seguir Excel 2013 o
  • luego supongo que eso es lo que el examen
  • la gente está buscando ahora me voy a ir
  • pasar a la siguiente hoja y hacer algo
  • totalmente ridícula esta fórmula probablemente
  • ni siquiera podrá ser entendido por
  • las personas que califican tu examen ahora que
  • Me gustaría hacer en esta columna mientras copio
  • la fórmula es usar un regular
  • vlookup pero quiero internamente dentro del
  • fórmula Quiero que la fórmula siempre obtenga
  • el último elemento de texto mientras copio la fórmula
  • abajo, así que cuando llegue a esta celda y esta
  • celda en esta celda hay el último texto
  • valor, pero cuando llegue aquí debe
  • tener eso como el aspecto de eso y luego
  • boom boom boom el valor de búsqueda todavía
  • necesita mirar hacia atrás a ese hacha y el
  • la forma en que voy a hacer eso es usar el
  • función de búsqueda original esta es la
  • función original que Bricklin y
  • Frank stand puesto en la primera versión
  • de visie calc mucho antes de vlookup y H
  • lookup and the lookup function only does
  • approximate match lookup it doesn't do
  • exact or approximate like vlookup the
  • advantage to approximate match lookup is
  • in the lookup value if you put a value
  • that's bigger than anything in the
  • actual array or result vector it'll
  • always get the last one so watch this
  • for the lookup value I'm going to end
  • double quotes and so I'm looking up text
  • I'm zze now I'm using zze because I know
  • none of the ISO
  • country codes will ever start with Z Z Z
  • so this is going to be bigger than
  • anything ever entered into this column
  • now comma and I'm using the array
  • version I'm gonna click on cell a2 colon
  • close parentheses click on the first a
  • to hit the f4 key to lock it just the
  • first cell reference now as I copy this
  • down that blue range will expand since
  • all of these cells are empty Z Z Z will
  • always return a F because that's the
  • last text item in the column control
  • enter notice that's a lookup value as I
  • copy down now inside of our formula we
  • actually have the correct lookup value
  • all the way down if we come down to some
  • cell and hit f2 you can see there's the
  • expandable range and sure enough lookup
  • is getting the last text item entered
  • now I'm going to come to the top f2 that
  • whole thing is the lookup value that I'm
  • going to use inside a vlookup now I come
  • to the end comma table array I come over
  • to a lookup table highlight the table
  • I've up here in the formula bar and hit
  • f4 comma 2 because the second column has
  • the thing I need to get come 0 that
  • means exact match close parentheses
  • control enter and I'm gonna copy it all
  • the way down and look at that now f2
  • that's much too complicated that's a
  • crazy formula when all you need is if
  • and a and vlookup however there is a
  • situation I'm gonna go over to XLS one
  • two here there is a situation where this
  • will get you into trouble and if I copy
  • this down notice it's all Afghanistan
  • and look at that what is going on there
  • well we actually if we put this in edit
  • mode there's an extra space there so
  • there's some situations where we
  • actually want to see the n/a air so if
  • that was possibly the case then we'd
  • need to use a slightly different f2
  • logical test now I'm going to click on
  • value and copy that because that's the
  • vlookup we're still gonna use that ctrl
  • C escape and I'm going to use a
  • different logical test this is how we
  • had to do it before Excel 2013 is blank
  • now is blank only will deliver a true
  • when it sees a cell is totally empty
  • close parentheses if it is blank like it
  • is down here comma then what do I want
  • to look one cell above comma otherwise
  • control V do the vlookup close
  • parentheses control enter
  • double click and send it down so in that
  • case we are prompted we know that
  • there's a problem here now I can come
  • here backspace enter and now everything
  • works and I'm gonna copy it down control
  • home that formula is a little bit longer
  • than just if an a we had to use three
  • functions but in some circumstances you
  • might want to take the extra time to
  • create this longer formula then if n/a
  • and vlookup I'm sure on the test that
  • either one of those will work but this
  • is the one you probably don't wanna use
  • all right I'm gonna throw it back to mr.
  • Excel well I ate Mike those were a
  • couple of cool formulas but again I
  • think the test was looking for the easy
  • way the if na and like you said if you
  • en realidad pondrían esa fórmula que no
  • tengo una pista de que eso en realidad
  • trabajo quiero agradecer a todos por parar
  • por dejar de ser viable nos vemos la próxima
  • para otro podcast de Excel de duelo de
  • MrExcel Excel es divertido

Descargar archivo

Descarga el archivo de muestra aquí: Duel189.xlsx

Articulos interesantes...