+ Reply to Thread
Results 1 to 8 of 8

How to get info from one sheet to another automatically in a workbook without vlookup

  1. #1
    Registered User
    Join Date
    01-03-2017
    Location
    Arkansas
    MS-Off Ver
    2016
    Posts
    11

    How to get info from one sheet to another automatically in a workbook without vlookup

    Good morning,
    I have posted this before but maybe I didn't work it right or something. This is due wednesday and I'm very stuck. I'm attaching my workbook, what I am trying to do is create an invoice tracker for this company. On the Invoice Main tab the assistant creates an invoice which then the technician can fill out on the Invoice tab, the drop downs take them to their invoice and then they fill in what they sold. How the technician gets paid is based on the hours sold, so I included that. Now where I am stuck is, I can't figure out how to get those hours sold from the Invoice tab to pull over automatically to the Hours Sold tab. They want it to calculate per invoice and also calculate totals.
    I was thinking a simple vlookup to pull over but based on what? the sheets have nothing in common except the invoice number but that is in the drop downs of the Invoice tab not on the rows themselves.
    It's ok if I need to redo something to make it work or even revamp the entire workbook, I'm open to any and all suggestions. This is time sensitive so if you can help, please do! I'd greatly appreciate it, thanks!
    Attached Files Attached Files
    Spryng (like the season)

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

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    I'm not quite sure that I am pulling the pieces from the right place. Also I do not understand how your business process works so I can't recommend a better layout although I suspect there is one.

    Here is something that gets the information from the invoice and the main sheet and puts it on the hours sold sheet.

    If you can be explicit about the process from beginning to end. I might be able to help with the second part. Basically - who fills out what and when and where does the information come from?

    The macro to run is called AddInvoice.
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    01-03-2017
    Location
    Arkansas
    MS-Off Ver
    2016
    Posts
    11

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    Thank you so much, so yes, three people will be utilizing this tracker, the assistant who will use Invoices Main to create one for the technician, the technician only touches the Invoice tab to pick the work he did that day, hours sold will be where those invoices hours are housed for the third person, the boss, will only view the Hours sold to make payment to the technician. Inventory is just that, everything the company sells, the other tab is supposed to be where the details of the Invoice tab pulls to but I don't know it does that.. though it's not the issue right now anyway, just getting those invoices and hours to show up on another tab entirely to track by invoice and also totals for that specific technician.

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

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    OK, I'm going to take a look at the workbook with these items in mind.

    One thing I applaud you for is the use of Excel tables. They do make things a lot easier to write formulas for and to code in VBA. However, I notice that you are adding extra rows in the tables. You don't really have to do this. If you right click on a cell in the bottom line of the table you get an option to Insert -> Table Row Above. This works if the bottom line is a total row. If you don't have a total row, simply adding information on the next available row adds that row to the table automatically.

    One of the advantages of a table is that it knows exactly how many rows and columns it has, so you are never working with too little or too much data.

    Here is some more information on tables: http://www.utteraccess.com/wiki/inde...ables_in_Excel.

  5. #5
    Registered User
    Join Date
    01-03-2017
    Location
    Arkansas
    MS-Off Ver
    2016
    Posts
    11

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    This is the template I was using mine from.. it was very generic so I was tweaking it to meet the company requests, perhaps I should start from scratch?

    This is what was requested:

    add in a worksheet for all their inventory they sell
    Get rid of taxes as that is already added into the total sale price
    Change customer tab to Technician. I am now thinking one technician per workbook so multiple lines are no longer needed.
    On invoice tab, make it so the technician can use a drop down to choose what they sold and then it auto populate the price, description, hours etc.
    Then from that invoice create a new tab that will accumulate the hours sold per invoice # and then a total amount for that specific technician, add in a column
    for the boss to to put whether those invoice hours were paid or not for that technician, so per invoice and total as well.

    I think that is about it, so basically I was tweaking this template to fit those needs. So now, knowing that, would you be able to take what I've done so far and
    advise what I need to do to complete this? It's due tomorrow and I'm so lost.
    Attached Files Attached Files

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

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    One big problem I see is that once an invoice is made, it's "forgotten." In the example, the quantities are always 2, 1, 1, 1. The technician may fill out the invoice but there is no keeping of the history of the invoices.

    I am looking at the Invoice Details. This seems to be a list of "place holders" that could be included on an invoice. The Invoice has a formula to look them up and then when you select an item, the formula goes away - pretty cool. However, I don't understand its purpose since the lookup for the description of the item comes from the inventory sheet.

    The unit price comes from the Invoice Details, but this information could be included with the Inventory.

    Ironically, there is no place on the Hours Sold Sheet for Hours Sold. This looks like a duplicate of Invoices – Main.

    So here is what I would suggest:

    Create a template sheet for the invoices set up mostly the way it is now. Under description, leave the entries blank but keep the current data validation. Item number can be calculated from the description (it appears to be what appears before the dash).

    Do data validation on Qty to be a positive whole number. Look up unit price and hours from the inventory sheet.

    When the people who fill in the Invoices Main completes the data entry, they select a cell on that row and click a button. This will make a copy of the invoice on a new sheet named for the invoice number.

    Hours sold can then be looked up from the historical invoice sheet based on the invoice number and returned to the Invoices – Main Sheet.

    I’d probably put in a pivot table against the Invoices – Main so the boss can select the date ranges and can look at hours by technician, totals due, etc.

    The Invoice Detail sheet can go away, and with the hours (and pivot table) on Invoices – Main, the hours sold sheet can go away.

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

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    Your response came in as I was working on this. So I may be a bit off base.

    Let’s see if this works for you.

    I had to keep the Invoice Details sheet for the moment, since it is used in a formula in Column I on the Invoices Main Sheet. I don’t know what this sheet does for you yet. We will have to discuss what this information does and how to track it better in the future.

    Everything revolves around the Table on the Invoices Main sheet. The person fills in the information as they do now and then selects the cell (actually any cell in the same row) that contains the invoice number to create and then clicks on the Add Invoice Button.

    The program first checks to see if the invoice sheet already exists and if it does, you can either overwrite it (and lose all data) or abort the process and nothing happens.

    If the sheet doesn’t exist or you choose to overwrite it, the invoice template sheet is copied to the end of the spreadsheet, and is renamed with invoice number. All cells should be locked except description and quantity. I did not change anything on the template except the lookups for price and hours – they both come from inventory now. You can change one of them back to Invoice Details if you feel the need. Do this in the template file.

    The technician fills in the appropriate sheet and the hours sold are calculated on the Invoices – Main sheet.

    I created a pivot table against this table. I’m not sure what you want to track, so I took a guess.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-03-2017
    Location
    Arkansas
    MS-Off Ver
    2016
    Posts
    11

    Re: How to get info from one sheet to another automatically in a workbook without vlookup

    Thank you so much Dflak, I appreciate all your help on this

+ 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. Ad hoc request form info sent automatically to another workbook
    By V.Cell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2015, 12:56 PM
  2. automatically move info to another sheet?
    By welsh_decs in forum Excel General
    Replies: 12
    Last Post: 11-25-2013, 10:30 AM
  3. Replies: 3
    Last Post: 11-23-2013, 03:28 AM
  4. Saving info from outlook mails automatically to a workbook
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2013, 09:25 AM
  5. [SOLVED] Macro That Automatically Copies Row from Sheet 1 into Sheet 2 Based on Info in that Row
    By smartmika in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-27-2012, 10:52 AM
  6. how do I update a sheet automatically with the info from another?
    By Richard in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-21-2006, 03:25 PM
  7. parse info. from one workbook to another automatically
    By spirosu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2006, 06:10 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