Auto Expanding VLOOKUP Table Array

Ok, this time I want to talk about how to create a vlookup table array that automatically expanding in accordance with the numbers of available data.

As we know, the basic form of Excel VLOOKUP to look for A1 value in range B1:C15 column no 2 is like this:

=VLOOKUP(A1,B1:C15,2)

With parameters such as the value we looking for, range of table array where we would like to find the value that we want, and how far the column of values that we want from the left most column of the table array range.

Unfortunately, this form is rigid, the table array range is fixed to row 1 until row number 15. So this form is not suitable for doing VLOOKUP on the database which always dynamic, increase or decrease from time to time.

Using the above VLOOKUP form, every time there is an addition of new data, we need to change the VLOOKUP formula to match the numbers of expanding data.

We need to change the format of the VLOOKUP formula to be more flexible and save the time we need to manually adjust the formula by hand.

The following changes is the form that we need:

=VLOOKUP($A1,OFFSET($B$1,0,0,COUNTA($B:$B),3),2)

Here we got help from OFFSET Excel function to return the reference of VLOOKUP table array range that we need plus the COUNTA function to calculate the maximum number of rows on the database.

This way, every time there are any reduction or addition of new data on the VLOOKUP table array, COUNTA will return the number of rows needed, and OFFSET will provide the referense of the new table array, so we do not need to make changes the formula manually :)

auto expanding vlookup

Formula at A2 returning a wrong vlookup value when we use the first vlookup =VLOOKUP(A1,B1:C15,2) formula. This is because the value that we are looking for already outside vlookup table array. Formula at A3 returning the correct value when we use the auto expanding version of the lookup.

Read this great article of Dynamic Ranges for more information about dynamic ranges in Excel.

I am confess, I can not write well, let alone give an easy to read and easy to understand explaination :P

This entry was posted in Excel Formula and tagged , , , , , , , , , , . Bookmark the permalink.

650 Responses to Auto Expanding VLOOKUP Table Array

  1. Pingback: zdrowe jedzenie

  2. Pingback: budzet domowy

  3. Pingback: Loeffler Randall

  4. Pingback: mexican food at home

  5. Pingback: kazimierz porebski

  6. Pingback: fundacja diadem

  7. Pingback: online studio

  8. Pingback: vizyergroup

  9. Pingback: pomoz kacperkowi

  10. Pingback: forvip

  11. Pingback: how to tie a tie step by step

  12. Pingback: wilczarze irlandzkie

  13. Pingback: maryland internet

  14. Pingback: Creation Site Internet Annecy

  15. Pingback: byc facetem

  16. Pingback: fernando alonso

  17. Pingback: click here

  18. Pingback: Juegos de furbol

  19. Pingback: lose weight

  20. Pingback: film12

  21. Pingback: advexpert

  22. Pingback: Digital Cameras

  23. Pingback: tydzien z ukraina

  24. Pingback: samurai sam

  25. Pingback: tacos mexican food

  26. Pingback: sub zero freezer repair help

  27. Pingback: payday cash loans

  28. Pingback: make money online surveys

  29. Pingback: ulta printable coupons

  30. Pingback: credit repair reviews

  31. Pingback: top social marketing companies

  32. Pingback: via

  33. Pingback: check this out

  34. Pingback: find out more

  35. Pingback: sklep ogrzewanie

  36. Pingback: jocuripentrucopii

  37. Pingback: plac niepodleglosci

  38. Pingback: radio echo

  39. Pingback: kwik98

  40. Pingback: vw polofans

  41. Pingback: wyprzedz raka

  42. Pingback: matma matura

  43. Pingback: radio hit

  44. Pingback: tdbudowlane

  45. Pingback: rodzinnewn?trza

  46. Pingback: ?atwe media

  47. Pingback: pi?kno w domu

  48. Pingback: norcross tree service

  49. Pingback: internet motivational coaches

  50. Pingback: intangible

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>