+ Reply to Thread
Results 1 to 5 of 5

Formula to grab item count from the last recorded date to find the difference

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Springfield, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    16

    Question Formula to grab item count from the last recorded date to find the difference

    I have a simple Excel sheet with a Formatted Table where I am tracking the count of a variable in an experiment. I record this count at the beginning of every day when I have the opportunity to do so. There are some days where I do not have the opportunity to record count.

    Date Count
    7/5/2018 45
    7/6/2018 41
    7/9/2018 40
    7/10/2018 42
    7/11/2018 49
    7/12/2018 55
    7/13/2018 53
    7/16/2018 54
    7/17/2018 58

    I want to add a third column to this formatted table where it finds the net growth between [@Count] and the Count of the previously recorded date. I am familiar with the usage of INDEX(MATCH()), it's just that I don't know how to write into a formula to look for "the previous date" (rather than statically look for [@Date]-1), I do not know what formulas could help me do this.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Formula to grab item count from the last recorded date to find the difference

    Can you add a few lines when you can't make records and the expected result in third column?

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to grab item count from the last recorded date to find the difference

    Since the previously recorded date is directly above the most recent one, why not keep it simple and have something like this:

    C2 =IFERROR(B2-B1,"")

    This assumes that "Count" is in column B and that your data starts in row 2 (headers in row 1).

  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    Springfield, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    16

    Re: Formula to grab item count from the last recorded date to find the difference

    Quote Originally Posted by Estevaoba View Post
    Can you add a few lines when you can't make records and the expected result in third column?
    I am having difficulty understanding your question and message.

    Quote Originally Posted by 63falcondude View Post
    Since the previously recorded date is directly above the most recent one, why not keep it simple and have something like this:

    C2 =IFERROR(B2-B1,"")

    This assumes that "Count" is in column B and that your data starts in row 2 (headers in row 1).
    While that is the most straight-forward path, it isn't flexible and cuts off the ability to sort and manipulate the table and its data; it is not scalable or flexible. I am looking to do this the right way where data calculations remain accurate and intact through use of formulas (ex. INDEX-MATCH) and variables (ex. [#Column], [@Column], [Column], ...) no matter how the data in the table is sorted. This might come at a cost, but the cost is affordable and to me worth it because it will also teach me certain principles and 'how things work' in Excel which will increase my ability to think creatively knowing what is possible and how to pull off certain formula maneuvers.
    Last edited by BlueToast; 07-18-2018 at 12:27 PM.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to grab item count from the last recorded date to find the difference

    In that case, consider creating a small representative sample where the suggestion above wouldn't work along with the desired results (which can be entered manually).

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

+ 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. [SOLVED] I need help on a formula where I find an item and quantity based on a specific date
    By Pickled Shark in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-28-2017, 02:01 PM
  2. [SOLVED] Grab item for one group only
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-28-2016, 07:21 AM
  3. Replies: 2
    Last Post: 10-14-2014, 07:12 AM
  4. How do I grab the 2nd path item from an url? Regex?
    By cdumper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2014, 11:40 AM
  5. Find last date an item was entered and count the days since
    By hlb129 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2014, 08:14 AM
  6. Formula to count date difference based on a criteria
    By athey87 in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 05:11 PM
  7. Replies: 3
    Last Post: 01-24-2011, 12:48 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