+ Reply to Thread
Results 1 to 5 of 5

how to make a list to avoid repetitive texts

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    258

    how to make a list to avoid repetitive texts

    Before anything else, I want to say that I am beginner level in VBA so I hope somebody could help me figuring out the best solution on this.

    Background:
    This will be a database of problems occurring in the company i am working with and we want to have a database to find the contact person easier depending on the problem (see column D and E)

    My Problem:
    Data are the same in every group (countries in every region), I want it to be user friendly and not make the database very long because if I will continue copy - paste the same texts, I would probably be using 5000 rows
    Attached Files Attached Files

  2. #2
    Forum Contributor Mayda89's Avatar
    Join Date
    09-13-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: how to make a list to avoid repetitive texts

    Hi Elainefish,

    Could you be more specific about on what you need help?

    Cheers

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    258

    Re: how to make a list to avoid repetitive texts

    The attachment I did will be the source of data. What I want to do is to make it simpler so it will be user friendly because as you can see the all the texts I am using are just the same. I tried to make it as a drop down list but the problem is the result... The result should be like using "automatic filter" when you choose a text in column A, all the texts that corresponds the column A will show up in the remaining column, same as if I choose a text in the drop down in column B and so on... column C, D, E... until I get the answer in column F (contact person). The problem with the auto filter is that I have to use the same texts all the time in every row (see column E).. that is what I am trying to figure iut... simplifying the column E so it will not be a long list since my list of data are up to 1000+.

  4. #4
    Forum Contributor Mayda89's Avatar
    Join Date
    09-13-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: how to make a list to avoid repetitive texts

    Hi there,
    I've come up with the attached workbook; let me introduce my work.
    As you asked, I have eliminated the auto filter.

    In this workbook, you'll see 3 sheets.
    -On the Sheet named 'Ask', the user should input the required fields (problem1, problem2, problem3, region, and country)
    -I have used Data Validation to limit the values that can be entered to these cells. The lists of data validation can be found on the sheet named "Validation". Note that on the country part, I have put a conditional validation; for instance, if you choose Europe from as a region, than only european countries can be chosen..
    (You can adjust those validation ranges as you like)
    -The heart of all the work lies at the sheet named "Database". Notice that on this sheet, I have unmerged all cells; this is required to make the lookup function work. Next, on this sheet, you'll see a new column I added, with the header "Concatenate" (colored yellow).

    So as you'll see in the formulas of the 'Ask' Sheet, the vlookup looks up the concatenated values from this range, and it gives you the contact person. Note that I've also added multiple if criteria, such that the lookup function will lookup the values only when all the required fields are entered. I've introduced this to eliminate unnecessary fields.

    To make it user friendly, I suggest you to hide the 'Database' and 'Validation' sheets. Introducing workbook protection will also prevent users from accidentally deleting these important sheets. You can also hide the concatenate column on the ask sheet.


    I hope this solves your problem

    Cheers,
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    258

    Re: how to make a list to avoid repetitive texts

    You have been a great help... this is exactly what I need
    But... I need more help from you

    I am trying to follow the procedures you made but I am having problems about it
    what i want to do is when I choose a text from the drop down menu in column A, there is only specific texts that will appear in Column B

    For ex:
    If I choose "Material/tools/equipments", the column B will show the list "Heavy Equipment (crane, semitruck)", "Parts/consumables", "See detailed description", "Tools"
    If I choose "Process", the column B wil show "execution", "oil sample"
    If I choose "Documentation", the column B wil show "Component documentation", "eQMS documents"...........and so on
    (same thing you did in "Europe";RangeEuropean....


    Note: I already defined the name of the list (see source validation sheet)

    This is what I did: I went to data validation -> List -> and in source:
    =IF(A5="Material/tools/equipments";Range2;IF(A5=" Process";Range3;IF(A5=" Documentation";Range4;IF(A5=" Offshore infrastructure";Range5;IF(A5=" Personal";Range6;
    IF(A5=" Site infrastructure";Range7))))))
    ----- but seems there is something wrong with the formula


    I attached the worksheet i am working on

    range question.xlsx
    Last edited by Elainefish; 04-03-2013 at 01:51 PM.

  6. #6
    Forum Contributor Mayda89's Avatar
    Join Date
    09-13-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: how to make a list to avoid repetitive texts

    You said you have tried to implement validation with this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and that there is a problem with it.

    When I tried to input this formula to the validation source, I also encountered a problem; with "materials.." there was no problem but with all other ones selected, the validation drop-down list didn't show anything.
    I think this is the only problem with this formula.

    It is caused by the blanks at the beginning of each criteria word. For example, instead of writing this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    you wrote this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    After deleting these blanks from the formulas, the problem was gone. In the uploaded workbook you can see it working.

    Cheers,
    Attached Files Attached Files
    If I have helped, Don't forget to add to my reputation (click on the star icon below the post).
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved).
    Use code tags when posting your code.

  7. #7
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    258

    Re: how to make a list to avoid repetitive texts

    Do you have idea how to make the third column? The third column is dependent on list from column A and B

+ 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