+ Reply to Thread
Results 1 to 12 of 12

Difference in Readings(Column ), Considering similar IDs in Column A and different dates

  1. #1
    Registered User
    Join Date
    10-17-2020
    Location
    Nairobi,Kenya
    MS-Off Ver
    office 2010
    Posts
    8

    Question Difference in Readings(Column ), Considering similar IDs in Column A and different dates

    from Column A have Unique IDs but repeated with entries in Column B where we have dates and new readings in column C, I want in Coumn D to get difference in reading between current date and previous of similar ID, how should I do that and retain enteries in cells in Column D in every new entry?
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Maybe this, in D2, copied down:

    =IFERROR(C2-LOOKUP(2,1/($A$1:$A1=A2),$C$1:C1),"First Reading")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-17-2020
    Location
    Nairobi,Kenya
    MS-Off Ver
    office 2010
    Posts
    8

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Quote Originally Posted by Glenn Kennedy View Post
    Maybe this, in D2, copied down:

    =IFERROR(C2-LOOKUP(2,1/($A$1:$A1=A2),$C$1:C1),"First Reading")
    Thanks Glen, how do I go about it considering dates instead?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Post a sample sheet, showing manually calculated expected results.

  5. #5
    Registered User
    Join Date
    10-17-2020
    Location
    Nairobi,Kenya
    MS-Off Ver
    office 2010
    Posts
    8

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Kindly Find attached Will Highly appreciate.
    Last edited by Anko_lee; 10-17-2020 at 02:33 PM. Reason: To attach

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Your attachment didn't attach. have another go!

  7. #7
    Registered User
    Join Date
    10-17-2020
    Location
    Nairobi,Kenya
    MS-Off Ver
    office 2010
    Posts
    8

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Find attached Sample

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Why are D2 to D4 blank?


    In your first sample, the dates were all in ascending order. Now they are not. Please clarify, can a situation like rows 46 & 47 are in descending date order, whereas they are ascending everywhere else?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    I get it now!!

    =IFERROR(C2-AGGREGATE(14,6,$C$2:$C$47/(($A$2:$A$47=A2)*($B$2:$B$47<B2)),1),"First Reading")

    see sheet.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-17-2020
    Location
    Nairobi,Kenya
    MS-Off Ver
    office 2010
    Posts
    8

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Thanks Glen its truly working as I wanted!!!
    Last edited by Anko_lee; 10-18-2020 at 02:50 AM.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    Thate's because I posted your original sheet....

    try now.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Difference in Readings(Column ), Considering similar IDs in Column A and different d

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Difference between filtered consecutive readings in a column.
    By skyping in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-19-2020, 11:12 AM
  2. [SOLVED] Find similar account number then calculate the difference in dates
    By snikrs11 in forum Excel General
    Replies: 6
    Last Post: 10-28-2015, 11:45 AM
  3. [SOLVED] Smallest difference between dates in the same column
    By TPDave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2014, 01:56 PM
  4. difference between dates, look for first column if no date go to another column.
    By clearedtoland in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2013, 11:16 PM
  5. Replies: 2
    Last Post: 03-27-2013, 11:18 AM
  6. Difference between time in same column with different dates
    By bodycode in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 03-13-2013, 01:10 AM
  7. Finding a date in a specific column surounded by other columns with similar dates
    By Freakazoid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2012, 05:28 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