Pivot Table - Lead Time Calculation

Medrok2021

New Member
Joined
Nov 27, 2021
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello

Would appreciate any help.

I am trying calculate the average sales invoice lead time (i.e. number of days between order date and ship date) in a pivot table from the data table below. Each invoice can have multiple lines of data and I cannot figure out how to only include distinct invoice numbers in the calculation.

For example, in the sample data there are only 2 distinct invoices. Invoice A100 has a lead time of 20 days and A101 is 13 days. So the average lead time would be 26.5 days ((20+13)/2). Any help would be very much appreciated.

Screenshot 2021-11-27 175715.png
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,141
Messages
5,835,645
Members
430,373
Latest member
swartzfeger

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
Top