Advanced Spreadsheet
Advanced Spreadsheet
excel
Copy
=IF(OR(ISBLANK(A2), ISBLANK(B2), ISBLANK(C2)), "Invalid Input", IF(C2>10%,
A2*B2*(1-C2), A2*B2))
excel
Copy
=IF(AND(A2>=50, B2>=50), "Pass", "Fail")
2. Lookup Functions
excel
Copy
=VLOOKUP(12345, A:B, 2, FALSE)
excel
Copy
=INDEX(B:B, MATCH("P9876", A:A, 0))
excel
Copy
=LEFT(A2, FIND(" ", A2)-1)
excel
Copy
=CONCATENATE(A1, " ", B1)
Rows: Product
Columns: Sales Region
Values: Sum of Sales Amount
Q2: Create a pivot chart (e.g., clustered column chart) from the pivot table.
Q1: Use a named range or convert your data to a Table (Insert > Table) for dynamic charts.
3. Conditional Formatting
Conditional Formatting > New Rule > "Format only cells that are above average" >
Green fill.
Q2: Highlight salaries > 80000:
Conditional Formatting > "Cell Value > 80000" > Red fill.
4. Data Validation
Data > Data Validation > List: North, South, East, West
5. What-If Analysis
1. Select headers
2. Bold
3. Set font size 12
4. Fill color: Yellow
vba
Copy
Function SumRange(rng As Range) As Double
SumRange = Application.WorksheetFunction.Sum(rng)
End Function
2. Record & Edit Macros
vba
Copy
Sub InsertDate()
Range("A1").Value = Date
End Sub
vba
Copy
Sub FormatDate()
Range("A1").Value = Date
Range("A1").Font.Color = RGB(0, 0, 255)
Range("A1").Borders.LineStyle = xlContinuous
End Sub
vba
Copy
Function TriangleArea(base As Double, height As Double) As Double
TriangleArea = 0.5 * base * height
End Function
4. Data Import/Export
Q1:
Q2: