I have a large row data sheet with several dates by company, and I need to calculate at column level the leadtime (max date - min date).

Raw Data Source:

---------------------------------------------------
| Data 1 |   Date      |  
---------------------------------------------------
| name 1  |  1/1/2018   | 
---------------------------------------------------
| name 1  |  1/2/2018   | 
---------------------------------------------------
| name 2  |  1/3/2018   | 
---------------------------------------------------
| name 2  |  1/5/2018   | 
---------------------------------------------------
| name 2  |  1/1/2018   | 
---------------------------------------------------
| name 2  |  1/2/2018   | 
---------------------------------------------------
| name 2  |  1/3/2018   | 
---------------------------------------------------

Expected Query Result:

| Data 1 |   Min Date      |   Max Date  | Lead Time     
---------------------------------------------------
| name 1  |  1/1/2018   |   1/2/2018   | 30  days
---------------------------------------------------
| name 2  |  1/1/2018   |   1/3/2018     |  60 days 
---------------------------------------------------
New contributor
Vautrin_ARG is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Vautrin_ARG is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.