+ Reply to Thread
Results 1 to 6 of 6

Vlookup with unknow row range

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Vlookup with unknow row range

    I am looking to do a VLOOKUP with a dynamic cell range since data will be dumped into a table as things change.

    Here is my VLOOKUP: =VLOOKUP(D8,TSC_SW_Totals_data!A2:B5243,2)

    The 'B5243' is where I'd like to make this the result of a COUNTA like so: =COUNTA(Table1[[#All],[Mfr ID]])

    I was thinking of embedding the COUNTA into the VLOOKUP but I'm not having much luck. How can I get the number of rows from the data on the fly as the data changes.

    Thanks.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Vlookup with unknow row range

    =VLOOKUP(D8,INDIRECT("A2:B"&COUNTA($B:$B)),2,0)

    I personally don't like using Table names in my formulas. This is assuming your table is in column A and B.

    A few things i noticed. You could always just do =VLOOKUP(D8,TSC_SW_Totals_data!$A:$B,2) This way you dont need the added formula and it will grab data no matter how many rows there are.

  3. #3
    Registered User
    Join Date
    01-04-2019
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Vlookup with unknow row range

    Quote Originally Posted by dosydos View Post
    =VLOOKUP(D8,INDIRECT("A2:B"&COUNTA($B:$B)),2,0)

    I personally don't like using Table names in my formulas. This is assuming your table is in column A and B.

    A few things i noticed. You could always just do =VLOOKUP(D8,TSC_SW_Totals_data!$A:$B,2) This way you dont need the added formula and it will grab data no matter how many rows there are.
    The issue I have is that the data table is in the TSC_SW_Totals_data worksheet not in the same worksheet that is performing the lookup.

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Vlookup with unknow row range

    =VLOOKUP(D8,INDIRECT("TSC_SW_TOTALS_data!A2:B"&COUNTA(TSC_SW_TOTALS_data!$B:$B)),2,0)

  5. #5
    Registered User
    Join Date
    01-04-2019
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Vlookup with unknow row range

    Boom, that worked. Thanks so much.

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Vlookup with unknow row range

    thanks for rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. getting the sum in an unknow lenght and placing in another cell
    By barrowinfurnace in forum Excel General
    Replies: 4
    Last Post: 04-21-2016, 02:59 PM
  2. unknow problem in my FOR NEXT loop
    By assafa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2015, 06:23 PM
  3. Unknow function
    By Keldion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2015, 03:09 PM
  4. Unknow Chart
    By Zimri in forum Excel General
    Replies: 3
    Last Post: 07-12-2012, 03:47 AM
  5. unknow line in msgbox
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2009, 06:44 PM
  6. Unknow IF condition
    By chlado in forum Excel General
    Replies: 2
    Last Post: 09-01-2006, 10:41 AM
  7. A unknow find error...
    By thedryden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2006, 06:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1