https://github.com/liubomyr123/google_app_scripts
A Google Sheets add-on that allows users to easily calculate the normal distribution with a custom menu. The script validates inputs and calculates the normal distribution for given values of x, mean, standard deviation, and cumulative flag.
https://github.com/liubomyr123/google_app_scripts
formulas google-apps-scripts google-sheets google-sheets-addon javascript normal-distribution scripting statistics
Last synced: 2 months ago
JSON representation
A Google Sheets add-on that allows users to easily calculate the normal distribution with a custom menu. The script validates inputs and calculates the normal distribution for given values of x, mean, standard deviation, and cumulative flag.
- Host: GitHub
- URL: https://github.com/liubomyr123/google_app_scripts
- Owner: liubomyr123
- Created: 2024-09-03T20:53:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-26T15:35:59.000Z (4 months ago)
- Last Synced: 2025-01-26T16:29:30.491Z (4 months ago)
- Topics: formulas, google-apps-scripts, google-sheets, google-sheets-addon, javascript, normal-distribution, scripting, statistics
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Sheets Normal Distribution Calculator
This script provides a custom menu and functionality in Google Sheets to calculate the Normal Distribution using the `NORM.DIST` function. It allows users to quickly calculate the normal distribution for given values of `x`, mean, standard deviation, and cumulative distribution.
## Features
- Custom menu for quick access.
- Supports vertical and horizontal cell ranges.
- Validates input values for correct data types.
- Calculates normal distribution and displays the result in the selected cell.## How to Use
1. Open your Google Sheets document.
2. Click on the **"Каразіна"** menu that appears after the script is added.
3. Select **"Use normal distribution"** from the dropdown menu.
4. Highlight the necessary cells with values:
- **x**: The value to calculate the distribution for.
- **mean**: The mean of the distribution.
- **stdDev**: The standard deviation of the distribution.
- **cumulative**: Whether to calculate the cumulative distribution (TRUE/FALSE).
5. The result will appear in the selected cell.## Requirements
- Google Sheets (obviously).
- The script should be added via the Apps Script editor.## Example Use Case
For example, if you want to calculate the cumulative normal distribution for `x = 10`, `mean = 5`, `stdDev = 2`, and set the cumulative value to TRUE, the script will automatically populate the formula `=NORM.DIST(10, 5, 2, TRUE)` in the selected cell.