Trying to use average formula of the DURATION with multiple criterias in the same sheet
I want to check a Lead time AVR for on the Duration Collum for only specific STATUS :Pending Marsh, Pending Lockton, Pending Lockton and Marsh and Pending LL
I tried below formulas but are not working at all.
=AVERAGEIF([Status]:[Status], OR([Status]@row = "Pending LL", [Status]@row = "Pending Lockton and Marsh", [Status]@row = "Pending Lockton", [Status]@row = "Pending Marsh"), [Duration]:[Duration])
=AVG(COLLECT({Sephora - COI Tracking Range 3}, {Sephora - COI Tracking Range 2},"Pending Marsh", {Sephora - COI Tracking Range 2},"Pending LL")))
Best Answer
-
Your first AVERAGEIF should work if you replace each Status@row with @cell.
To use the AVG/COLLECT with cross sheet references, you would definitely need to use the OR function there as well.
=AVG(COLLECT({Range To Average}, {Criteria Range}, OR(@cell = "This", @cell = "That", @cell = "Somethign else")))
Answers
-
Hey @Gabriel Morau
I would try this formula.
=AVERAGE(COLLECT([Duration]:[Duration], [Status]:[Status], OR(@cell = "Pending LL", @cell = "Pending Lockton", @cell = "Pending Lockton and Marsh", @cell = "Pending Marsh")))
This formula collects the values from the Duration column where the Status matches one of the specified criteria and then calculates the average. If you still run into issues, check that the Status column contains exact text matches and that your Duration column uses numerical values (not text).Let me know if that helps!
-
Your first AVERAGEIF should work if you replace each Status@row with @cell.
To use the AVG/COLLECT with cross sheet references, you would definitely need to use the OR function there as well.
=AVG(COLLECT({Range To Average}, {Criteria Range}, OR(@cell = "This", @cell = "That", @cell = "Somethign else")))
-
@Paul Newcome And @Christian Thanks! it worked very well
-
Happy to help. 👍️
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives