+ Reply to Thread
Results 1 to 4 of 4

Find word and assign it to another table

  1. #1
    Registered User
    Join Date
    05-19-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    18

    Find word and assign it to another table

    Hi guys,

    the following:

    I have one workbook with 3 Sheets (Table1/Table2/Table3). In Table 3 are the following columns "Table1" and "Table2". I need one script which search in table1 and table2 the words from test1 to test15 and write the assign numbers in table 3 in the right columns / row! If one value is not found, this value should have the number 0 in table 3.

    I have the following examples attached, file Mappe1_Test1.xlsx is the before status and Mappe1_Test.xlsx should be the after status.

    Can you help me out?

    thx
    Attached Files Attached Files
    Last edited by lucascaletta; 08-01-2014 at 12:32 PM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Find word and assign it to another table

    Hi lucascaletta,

    why not use formulas for this (see attached). For instance the following in E4 (Tabelle3):
    Please Login or Register  to view this content.
    Cheers, berlan
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-19-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Find word and assign it to another table

    Great, an quick solution I will test this in my sheet now. Is it possible to show the "0" for value which are not assigned (values which are not found in table1/2)?

    And can I use this solution, if Table1/2 are not sorted. In my example u will see Test1 - Test15, what about the following construction:

    Test4
    Test2
    Test8
    Test7
    Test3
    Test1
    etc.

    And if (maybe) Test3/Test5 are not shown? Because I would create one chart of table3 and the x-axis should show test1-test15 and and now every number should assign to the right x-axis value, u know?
    Last edited by lucascaletta; 08-01-2014 at 09:15 AM.

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Find word and assign it to another table

    See new attached file, empty lookup values will show a 0 if they don't exist.

    On thing though, in the summary column B in sheet "Tabelle3", the function I put in will first use vlookup to match the value in sheet "Tabelle1" and if not found there check in sheet "Tabelle2", and if not found there either it will return the value 0.

    This means you need to have the same values assigned to the lookup values if they exist in multiple sheets. For example, as for the "Test1" value which is present in both lookup sheets, I assume they will have the same values in column next to it.

    When using the vlookup function, there is no need to have the lookup range sorted if the values are unique.

    Assuming I understood you correctly, I hope that made things a bit clearer.

    /berlan
    Attached Files Attached Files

+ 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. [SOLVED] Assign word a value
    By liliherrera in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2013, 12:49 AM
  2. How to assign a value to a word /text in excel?
    By liliherrera in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2013, 12:29 AM
  3. [SOLVED] Formula to assign a word to each number?
    By kwall2011 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-08-2012, 07:43 AM
  4. Assign a number to a word
    By jaywizz in forum Excel General
    Replies: 3
    Last Post: 10-14-2010, 01:10 PM
  5. Assign a variable to a word document
    By Anson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2005, 05:06 PM

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