+ Reply to Thread
Results 1 to 6 of 6

Creating a list for data entry based on variables (Assets)

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Question Creating a list for data entry based on variables (Assets)

    Hi All,

    Just wondering if I could get some suggestions as to how to automate what I am trying to do here, preferebly without using Macros. Based on a list of assets and assuming two shifts (Day and Night), on a seperate sheet I would like to generate a list for data entry to be made. This will be done on a new sheet on a month by month basis and thus I would also like the sheet to generate the list for the entirity of the month, which will vary based on the number of days in said month, which I wish it to determine from the start of month date that is entered at the top of the sheet. Please see my attached example which I have started manually enterring. I wish to do this for the entirity of the month. As Asset ID's will often change month to month, as well as the length of the month, this can be a tedious task and Im not happy that a simple copy and paste will do between months.

    Any help is much appreciated and I hope this isnt too confusing.

    Thankyou in advance,

    Regards,
    Ben

    Example One.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Creating a list for data entry based on variables (Assets)

    You could use defined names, different to naming some cells in the top left corner of Excel. You need to use the name manager to create a logic based formula to select the range, for example a dynamic range for column a would be =offset($a$1,0,0,counta($A:$A),1)

    So you could do something similar, with these range names being your sources for your dropdowns.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Creating a list for data entry based on variables (Assets)

    Without sounding rude, I have no idea how that is supposed to help me. I am not after a drop down list, rather I wish to create a large blank table ahead of everymonth for data entry then to be completed in the collums adjacent to the date, asset ID and Shift. This data will be entered on a day by day basis once the time sheets for the employer operating that asset has been recieved. However, the data entry is not important to this problem. What is important is that for each month I need to create a new base 'data' sheet that already has all the shifts for each piece of equipment, listed out, as I have manually shown in my example for the first three days of the month. The reason I want this automated is it will save alot of time. The reason I cant just copy and paste each month is predominantly the asset IDs will change from month to month, sometimes increase in numbers, sometimes decrease, sometimes be completely different, thus I want the 'data' sheet to be generated from the list of assets I have on the first sheet ('Assets').

    I would be content if this problem could be solved using Macros, since this post has now been moved to the Macro and VBA forum and since it is looking like this is the only potential way to find a solution to my problem. Unfortunately I am not very familiar with Macros other than hitting the record button and maybe dragging some data into the spreadsheet, thus any instructions will have to be pretty much written in layman terms for myself to understand.

    Any help would be appreciated!

    Cheers,

    Ben

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Creating a list for data entry based on variables (Assets)

    Got ya, sorry i interepeted a list as a list, a dropdown list, been developing too long :o)

    VBA would be the best way, and the best way would to be recording yourself doing it, you can then look at the code and see how it works etc. This is the way most of us here started, and is a great insight, as its all Microsoft written, so good syntax to learn off.

    A macro is probably the best way.

  5. #5
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Creating a list for data entry based on variables (Assets)

    I am aware that a Macro will be the best way, and I have tried recording this myself but as the length of the list varies and so does the length of each month I cannot get this to work correctly for me. It needs to be something where I can fill out the list of asset ID's for the month, enter the date for the first day of the month, hit a button and voila!

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Creating a list for data entry based on variables (Assets)

    Yes, but in order to do that you need the basics. For example, i'd record what i needed as a generally standard one, then look at the code, so for example when the output is

    Please Login or Register  to view this content.
    you can see to change the sheet, would be either sheet1 or sheet2 and the rows down would be the 10, you can then modify this.

    I dont think anyone here will do it for you, this is the best way to start looking at what you need to do.

+ 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. Creating Random Portfolios from list of assets
    By grant_hh in forum Excel General
    Replies: 11
    Last Post: 10-12-2020, 03:36 AM
  2. Replies: 3
    Last Post: 06-14-2014, 03:05 PM
  3. Creating folderpaths based on variables
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2011, 06:18 AM
  4. Replies: 3
    Last Post: 02-24-2011, 01:48 AM
  5. Creating a list of variables at the end of a For Each Loop
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-13-2010, 05:03 PM

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