+ Reply to Thread
Results 1 to 4 of 4

Populating cells based on another cell value

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    97

    Populating cells based on another cell value

    Hi

    I am working on an application capturing pricing schemes. The application works as follows

    Cell G4 captures the customer ID

    columns B, C, D, E and F (rows 7 to 21) contain drop down lists for various options.
    Using the selections in these columns, the exact part number that meets the selection is identified in column N.
    columns G to M are for capturing the pricing structure.

    What I am trying to do is as follows

    Once the part number is identified, if there is an existing pricing structure for the Customer ID and Part No combination in the master (stored in worksheet titled "CUST"), it should get populated in columns G to M. I cannot use formulas in columns G to M as the user has the option to make changes in the structure and can overwrite the value displayed in these columns. I have been trying to populate the pricing structure using VBA. My code is as follows:

    Please Login or Register  to view this content.
    The code should be triggered when column F gets filled with the selection and will look for a match for the customer ID (cell G4) and item code (column N). If a match is found, the pricing structure in the master should be populated into columns G to M. BTW, I am using a formula in column N to identify the item code that matches the selections in columns B to F.

    I have been unsuccessful in getting this to work as desired. I have searched this and other forums for information that would help debug this code. But I have not found anything that is of use here.

    Would some one be able to assist in getting this to work. Would really appreciate any help.

    Regards,

    Anand

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Populating cells based on another cell value

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    97

    Re: Populating cells based on another cell value

    JapanDave

    Thanks for your interest.

    I have attached a sample workbook.

    I hope it provides more clarity on what I require.

    Regards,

    Anand
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-15-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    97

    Re: Populating cells based on another cell value

    BUMP. Would appreciate it if some one can help out on this issue

+ 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