Average Lead Time Formula

bobgrand

Active Member
Joined
Apr 14, 2008
Messages
252
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have an inventory list along with the lead time of each item. Can someone help me with a formula to get the 1 average lead time number for all items for each vendor.

VENDOR A has 330 items - Average Lead Time for Vendor A 5.65
VENDOR B has 693 items - Average Lead Time for Vendor B 3.54

Any help is greatly appreciated

Bob
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If I’m understanding, you’re asking for an average of averages? In which case you want to look at geometric mean. There are online calculators or Wikipedia has a decent explanation.
 
Last edited:
Upvote 0
Thanks Doc.

That was an interesting read. I used the formula in excel and it does seem to give a better number. Is there a way to subtotal the GEOMEAN when filtering down to specific vendors?
 
Upvote 0
Honestly, I don’t know for sure; you’d want a function for SUBPRODUCT (similar to SUBTOTAL) but I don’t see it off hand
 
Upvote 0
I did have one additional thought about your second question. Have you thought of using SUMPRODUCT to isolate results for specific vendors? No really a pro in that area, so would recommend starting a separate thread if the Google fails you.
 
Upvote 0
Just an example - to get GEOMEAN from only visible cells in say B2:B9 this array formula should work.

=GEOMEAN(IF(SUBTOTAL(3,OFFSET(B2:B9,ROW(B2:B9)-ROW(A2),0,1)),B2:B9))
confirmed with Ctrl+Shift+Enter, not just Enter

Hope this helps

M.
 
Upvote 0
A more robust formula - works with rows hidden manually or by filtering.

=GEOMEAN(IF(SUBTOTAL(103,OFFSET(B2:B9,ROW(B2:B9)-ROW(A2),0,1)),B2:B9))
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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