+ Reply to Thread
Results 1 to 7 of 7

Problem with dynamic employee sales table

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Turku
    MS-Off Ver
    Excel 2010
    Posts
    6

    Problem with dynamic employee sales table

    Hi,

    I have attached an example file. I am trying to build an dynamic/automated sales table, which depends on the date when an employee starts working. It is assumed that sales per employee is equal, but sales per month varies during the first 12-months.

    The problem is that I haven't figured how to create function that starts automatically imputing sales when the employee starts working. For example:

    In the Output sheet, if employee 2 starts working 1.2.2017, he sells 100 in the first month (1.2.2017), 200 in the second month (1.3.2017) etc. This incremental increase in sales is the same for each employee, only the start date varies. Rows before should naturally be blank as the employee has not started working.

    I do not want to put these sales figures manually, but instead I want to create a dynamic table so that I can change inputs (1) employee start date (2) sales per month. Any tips how to build a function on sheet Output that takes this into account?

    Thanks a lot in advance and please notice that there is nothing sensitive in the example file attached.
    Attached Files Attached Files
    Last edited by hemiso; 02-15-2017 at 06:04 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Problem with dynamic employee sales table

    In E6

    =IF($D6="",IF(E$5>=$C6,OFFSET(Sales!$D$5:$O$5,0,MONTH(E$5)-MONTH($C6),1,1),""),"")

    Copy across and down

  3. #3
    Registered User
    Join Date
    06-03-2013
    Location
    Turku
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Problem with dynamic employee sales table

    Hi JohnTopley,

    thanks a lot for the function. However, I find this function problematic if I try to modify the length of sales period from 12-months to e.g. 16-months. Its starts to link incorrect figures to the output sheet (?).

    Somehow it stats to show negative figures for Month (x) - Month (x), although they are positive as the date is still ascending..
    Last edited by hemiso; 02-15-2017 at 07:43 AM.

  4. #4
    Registered User
    Join Date
    06-03-2013
    Location
    Turku
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Problem with dynamic employee sales table

    I think I solved the issue with DATEDIF function lets see!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Problem with dynamic employee sales table

    Try

    =IF($D6="",IF(E$5>=$C6,OFFSET(Sales!$D$5:$O$5,0,MONTH(E$5)-MONTH($C6)+(YEAR(E$5)-YEAR($C6))*12,1,1),""),"")

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Problem with dynamic employee sales table

    Try this
    Keep D column empty. In E6, then drag across
    Please Login or Register  to view this content.

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Problem with dynamic employee sales table

    I think this is a not a dynamic employee sales table. Why not sales maintain day wise in sales sheet. Output Monthwise as well as Emp wise. using simple formula sumifs. Look attach file.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. Average sales per week per sales representative in pivot table
    By R12345 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-15-2016, 07:16 AM
  2. Employee sales tracker, drawing data from multiple columns
    By bck007 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-08-2016, 07:28 PM
  3. [SOLVED] Pivot Table Problem with OFFSET for Dynamic Source
    By catnam in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-21-2014, 05:25 PM
  4. Dynamic table - add calculated item - if problem (Urgent!)
    By j.ribeiro in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-21-2013, 06:57 PM
  5. Replies: 2
    Last Post: 06-19-2012, 10:19 AM
  6. counting number of sales per employee
    By tbr717 in forum Excel General
    Replies: 1
    Last Post: 02-24-2007, 04:36 PM
  7. Problem updating dynamic table, from csv file
    By gjoseval90 in forum Excel General
    Replies: 0
    Last Post: 08-31-2005, 07:05 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