Skip to main content

Microsoft Excel top functions.

 

Microsoft Excel offers numerous functions to simplify data analysis and calculation. Here are some of the most commonly used and powerful functions:

Basic Functions

SUM: Adds values.

=SUM(A1:A10)

AVERAGE: Calculates the mean of numbers.

=AVERAGE(A1:A10)

IF: Performs logical tests and returns values based on conditions.

=IF(A1>10, "Yes", "No")

COUNT: Counts numeric values in a range.

=COUNT(A1:A10)

LEN: Returns the length of a text string.

=LEN(A1)

Lookup and Reference Functions

VLOOKUP: Looks for a value in the first column and returns a value in the same row from another column.

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

HLOOKUP: Similar to


Here are practical examples of common Excel functions and how they can be applied in real-life scenarios:


1. SUM

Scenario: Calculate the total sales for a week.
Example:

A B
Day Sales
Monday 200
Tuesday 150
Wednesday 300
Thursday 250
Friday 100
Total =SUM(B2:B6) (Result: 1000)

2. AVERAGE

Scenario: Find the average score of a student.
Example:

A B
Subject Score
Math 80
Science 90
History 85
Average =AVERAGE(B2:B4) (Result: 85)

3. IF

Scenario: Determine pass/fail based on a score.
Example:

A B C
Name Score Result
John 75 =IF(B2>=50, "Pass", "Fail") (Result: Pass)
Sarah 45 Fail

4. VLOOKUP

Scenario: Find the price of a product from a table.
Example:

A B
Product Price
Apple 2.00
Banana 1.50
Orange 1.75
Formula: =VLOOKUP("Banana", A2:B4, 2, FALSE) (Result: 1.50)

5. CONCATENATE (or CONCAT)

Scenario: Combine first and last names into a full name.
Example:

A B C
First Name Last Name Full Name
John Doe =A2 & " " & B2 (Result: John Doe)

6. COUNT

Scenario: Count the number of entries in a list.
Example:

A
Apples
Oranges
Bananas
Formula: =COUNT(A1:A3) (Result: 3)

7. LEFT/RIGHT

Scenario: Extract area code from a phone number.
Example:

A B
Phone Number Area Code
123-456-7890 =LEFT(A2, 3) (Result: 123)

8. LEN

Scenario: Count characters in a text string.
Example:

A B
Hello, Excel! =LEN(A2) (Result: 12)



























These examples can be directly adapted to real-world problems, enhancing productivity and efficiency in Excel.

Comments

Popular posts from this blog

Creating a Student Marksheet using Microsoft Excel.

 Creating a Student Marksheet using Microsoft Excel.  Creating a student marks sheet in MS Excel is straightforward. Here's a step-by-step guide to design one: Step 1: Open MS Excel Launch MS Excel and open a new workbook. Step 2: Structure the Sheet Header Section: Use the first few rows to include the title, such as "Student Marks Sheet" and relevant details like the class, semester, or term. Column Headings: In Row 5 (or below the title), define your column headers: Column A: Roll Number Column B: Student Name Column C onward: Subjects (e.g., Mathematics, Science, English, etc.) Final Columns: Include Total Marks , Percentage , and Grade . Example: Roll No.Student Name Mathematics Science English Total Marks Percentage Grade Step 3: Input Data Enter the roll numbers, student names, and their marks under respective columns. Step 4: Add Formulas Total Marks: In the "Total Marks" column, use the formula to sum marks: =SUM(C2:E2) Copy this ...

Backup one folder to another location

 You can create a simple batch file (.bat) to back up a folder automatically in Windows. Here’s a step-by-step example: 🔹 Example: Backup one folder to another location @echo off set source="C:\MyData" set destination="D:\Backup\MyData_%date:~-4%-%date:~7,2%-%date:~4,2%" echo Backing up from %source% to %destination% xcopy %source% %destination% /E /H /C /I /Y echo Backup completed! pause 🔹 Explanation: set source= → Source folder you want to back up. set destination= → Destination folder where backup will be stored. %date:~-4%-%date:~7,2%-%date:~4,2% adds today’s date in YYYY-MM-DD format to the folder name (so each backup is stored separately). xcopy options: /E → Copy all subdirectories (including empty ones). /H → Copy hidden + system files. /C → Continue even if errors occur. /I → Assume destination is a folder. /Y → Suppress overwrite prompts. 🔹 Usage: Open Notepad . Paste the code above. Save it...

How to create a simple Shopping App with PHP AJAX MYSQL?

  Below is the complete code for the PHP, MySQL, and AJAX-based shopping cart application with features like adding products to the cart, updating cart quantities, and checkout with Cash on Delivery (COD). This includes all the necessary files and steps to set up the application. --- 1. Database Setup Run the following SQL queries to create the database and tables: ```sql CREATE DATABASE shopping_cart; USE shopping_cart; -- Products table CREATE TABLE products (     id INT AUTO_INCREMENT PRIMARY KEY,     name VARCHAR(255) NOT NULL,     price DECIMAL(10, 2) NOT NULL,     description TEXT,     image VARCHAR(255) ); -- Orders table CREATE TABLE orders (     id INT AUTO_INCREMENT PRIMARY KEY,     customer_name VARCHAR(255) NOT NULL,     customer_email VARCHAR(255) NOT NULL,     customer_address TEXT NOT NULL,     total_amount DECIMAL(10, 2) NOT NULL,     status ENUM('pending', ...