+ Reply to Thread
Results 1 to 2 of 2

Loookup Value from Previous Date

  1. #1
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Loookup Value from Previous Date

    I have an array formula that looks through a table to find the previous date an activity existed and pull the labor hours completed from that entry. I can use that to calculate how much progress we have made in the last month on a certain activity. My problem is that I have 10,000 rows and this formula seems to be the one slowing the sheet down a lot.

    On the oldest dates in the datadate column, I don't need to calculate the difference between what is currently shown as earned and some previous amount, because a previous value doesn't exist.

    Some activities (like the last 2) may appear in the data with no history because they are short activities that were added and then worked on within the one month window. I still need to show that something was earned on those.

    Is there a more efficient way of finding this information? I can use helper columns or anything else that would be helpful.

    Here is the formula:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  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,192

    Re: Loookup Value from Previous Date

    If data is "sorted" as your sample i.e. ascending dates within "Activity ID" then try

    =IF(COUNTIF($A$2:$A$100,$A2)=1,$E2,IF($A2<>$A1,0,$E2-$E1))

+ 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] Loookup on multiple date range & multiple lines
    By BrazenBigfoot in forum Excel General
    Replies: 7
    Last Post: 10-19-2017, 07:26 PM
  2. Loookup From The Bottom Up Problem
    By bbustin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2016, 07:38 AM
  3. [SOLVED] Start date must be next workday and non-holiday after previous task end date
    By Verdant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2015, 04:21 PM
  4. Replies: 0
    Last Post: 02-25-2015, 01:02 PM
  5. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  6. Loookup(2,1/ lookup _Value, Lookup_Vector
    By Blake 7 in forum Excel General
    Replies: 7
    Last Post: 02-22-2011, 06:13 PM
  7. create macro to delete row with a date previous to current date
    By laserk7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2008, 12:36 PM

Tags for this Thread

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