Difference from previous row in filtered table

wenter95

New Member
Joined
Jun 19, 2023
Messages
1
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
Hi All,

Need someone to shed some light.

Attached image 1 the raw data, where Column A shows different machine ID, Column B shows different date and Column C is my specification respectively.

I'm looking up for a formula in Excel, which can calculate the difference from previous successive row in filtered table, under same condition/criteria (eg. same machine ID and same station date_trackouttime). For example, I filtered with machine ID to BG3 with station date 11/6/2023, track out time sorted in ascending order as in image 2 below, and the difference from its previous successive row will display in Column D. The remaining unfiltered data (other machine ID in same date) should also proceed to display the differences accordingly under the same condition

I know pivot table > shows value as difference from previous will do the same thing, but i need it to be done in raw data table for further analysis.

Thank you.
 

Attachments

  • rawdata1.png
    rawdata1.png
    42.4 KB · Views: 17
  • rawdata2.png
    rawdata2.png
    11.1 KB · Views: 17

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to calculate difference from previous row in filtered table
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top