Returns a weighted average (the mean, where each value is weighted by its relative importance)
Синтаксис
AVGW(range, range_weight)
- диапазон—The group of numbers to average
- range_weight—A corresponding group of numbers that represent the number of times you want each value counted
Пример использования
AVGW(Cost1:Cost5; Quantity1:Quantity5)
Примеры
Формула | Описание | Результат |
---|---|---|
AVGW([10, 20, 30], [1, 2, 3]) | Calculates the weighted average of 10, 20, and 30 with weights 1, 2, and 3 respectively. | 23.33 |
AVGW([100, 200, 300], [3, 2, 1]) | Finds the weighted average of 100, 200, and 300, where the numbers are weighted inversely to their size. | 166.67 |
AVGW([4.5, 3.2, 7.8], [10, 5, 2]) | Calculates the weighted average of decimal numbers with corresponding weights. | 4.91 |
AVGW([50, 75, 25], [0.5, 0.3, 0.2]) | Computes the weighted average using fractional weights for the numbers. | 52.75 |
Остались вопросы?
Use the Formula Handbook template to find more support resources and view 100+ formulas. Используйте наш шаблон "Руководство по работе с формулами", чтобы просмотреть дополнительные ресурсы и изучить более 100 формул. Руководство содержит глоссарий, описывающий каждую функцию, обращение с которой вы сможете отработать на практике, и примеры как часто используемых, так и более сложных функций.
Изучить примеры того, как эту функцию применяют другие пользователи Smartsheet, или задать интересующий вопрос можно в Сообществе Smartsheet.