+ Reply to Thread
Results 1 to 2 of 2

Creating a list of items given a certain condition

  1. #1
    Registered User
    Join Date
    10-13-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    28

    Creating a list of items given a certain condition

    Hello,

    I am creating a macros tool that allows users to input new gas wells and their UTM coordinates to see if they require permitting according to a certain law. I am calculating a matrix table that calculate the distance between each well (the wells are listed both horizontally and vertically so that there is a diagonal string of cells containing zero from the top left to bottom right) at the end of the table the I am counting the number of wells w/in a 1/4 mile of each individual well. If there are more than, say 5 for example, within this 1/4 mile, then the well site is 'flagged' for permitting. The final column is 'Permit Triggered?' and goes down the vertical well list listing either 'true' or 'false' for each well.

    On the user form I created, I have an option of checking the current wells that require permitting so I want to compile a list of all wells for the user that have 'true' in the last column. I want this list to appear on the user form for the user to see easily and also have the option of printing the list. Do you guys have any ideas that you could explain for me in terms of how I could accomplish this? I am extremely new to VBA so an explaination would be very very helpful. The whole idea of the macros is to make it super easy for the user to add a well and see all the current wells that require permits (have a value of 'true' in the last column) so the worksheet will mostly be running in the background so the user cannot see it. The last column will not stay in the same column, either, as new wells are added/removed the column will change. Thanks for any ideas folks!!!

    Happy Friday,
    A

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,760

    Re: Creating a list of items given a certain condition

    I am extremely new to VBA so an explaination would be very very helpful
    That evens out I would say as most of the forum members are also new to gas well and UTM coordinates.

    So the best way to get help is for you to upload a small workbook with a “raw data” sheet and a sheet showing how you wish your data to be organized.

    Alf

+ 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. [SOLVED] Referencing list box items in other cells using the 'IF' condition.
    By dontaylor in forum Excel General
    Replies: 2
    Last Post: 10-30-2013, 10:40 AM
  2. [SOLVED] Creating a grocery list in a new worksheet based on selected items in a master list
    By jacolli4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2012, 07:53 AM
  3. Creating list based on condition
    By jmoffett in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-18-2011, 09:49 PM
  4. Replies: 4
    Last Post: 09-21-2010, 06:24 PM
  5. Counting unique items in a list based on a condition
    By George Lynch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2005, 09:06 AM

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