+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    47

    Vlookup/Index/Match help?

    I need to find a simple formula that will find the status/locations listed in column C and copy them to the following rows in column A, but only if they have a valid ID and DCN listed. Someone previously helped me with a very nice formula that used a vlookup/Index/Match criteria but the problem is there were simply too many calculations, my excel file has 60000+ lines and when I try to use the formula it completely locks up.

    I need something that will just copy the Status location down and will change when a new status location is listed.

    Thank you in advance for any help you can provide.
    Attached Files Attached Files
    Last edited by NBVC; 03-16-2010 at 02:01 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Vlookup/Index/Match help?

    What is a valid DSN number?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    02-18-2010
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Vlookup/Index/Match help?

    Basically any row that has a alpha/numeric value in both fields B and C.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Vlookup/Index/Match help?

    The best way to work with large amount of data and this kind of database is usually to use helper columns... These evaluate each row individually and do not create arrays of large values to manipulate.

    In this case I added 2 helper columns.

    I inserted 2 columns before column A

    In A2, enter:
    Code:
    =IF(D2="Status/Location:",E2,A1)
    and copy down.

    This will extract the relevant Status/Location for each row...

    In B2, enter:
    Code:
    =AND(LOOKUP(9.999999999E+307,--("0"&MID(D2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},D2&"0 123456789")),ROW($1:$30))))<>0,LOOKUP(9.999999999E+307,--("0"&MID(E2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},E2&"0 123456789")),ROW($1:$30))))<>0)
    and copy down.

    This looks for at least 1 digit in both columns B and C and returns TRUE if yes (that is my assumption).

    In C2, Enter:
    Code:
    =IF(B2,A2,"")
    This extracts the proper Status/Location if the result of column B is True
    Th
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    02-18-2010
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Vlookup/Index/Match help?

    Worked great, thanks!

Thread Information

Users Browsing this Thread

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

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.2.0