Results 1 to 4 of 4

Sorting figures/Codes Dynamically?

Threaded View

  1. #1
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Sorting figures/Codes Dynamically?

    I’m attempting to automate a payroll system and so far have made decent progress. I’d like to finish this up if I can and have it bridged in excel. I have a sample attached of what I’m working on and thinks to the help of this board and a lot of help from one person in particular!!! I was able to get it up and running to this point the only thing I’m missing is…

    Example of what I’d like to do:

    Employee 101, John.. on “Copy Totals” I’d like excel to be able to total up all of Johns hours in column K 24.75, 168 and 48 then put that total into “Dump Totals Here” U2 and have it minus off 106. 24.75+168+48-106=134.75.. easy enough you think.. and it is apart from one thing.. the totals for John are static now but next week he may not use 48 hours of vacation instead he may now have 2 sets of figures or he may have one listed in K. I need to find a way for excel to search the entire “Copy Totals” sheet and know which employee is John, 101 and which is Bob 102.. etc and where each of their totals are, where one starts and the other ends. Figures in “Copy Totals” will change as it’s a payroll report for people and will change week by week. Basically where you see any numbers highlighted in red in the “Dump Totals Here” worksheet they would need to be fed from the “Copy Totals” worksheet.

    Where each total should go or if it should be ignored is listed in the “Codes” worksheet.

    The next thing I need to do assuming we can get the above to work is for excel to know the difference between the employees and then search within each employee for a code for example John, 101 M & N 8 is VA (which means vacation) the total for VA is held in K8. Take that total then place it for John into “Dump Totals Here” into the correct column e.g. VA would drop into H2. Again easy enough as this is static but next week vacation may not be in the same row although it’ll still be in the same columns M & N.

    What I’m trying to do is automate this process so I can have one excel sheet collect all the figures it needs from the other then dump them where needed. The “Dump Totals Here” should be able to do everything I need it to do I just need it to automatically collect that information from “Copy Totals” and dump everything in the correct area.

    I made the codes worksheet to try and explain where I’d like each code to be put or the figure for each code to appear?

    There is one more part I need to get working but I think I’ll save that for later! I am reading through the forum!

    Thanks,
    Attached Files Attached Files
    Last edited by VBA Noob; 02-24-2009 at 02:25 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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