+ Reply to Thread
Results 1 to 12 of 12

Help in designing an invoicing database.

  1. #1
    Registered User
    Join Date
    11-12-2021
    Location
    NYC
    MS-Off Ver
    Office16
    Posts
    6

    Help in designing an invoicing database.

    Good morning all!

    Okay - so I have this workbook. My supervisor wants us to have an excel invoice, but then wants all of the info inputted in the Invoice to self populate, building two (2) separate sheets of databases.

    I know I need macros, I know I need links. And honestly, I haven't worked on stuff like this in a really long time, and I am completely out of practice. I know this is all possible.

    Can someone help me please? Please.

    I'm continuing to power through, however, I am uploading the base of this project here, in hopes that while I struggle bus, that some magical Excel Knight will come to save me.

    Anyone, Bueller?
    Attached Files Attached Files
    Last edited by Richard Buttrey; 11-12-2021 at 12:19 PM. Reason: Title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help in designing an invoicing database.

    Hi and welcome to the forum.

    Please note our rules about thread titles which should give some indication of what you want. Since you are new here I'll change it for you but please note for the future.

    Original Title. Out of Practice -HALP!

    First question.
    Is the Invoice Database meant to hold the details of the Total invoice cost on a single unique row?
    At the moment it caters for individual part numbers suggesting that you might be thinking of a row for every line item on an invoice rather than the total for the invoice.

    If the Invoice database is meant to hold line item details then I suggest that this should be the input sheet where you capture the details for the invoice. Typically I'd have a single row above the database in which you enter every line item, then click a button to add it to the database. When you want to create an invoice you could select an invoice number from the database in a cell drop down and then have a button to copy the relevant details to the proforma invoice - alternatively I often use a double click event on a database row to achieve the same effect.

    The Vehicle Database is presumably a stand alone set of data and other than the customer name / service date and would not change unless an Invoice was just for a service. Is that correct or would every invoice generate a record on the vehicle database?
    Last edited by Richard Buttrey; 11-12-2021 at 12:32 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-12-2021
    Location
    NYC
    MS-Off Ver
    Office16
    Posts
    6

    Re: Help in designing an invoicing database.

    Richard - Thanks for the assistance

    Is the Invoice Database meant to hold the details of the Total invoice cost on a single unique row?
    The invoice database is meant to hold every detail inputted into the invoice. Individual parts, their numbers, their costs.

    Here's where I'm at right now
    I'm designing a button that will input the information into the corresponding database.
    The problem I'm now encountering is, as you referenced, the individual lines for the individual parts and costs, and having them duplicate directly underneath. I do not mind having to go in weekly, and organizing and adding some information in. I just - really don't want to.

    I took the vehicle database out, and a merged the columns (not duplicated) into the main database - it was just getting too cluttered.
    This is a small automotive repair shop - and what is being asked for is steps above what they actually need right now, but, you know bosses - Shoot for the moon.


    So - As for the Part #s, the descriptions - basically the chunk of information that will be contained:
    B14 - 26, C14 - 26, D14 - 26, E14 - 26

    How do you think I should do that so it populates?

    Thanks for this - After I posted in the forum, I brewed a huge cup of coffee, and said "You got this, start figuring it out"

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help in designing an invoicing database.

    If I understand the requirement the key to this boils down to where do you start capturing the data.

    I suggest it's captured directly in the Invoice Database sheet. As I said it's more efficient to have a single dedicated date entry row above the data where you would enter a line item. I suggest you also include the comments box as a field in the database.

    Typically you'd hold a table of part numbers, part costs and perhaps labour rates in separate tables on another sheet, along with a table for customer name and ID so that in the data entry row you could have data validation cells to pick from the tables.

    Then you'd use a macro to transfer the data entry row to the database, zero the data entry row and onto the next line item number, and when you've completed all the line items for an invoice have another macro that would populate just the Invoice with just the relevant lines from the database.

    That would be my preferred method. You could of course do it the other way around and add details to the Invoice Database with a macro. The way I'd do that would be to have a macro loop down the invoice rows and transfer each row to the Invoice database. I think that's slightly more complicated than the first approach

  5. #5
    Registered User
    Join Date
    11-12-2021
    Location
    NYC
    MS-Off Ver
    Office16
    Posts
    6

    Re: Help in designing an invoicing database.

    Youre right on the money with your thoughts.

    And I very much like your method.

    Thoughts on how to set up the corresponding sheets so that they can feed into each other like that?
    Any specific code you'd use?


    I just hit my wall with the button I'm setting up. Have to debug a step. But, overall it's starting to take shape.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Help in designing an invoicing database.

    If you have it available, I would urge you to consider doing this in Access which is a Database and may at the end of the day be more productive for you. Look at this link for a basic tutorial on Data Bases.

    http://www.accessmvp.com/strive4peace/

    and the attached.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Registered User
    Join Date
    11-12-2021
    Location
    NYC
    MS-Off Ver
    Office16
    Posts
    6

    Re: Help in designing an invoicing database.

    Access is it's own animal - and I am certain my boss wouldn't be able to operate it if I wasn't in.
    Hence - Excel.

    Trust me - I wish I could use Access

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Help in designing an invoicing database.

    Why not read/write to access from excel. I kept away from this for years and now its a firm favourite of the bosses here..

    Invoices printed from an excel template - all record details stored in access
    Attached Images Attached Images
    Last edited by nigelog; 11-26-2021 at 12:58 PM.

  9. #9
    Registered User
    Join Date
    11-12-2021
    Location
    NYC
    MS-Off Ver
    Office16
    Posts
    6

    Re: Help in designing an invoicing database.

    Sadly - it isn't an option
    Access does not want to be utilized
    I think they are afraid of it - even if I am the only once touching it.

  10. #10
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Help in designing an invoicing database.

    Access or some other database is the way to go. However, with a bit of coding Excel can be made to behave like a limited database (very little flexibility).

    I've done this kind of work before, but you'll have to be patient with me because my time is limited.

    Here is what you will need:

    A Customer "Table" with the customer's phone number as the primary key - Once the customer has given you this number, they are stuck with it even if they change their number. You can have a secondary field for primary contact number. You will need functionality to add new customers, look up existing customers and edit existing customer information. You might also want functionality to delete customers.

    A vehicle table that contains the vehicles a customer owns. You will need add vehicle and delete vehicle functions for this table.

    An invoice table to summarize work done. The invoice needs to be triple-indexed so that it matches customer and vehicle. I assume that you would want to be able to pull up invoices for tax purposes or pull up open invoices by customer or pull up all invoices by vehicle so you know what past work has been done on a car.

    Most of this is done automatically in a database. All of it has to be programmed in Excel. It's a big project. I might do a generalize version of it so anyone with a repair shop can use it, but it would be a "spare time" project with an indefinite completion date. I will touch base with you if I get it completed.

    BTW: I grew up on the corner of Willoughby Street and St. Nicholas Ave. It's about a mile hike from your shop.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  11. #11
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Help in designing an invoicing database.

    Here is a "Proof of Concept."

    This has mainly been an exercise in Excel Forms. I was a bit rusty on them so it did me some good.
    Attached Files Attached Files

  12. #12
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Help in designing an invoicing database.

    'Bare bones framework' - Default tables with 'Customer/Vehicle' I.D. is VIN # - 'Parts Table' and 'Labor Table'
    Button in 'A1' of Customer & Parts tables brings up data entry form - to add an entry first press 'Clear' - add your data then press 'Add' - the rest should be intuitive.
    To enter an invoice first press 'New Invoice' this clears the form and fills the next invoice number - then click in VIN (yellow cell) - selecting VIN fills in customer associated with it.
    In column 'B' select yellow cells to input your 'parts' then fill yellow quantity box - similar for the two yellow 'labor' boxes in column 'B' then fill the labor hours.
    The cursor should go to the next cell after selecting item in column 'B' complete each row before going to the next.
    There are no on-sheet formula - the sheet should calculate at each row stage.
    Have a trial, there is very little error checking code as it is just the operation concept that is of interest at this point in time.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

+ 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. Replies: 3
    Last Post: 09-18-2014, 02:21 PM
  2. Can someone halp me to colligate these 4 diferent formulas in one?
    By Bolssi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-08-2013, 04:01 PM
  3. Can someone halp me to colligate these 4 diferent formulas in one?
    By Bolssi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-08-2013, 12:50 PM
  4. I don't even know what to title this. Halp!
    By robmat in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-25-2013, 01:40 PM
  5. Need Halp
    By Chris Skittz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 11:17 AM
  6. Please halp me..
    By Leonardo Arellano in forum Excel General
    Replies: 1
    Last Post: 02-21-2006, 07:40 AM
  7. [SOLVED] i need halp with a formula
    By detlghtpd in forum Excel General
    Replies: 5
    Last Post: 03-25-2005, 12:06 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