+ Reply to Thread
Results 1 to 6 of 6

Allocating costs - one row to mulitple rows

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Allocating costs - one row to mulitple rows

    Hi there
    I work in the finance department and we receive an excel import file from payroll each fortnight which contains the payroll information assigned to overhead cost centres by salary expense code by employee code. Each employee could have up to 20 rows of information depending on the terms and conditions of their contract.
    We would like to allocate these costs to products by employee within an Excel spreadsheet. We have a breakdown of each employee and the products they spend their time on (in percentages adding to a total of 100%) This is stored in a separate spreadsheet which can be copied into the payroll import file.
    The payroll file contains the following information:
    Payroll number, account code (including the overhead code and the expenditure code), the amount of the salary item, debit/credit indicator and the employee number.
    I would like to create a macro which will allocate the costs charged to the overhead code to the product codes based on the employee split. This needs to be done by expenditure code as well
    So for example
    Employee 23 works in Team A and has Salary, Pension and First Aid Allowance information (in 3 separate rows in the payroll file).
    Employee 23 works on 3 Products (Product 1, Product 2 and Product 3). The percentage splits are kept in a separate worksheet.
    I would like the costs for Employee 23 to be spread across the 3 products - based on the percentage split.
    The result would be 9 rows created in a separate worksheet with the account code reflecting the product account codes and the salary expenditure code - please see the attached spreadsheet which demonstrates what the input and output should be.
    We have about 300 employees so this action would be repeated up to 300 times (once for each employee.
    Do you have any suggestions on how to achieve this.

    Thanks in advance for your help
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-14-2011
    Location
    Lohr, Germany
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Allocating costs - one row to mulitple rows

    To be honest: with 300 employees this task would be better suited to a small Access db where you upload your input files into tables and get the result by a query which can be retrieved into Excel by through a Database connection.
    It certainly can be done in Excel too using VBA unless you don't need the payroll breakdown (in your example output I only see the product account code 3 times each), only the allocation per product. In this case you could calculate the allocated amount per worker and product with a formula in the product sheet.
    I could prepare an example in your workbook each way over the weekend if you like. Only in Excel 2003 but there should be no major difference.
    Have fun
    Richard

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Allocating costs - one row to mulitple rows

    Thanks for your suggestion, Richard. I will have a look at Access today and see what I can get done.
    Thanks again

  4. #4
    Registered User
    Join Date
    05-30-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    monthly Spreadsheet showing cost of overheads,

    Hi All,

    I have just recently started working with an organisation who currently doesnt have a reporting tool on the monthly overheads on employees, whether it be PAYE or Consultants/Contractors.

    All the other companies I have worked for, have had some software in place where this information was extracted from, however they do not have such systems in place here. I know there will initially be manual entry, however I need to maintain this report every month.

    I just wanted to know if anyone as something similar they have completed in their organisations.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Allocating costs - one row to mulitple rows

    Mon.khaira,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    10-07-2012
    Location
    qatar
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Allocating costs - one row to mulitple rows

    very good, keep it up

+ Reply to Thread

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