+ Reply to Thread
Results 1 to 10 of 10

Calculate delta in values between current and previous day

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Calculate delta in values between current and previous day

    I have a large, very large table that consists of the following
    Date, Sales Rep, State, ZIP, Customer Count

    Is there a way to add a column that has the delta between the current day and the previous so I can see how many new customers were added? The list may or may not have the previous day data as reps don't work every day.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Calculate delta in values between current and previous day

    Sure. That seems possible, but you will need to provide more information. That is, show us your data.

    Please follow the instructions in the "Yellow" banner above. And, we do not to see a large table of data, only enough to cover what you seek. Please post a clear before & after with results you expect to see.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Calculate delta in values between current and previous day

    Sure, here is scrubbed data
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Calculate delta in values between current and previous day

    Is there a way to add a column that has the delta between the current day and the previous so I can see how many new customers were added? The list may or may not have the previous day data as reps don't work every day.
    Thanks for the sample, but all the dates in column A are the same and every rep is different. What is to be calculated? What results do you expect?

    I believe a little more clarification is required or I'm totally missing something which would not be a first.

  5. #5
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Calculate delta in values between current and previous day

    Maybe this is what you're looking for:
    Cheers
    Erwin
    Attached Files Attached Files
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  6. #6
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5
    Basically the next day will have the same data, just with the date changed.


    Quote Originally Posted by jeffreybrown View Post
    Thanks for the sample, but all the dates in column A are the same and every rep is different. What is to be calculated? What results do you expect?

    I believe a little more clarification is required or I'm totally missing something which would not be a first.

  7. #7
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Calculate delta in values between current and previous day

    Thanks but I am trying to track the delta for each sales rep by date.

  8. #8
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Calculate delta in values between current and previous day

    In that case I would recommend you the Pivot,
    where you can view the differences/delta

    Cheers
    Erwin
    Attached Images Attached Images
    Attached Files Attached Files

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Calculate delta in values between current and previous day

    Quote Originally Posted by jeffreybrown View Post
    What is to be calculated? What results do you expect?
    And I will echo my previous comments. Instead of us chasing what you desire, how about you give us a glimpse into what that would look like to you!

  10. #10
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Calculate delta in values between current and previous day

    Eastw00d got it right. That's exactly what I was looking for. Thank you.

+ 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. calculate the delta value in each trio .
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2019, 01:07 PM
  2. How to calculate Current MTD Rate and Previous MTD rate
    By ericagyemang95 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2019, 11:13 PM
  3. How to calculate Current MTD Rate and Previous MTD rate
    By ericagyemang95 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2019, 01:09 AM
  4. [SOLVED] calculate the delta values (distances) between the trios .
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2019, 01:55 PM
  5. I want to find the closest point to the origin using delta X and Delta Y.
    By dcmapper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2016, 05:05 AM
  6. [SOLVED] Dynamic formula to calculate the difference between current and previous month
    By kay007 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2015, 11:19 AM
  7. Replies: 2
    Last Post: 02-12-2015, 11:59 AM

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