+ Reply to Thread
Results 1 to 2 of 2

Need help making data entry easier since some information is repeated on rows.

Hybrid View

  1. #1
    Registered User
    Join Date
    12-11-2014
    Location
    Michigan
    MS-Off Ver
    2010
    Posts
    21

    Need help making data entry easier since some information is repeated on rows.

    I have no experience with VBA. I am assuming I need it to make my data entry in excel easier. I appreciate any help or suggestions someone has to offer.

    I have created a simplied example of my real-life problem. I am hoping if I can look at the base code I can convert it into my application. See attached.

    I have no experience with VBA, so if you can provide assistance as to how to insert the code and run it, it would be greatly appreciated!

    Summary of problem:

    I have five columns in my spreadsheet: Product, Document #, Item, Category, Formula

    -I want to make data entry easier since there is repeated data in columns A and B.

    -There will always be 1 fruit entered. The number of veggies can vary from 1 or more.

    -I am open to different solutions but I was thinking a dialog box that prompts the user to enter the Product, the name of the fruit and the number of veggies might be a good solution.

    -Depending on the number of veggies specified, dialog boxes to specify name of each piece of each veggie

    -Insert the formula in column E (B x 10).

    Example 1:
    Dialog Box
    Specify Product: A
    Document #: 123
    Fruit: Oranges
    # of Veggies: 1
    Veggie Name: Green Beans
    Insert "fruit" in D2 and "veggie" in D3
    Insert formula (B x 10) in E2 and E3

    Example 2:
    Dialog Box
    Specify Product: B
    Document #: 234
    Fruit: Bananas
    # of Veggies: 2
    Veggie #1: Asparagus
    Veggie #2: Broccoli
    Insert "fruit" in D4 and "veggie" in D5 - D6
    Insert formula (B x 10) in E4, E5, and E6

    I would like to band every other product entry light blue.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Need help making data entry easier since some information is repeated on rows.

    I'm thinking that since you're not familiar with VBA (and even if you were a little), creating and coding a userform on which to enter data might be an inconvenient way to go. Rather, we could just put code behind the worksheet that would aid in your data entry. I'm assuming that you could create a lookup table on another sheet that would list all the possible Items in column A, and their Category in column B, that could be used in a lookup table. Then maybe have the data entry/code process work something like this:

    1. Enter Product in A2
    2. Enter Doc # in B2
    3. Enter Item in C2
    4. Code looks up Category and puts it in D2
    5. Code calculates Formula and puts it in E2
    6. Code copies values from A2, B2, and E2 to A3, B3, and C3 as default values for the next row, and selects cell A3
    7a. If the default values are correct, user tabs to C3 and enters Item. Code continues as in step 4
    7b. If a not, enter the new Product in A3. Code clears B3:E3. User continues as in step 2

    What do you think?
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ 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] Moving data from Rows to columns and delete repeated rows
    By mikearmanios in forum Excel General
    Replies: 5
    Last Post: 04-20-2014, 06:25 AM
  2. Making reporting easier
    By fbplaya02 in forum Excel General
    Replies: 2
    Last Post: 02-15-2013, 01:23 AM
  3. Replies: 6
    Last Post: 07-05-2011, 07:18 PM
  4. [SOLVED] Append data to repeated values with a fixed array to be repeated on value change
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2011, 12:30 AM
  5. Help making This code easier
    By justchris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2005, 12:28 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