+ Reply to Thread
Results 1 to 6 of 6

Populate Cell of A sheet using the value of a drop list of another sheet

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    Gr
    MS-Off Ver
    2010
    Posts
    3

    Populate Cell of A sheet using the value of a drop list of another sheet

    Hi, i will try to explain as clear as i can

    Example, i have 2 sheets called [SheetCompanyA, SheetCompanyB] and a 3rd sheet called [SheetSelection]

    on the 2 first sheets i have 2 records,

    A1=1 A2=2,
    B1=ClientA, B2=ClientB,
    C1=1000, C2=2000
    D1= null, D2= null

    (lets say both sheets have the same values in the same cells)

    and on the third i have 2 records
    A1=1, A2=2,
    B1=ClientA, B2=ClientB,
    C1=2000, C2=3000
    D = Is a Drop List containing the names CompanyA, CompanyB

    Now what i need to do is,

    when i select a value on the drop list depending on what it is (CompanyA or CompanyB)
    it then would see that the corresponding cell on A:x value is and populate the corresponding cell on the corresponding sheet.

    A bit of pseudo code just to understand it better, an example of what i want to do if i selected a value from the drop list
    on the first line of the SheetSelection Sheet.

    IF in [SheetSelection:D1] = CompanyA then populate with value of [SheetSelection:C1] on to [SheetCompanyA:D1]

    in this example, its the first row and takes the value to the fist row of the other sheet
    but that wont be always the case, that's why i need it to compare the "ID" of the client
    which is on column A so it knows where to place the value.

    so if i was to fill the droplist with the value CompanyA on the 2nd row it would check the [SheetSelection:A2] value and place the
    [SheetSelection:C2] value in the [SheetCompanyA:D2] because of the [SheetSelection:A2] = [SheetCompanyA:A2] rule.

    God i hope this is understandable

    I thank you for your time in advance.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    Pls attach sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    09-19-2014
    Location
    Gr
    MS-Off Ver
    2010
    Posts
    3

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    ok here is what i made but it doesn't do anything TEST.xlsx

  4. #4
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    I am not sure if I uderstand your requirements, but I tried to create a simple table.

    I used the formula if, and then use filter and then show only the the data you need.

    Please look at this and tell me if you can use this.

    Thanks.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    Or you can use macro...

    Insert data, click on Update buton and see the result.

    I will be available again on Monday.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-19-2014
    Location
    Gr
    MS-Off Ver
    2010
    Posts
    3

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    Good morning,

    thank you so much for your time and quick response, the second method is the one i am going to use.

    i will implement it to the main xls and see how it goes.

    I will give you an update.

    Thank you again.

  7. #7
    Registered User
    Join Date
    09-08-2014
    Location
    Czech republic
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Populate Cell of A sheet using the value of a drop list of another sheet

    Hi, no problem..just try and let me know if it works.

+ 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. How to design sheet Advanced Filter using drop down list from another sheet ?
    By ahmeddfouad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2014, 03:52 PM
  2. [SOLVED] Use a drop-down box on one sheet to populate a check box on another sheet.
    By chris1965 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2013, 03:48 PM
  3. Replies: 12
    Last Post: 09-26-2012, 03:32 PM
  4. populate sheet 2 using sheet 1 with a drop down
    By IslandBoy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2007, 11:51 AM
  5. Populate a list from one cell on one sheet...
    By Jay3253 in forum Excel General
    Replies: 8
    Last Post: 09-09-2005, 04:17 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