+ Reply to Thread
Results 1 to 3 of 3

Indexing issue on a dropdown list selection need urgent help.

  1. #1
    Registered User
    Join Date
    10-06-2020
    Location
    IndiA
    MS-Off Ver
    MS office 2007
    Posts
    2

    Post Indexing issue on a dropdown list selection need urgent help.

    Capture123.JPG

    I have a dropdown option in column 1 with manual list as [N,S, J] and based on its selection I want in corresponding cell in column 2 as follows:
    If "N" is selected
    Then in corresponding cell in column 2 = "NK001"
    If "S" is selected
    Then in corresponding cell in column 2 = "SU001"
    If "J" is selected
    Then in corresponding cell in column 2 = "JP001"

    And if again "N" is selected in next row in column 1, then corresponding cell value in column 2 should be "NK002"
    If again "N" is selected in next row in column 1, then corresponding cell value in column 2 should be "NK003"
    If again "N" is selected in next row in column 1, then corresponding cell value in column 2 should be "NK004"
    If after above selection we select "S" in next row in column 1, then corresponding cell value in column 2 should be "SU002" (because last value for "S" was "SU001")

    So, unique index should go for each selection in dropdown list.

    Something like below:

    Column1(Dropdown List) Column2
    N NK001
    S SU001
    N NK002
    J JK001
    J JK002
    J JK003
    S SU002

    ----------------------------------------------------------
    I am new to VBA programming. Can someone help me here with some code.

  2. #2
    Registered User
    Join Date
    10-06-2020
    Location
    IndiA
    MS-Off Ver
    MS office 2007
    Posts
    2

    Re: Indexing issue on a dropdown list selection need urgent help.

    I am attaching an excel sheet with these values but no macro is set. This is done manually but I want to automate this.
    Attached Files Attached Files

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Indexing issue on a dropdown list selection need urgent help.

    Do you particularly need code? You could achieve that with formulas.
    Rory

+ 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. Multiple Dropdown selection & Column Groupings based on dropdown selection
    By rabrol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 10:23 AM
  2. Replies: 4
    Last Post: 07-06-2017, 10:19 AM
  3. Creating a dynamic dropdown list of a selection of a master list
    By RooMar in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 05-15-2015, 05:27 AM
  4. Limit dropdown list based on selection from another list
    By msmetal in forum Access Tables & Databases
    Replies: 5
    Last Post: 01-23-2015, 11:22 PM
  5. Make same selection for multiple drop down list and clear all for all dropdown list
    By salomip13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 01:34 PM
  6. Urgent: Create a Dynamic Dropdown list based on a specific criteria
    By vijaye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 08:07 AM
  7. Cull dropdown list options based on selection in another dropdown
    By Kiffar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 01:53 AM

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