+ Reply to Thread
Results 1 to 3 of 3

Create drop down list, find, copy and add cumlative total

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Create drop down list, find, copy and add cumlative total

    I can't seem to get any vba coding correct to do what I want to do, so any help would be appreciated.

    After I paste new data in Sheet1, I am trying to create a drop down list of 'Site Name' in cell E5.
    Then once I select a site it searchs sheet1 for an exact match copies and adds the cumulative total for the year across the sheet.
    This is also done for the Org, Sub Division and Division.
    Attached Files Attached Files
    Last edited by Matso; 10-19-2010 at 09:41 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Create drop down list, find, copy and add cumlative total

    1) Click on INSERT > NAME > DEFINE
    2) Names in workbook = Site_Name
    3) Refers to: = =OFFSET(Sheet1!$D$6,0,0,COUNTIF(Sheet1!$D:$D,">a"),1)

    4) On Sheet Master cell E5 use the data validation settings:
    Allow: List
    Source: =Site_Name
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-29-2008
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Create drop down list, find, copy and add cumlative total

    Thanks Jerry.
    It makes it easier for me to adjust the list of site names accordingly as it does vary with additional sites.

    However is there a macro that could do the cumulative counting once the site is selected?

    The reason is that there is less likeliness of tampering with the code as there are some staff able to unlock the worksheet even if I password protect it.

+ 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