+ Reply to Thread
Results 1 to 2 of 2

using a partial cell match

  1. #1
    Registered User
    Join Date
    09-03-2006
    Posts
    14

    Exclamation using a partial cell match

    Hi All,

    Wondering if there is a way that i can run a match - or almost like a Vlookup, i have the columns as below

    Worksheet1:
    A B C
    Client Code Client Description Project Number
    GEN General 0000

    Worksheet2:
    A B C
    Client Task Number Task Description
    0000-01-001 General Things

    and i want to be able to search the worksheet2 column b to return the client code beside the tasks where the first four digits of the task numbers are the project number? So i want to match the first four digits of a task number and print the corresponding client code to the task. (Don't know if that makes much sense). If not let me know.

    Cheers, Thank you!!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082
    Try this

    On Worksheet 1 insert a column before column A and enter the formula
    =TEXT(D1,"0") and copy it all the way down

    Then in worksheet 2 enter at cell D2 enter

    =VLOOKUP(LEFT(Worksheet2!A2,4)Worksheet1!A2:C65535,2)

    That should work, if it does you might want to copy the formula all the way down the D column on Worksheet 2
    Last edited by Special-K; 09-04-2006 at 01:28 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ Reply to Thread

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.6.0 RC 1