Saturday, November 1, 2025

Microsoft Excel - List Functions

 Working...

Introduction to Excel’s Database Functions

Excel's Database Functions work with data ranges treated like a database table.
They use field names (headers) and criteria ranges to calculate results based on conditions.

Common structure:

Function(Database, Field, Criteria)
  • Database → Entire data range including headers
  • Field → Column to calculate on (name or index)
  • Criteria → Range showing condition(s)

DSUM() — Sum Based on Criteria

Purpose: Sum values in a column that match specific condition(s).

Syntax

=DSUM(database, field, criteria)

Example

Sum Sales where Region = "East"

Criteria setup:

| Region | | East |

Formula:

=DSUM(A1:C100, "Sales", E1:E2)

Excel DSUM Function — Single Criteria (Continued)

You can use any column as a filter — e.g., Product = "Laptop".

| Product | | Laptop |

=DSUM(A1:C100, "Sales", E1:E2)

DSUM with OR Criteria

Place criteria in separate rows.

| Region |
| East |
| West |

Result = Sum where Region is East OR West

=DSUM(A1:C100, "Sales", E1:E3)

DSUM with AND Criteria

Place criteria in the same row.

| Region | Product | | East | Laptop |

Result = Sum where Region = East AND Product = Laptop

=DSUM(A1:C100, "Sales", E1:F2)

DAVERAGE() — Average Based on Criteria

Purpose: Returns average values filtered by criteria.

Syntax

=DAVERAGE(database, field, criteria)

Example: Average Salary where Department = HR.


DCOUNT() — Count Numeric Records Based on Criteria

Purpose: Count numeric cells matching criteria.

Syntax

=DCOUNT(database, field, criteria)

Use when counting numbers only.


SUBTOTAL() — Dynamic Summary Function

Purpose: Performs operations like sum, average, count — but ignores hidden or filtered rows.

Syntax

=SUBTOTAL(function_num, range)

Common function numbers

Function No.
AVERAGE 1
COUNT 2
SUM 9
MAX 4
MIN 5

Example

=SUBTOTAL(9, B2:B100)

(9 = SUM)


Key Difference: DSUM vs SUBTOTAL

Feature DSUM SUBTOTAL
Criteria based? ✅ Yes ❌ No (uses filters)
Works like database query
Good for filtered totals



Friday, October 31, 2025

OIC - Direct File Polling using File Adapter in Oracle Integration Cloud (OIC)

Overview

OIC supports direct file polling using the File / FTP / SFTP Adapter to automatically trigger an integration when a file arrives in a folder.

This pattern is used for real-time file integration without scheduling.


๐ŸŽฏ Use Case

A customer receives files (CSV/XML/TXT) in an SFTP or file server folder and needs OIC to:

  • Automatically trigger integration when file arrives
  • Filter files by name pattern
  • Read and process each file
  • Archive or delete after processing
  • Avoid scheduled polling

Important Limitation:

Dynamic directory path is NOT supported in direct polling mode.
The polling folder must be a fixed path in the adapter trigger.


๐Ÿง  Key Architecture

File Source (SFTP/Folder)
      ⬇
OIC File Adapter (Polling Trigger)
      ⬇
Integration Flow
      ⬇
Target System (ERP/HCM/DB/API/Storage)

⚙️ Adapter Properties

๐Ÿ“ Directory & File Filters

Property Purpose
Input Directory Folder to poll (must be fixed)
File Name Pattern Wildcard match (*.csv, *.xml, Invoice_*.txt)
Read Files Recursively Include subfolders
Rejection Directory For non-matching files

⏱️ Polling Behavior

Property Purpose
Polling Frequency How often OIC checks for files
Processing Delay Delay before reading (file write completion)
Maximum Files Limit files per poll cycle

๐Ÿ—ƒ️ File Handling

Property Purpose
Delete Files After Successful Read Remove file post-process
Ignore File-Not-Found on Delete Avoid errors during concurrent moves
Archive / Error Directory Folder to move processed/failed files

๐Ÿงฉ Dynamic Directory — Clarification

Capability Status
Dynamic folder for polling ❌ Not supported
Fixed directory required in trigger ✅ Yes
Dynamic directory possible in scheduled list-read flow ✅ Yes

Conclusion:

Use Direct Polling only when folder path is static.
Use Scheduled Integration + List Files when folder needs to be dynamic (lookup-based).


๐Ÿš€ Solution Steps

1️⃣ Create File / SFTP Adapter with Polling

  • Enter Base Directory (mandatory)
  • Enable Read, List, Move/Delete
  • Save credentials & security config

2️⃣ Create App-Driven Orchestration

  • Trigger → File Adapter
  • Operation → Read File in Trigger/Polling Mode
  • Configure:
    • Input Directory
    • File Pattern (Example: *.csv)
    • Archive & Error folders

3️⃣ Build Flow Logic

  • Read File → Map → Process to target
  • Add logging & validation
  • Move / Delete file after success

4️⃣ Error Handling

  • Fault-handler block
  • Move file to error folder
  • Send notification (Email/Teams/SMS)
  • Audit integration logs

Outcome

Benefit Details
Real-time automation No scheduler needed
Reliable file execution Archive/error segregation
Controlled polling Based on adapter properties
Platform aligned Follows OIC capability & constraints

๐Ÿ“Œ When to Use Which Model

Requirement Recommended
Real-time fixed folder Direct File Polling Trigger
Different folders per env Multiple connections OR deploy-wise config
Dynamic folder path needed Scheduled + List Files Action

๐Ÿ“ Key Takeaway

OIC File Adapter Direct Polling = Static Folder + Event-Style Trigger
Dynamic Directory = Only via Scheduled integration


Microsoft Excel - Working with an excel list

Understanding Excel List Structures

An Excel list (table) is a structured set of rows and columns used to store related data (like employee info, sales records).

  • Each column has a heading
  • Each row is a record
  • Helps in sorting, filtering, and analyzing data easily

Sorting a List Using Single-Level Sort

Sort based on one column only.
Steps:

  1. Click any cell in the column you want to sort
  2. Go to Data tab
  3. Choose Sort A→Z (ascending) or Z→A (descending)

Example: Sort employees by Name alphabetically.


Sorting a List Using Multi-Level Sorts

Sort based on more than one column.
Steps:

  1. Select the list
  2. Data → Sort
  3. Add first sort level (e.g., Department)
  4. Click Add Level and add second sort level (e.g., Salary)

Example: First sort by Department, then sort each department by Salary.


Using Custom Sorts in an Excel List

Use custom order instead of A-Z or numbers.
Steps:

  1. Data → Sort
  2. Choose column
  3. Under Order, select Custom List
  4. Pick preset lists (Mon, Tue, Wed…) or create your own

Example: Sort months as Jan, Feb, Mar… instead of alphabetical order.




Filter an Excel List Using the AutoFilter Tool

AutoFilter helps you quickly show only the rows that match specific criteria while hiding the rest.


Steps

  1. Select your data range (or click any cell inside your list)
  2. Go to the Data tab
  3. Click Filter (funnel icon)
    → Small drop-down arrows appear on each column header
  4. Click the drop-down arrow on the column you want to filter
  5. Choose your filter option:
    • Select / unselect values
    • Text Filters (Starts With, Contains…)
    • Number Filters (Greater Than, Between…)
    • Date Filters (This Month, Last Week…)
  6. Click OK → Only matching rows are shown

Example

Filter a sales list to show only “East Region” records.

Steps:
Data → Filter → Region column drop-down → tick East → OK


Tip

To clear filters:
Data → Clear (or remove filter icon again)




Creating Subtotals in a List in Excel

The Subtotal tool automatically inserts group totals and summaries into a sorted list.


When to Use

Use Subtotal when you need totals for each group/category in a column (e.g., total sales by region, department, or product).


Steps

  1. Sort your data by the column you want to group
    (Example: sort by Region or Department)

  2. Go to Data tab

  3. Click Subtotal

  4. Set the options:

    • At each change in: choose the column to group by
      (e.g., Region)
    • Use function: select summary function
      (Sum, Count, Average, etc.)
    • Add subtotal to: choose the column to total
      (e.g., Sales Amount)
  5. Click OK

Excel inserts subtotal rows for each group and a grand total at the bottom.


Example

To get total sales by Region:

  • Sort by Region
  • Subtotal → At each change in: Region
  • Function: Sum
  • Add subtotal to: Sales

Useful Tips

  • Expand/Collapse groups using the outline buttons (1, 2, 3) on the left
  • To remove subtotals:
    Data → SubtotalRemove All



Format a List as a Table in Excel

Purpose:
Convert your data range into a structured Excel Table for easier sorting, filtering, and formatting.


Steps

  1. Select the data range
    Highlight the list you want to convert.

  2. Go to Home tab → Styles group
    Click Format as Table.

  3. Choose a table style
    Select a design you like.

  4. Confirm the range
    Excel shows the selected range — verify it.

  5. Check “My table has headers”
    Tick this box if your list already has headings.

  6. Click OK.


Result

✅ Data becomes a Table with filters
✅ Easy sorting & formatting
✅ Table styles applied automatically
✅ Auto-expands when new data is added





Using Conditional Formatting to Find Duplicates in Excel

Purpose:
Highlight duplicate values in a range to easily identify repeated data.


Steps

  1. Select your data range
    (Example: A1:A50)

  2. Go to Home tab → Conditional Formatting

  3. Choose Highlight Cells Rules → Duplicate Values

  4. In the popup:

    • Select Duplicate
    • Choose a formatting style (e.g., Light Red Fill)
  5. Click OK


Result

✅ All duplicate values in the selected range are highlighted
✅ Very useful for data cleaning and checking repeated entries


Tip

To highlight unique values instead, choose Unique in step 4.


Removing Duplicates in Excel

Purpose:
Delete duplicate rows from data and keep only unique records.


Steps

  1. Select your data range
    (Example: A1:C100)

  2. Go to Data tab

  3. Click Remove Duplicates

  4. In the dialog box:

    • Choose the columns to check for duplicates
      (Example: Select all columns to remove fully duplicate rows)
  5. Click OK

  6. Excel shows how many duplicates were removed and how many unique values remain


Result

✅ Duplicate records removed
✅ Only unique rows stay in the sheet


Tip

If your data has headers, ensure "My data has headers" is checked in the dialog box.





Wednesday, October 29, 2025

Microsoft Excel - Working with excel templates

Working with Microsoft Excel Templates

What is a Template?
A template is a pre-designed Excel file that contains ready-made formatting, formulas, and layouts for common tasks like invoices, budgets, or reports.


How to Open an Existing Template:

  1. Open Excel → click File > New.
  2. Choose from available templates or search online.
  3. Select a template and click Create to open it.


How to Create a Custom Template:

  1. Create or format a workbook as needed.
  2. Go to File > Save As.
  3. Choose Excel Template (*.xltx) from the file type list.
  4. Save it in the Templates folder for future use.


Tip:
Next time, open Excel → File > New > Personal to reuse your custom templates.


Tuesday, October 28, 2025

Microsoft Excel - Excel Formula to Check if Data Exists Across Sheets (Missing or Present)

✅ Excel Formula to Check if Data Exists Across Sheets (Missing or Present)

๐Ÿ’ก Use Case

In integration or data-tracking scenarios, you often maintain two different sheets — for example,

  • one with a master list of interfaces, and
  • another with a subset list you want to verify.

You need to automatically check whether each interface in your current sheet exists in the master sheet, and mark it as “Present” or “Missing.”


⚙️ Formula Used

=IF(COUNTIF('OIC Interfaces'!F:F, H2) = 0, "Missing", "Present")

๐Ÿง  Formula Breakdown

Part Meaning
COUNTIF('OIC Interfaces'!F:F, H2) Counts how many times the value in cell H2 appears in column F of the sheet named ‘OIC Interfaces’.
= 0 Checks if the count is zero — meaning the value doesn’t exist in that column.
"Missing" Returned when the value is not found in the target sheet.
"Present" Returned when the value is found in the target sheet.
IF(...) Combines the logic to display either “Missing” or “Present.”

๐Ÿชœ Step-by-Step Solution

  1. Identify your reference sheet – for example, 'OIC Interfaces' is your master list of integrations.
  2. Choose the lookup column – here, column F in 'OIC Interfaces' contains the unique identifiers or interface names.
  3. Write the formula in your working sheet – in cell N2, enter the formula to check if H2 exists in the master list.
  4. Copy down the formula – Excel will automatically check all rows and mark each as “Present” or “Missing.”

๐Ÿงฉ Example

Sheet 1: Working Sheet

H (Interface Name) Result
ERP_GL_Extract (Formula result)
EPM_SFTP_Load (Formula result)

Sheet 2: OIC Interfaces

F (Interface Name)
EPM_SFTP_Load
HCM_Payroll_Extract

Now when you use the formula:

=IF(COUNTIF('OIC Interfaces'!F:F, H2)=0,"Missing","Present")

✅ For ERP_GL_Extract, Excel shows “Missing”
✅ For EPM_SFTP_Load, Excel shows “Present”


๐Ÿ Final Takeaway

This simple IF + COUNTIF combination is one of the most practical Excel tricks for:

  • Validating data consistency across multiple sheets
  • Checking missing records between reports
  • Comparing lists during integrations or reconciliations

It’s lightweight, dynamic, and works perfectly for ERP, OIC, or data validation reports.


Microsoft Excel - VLOOKUP Use Case

๐Ÿ”  Excel VLOOKUP Use Case - Fetching Data Across Sheets

๐Ÿ“˜ Use Case

You have data stored in multiple sheets — for example, integration details in one sheet (FileBasedIntegrations_SFTPMAIL) and a list of integration names in another.
You want Excel to automatically fetch matching details (like mail ID, file path, or status) based on the integration name.


๐Ÿ’ก Formula Used

=VLOOKUP(F2, FileBasedIntegrations_SFTPMAIL!A:J, 9, 0)

⚙️ Step-by-Step Explanation

Step Meaning
Step 1: Identify lookup value (F2) This is the value Excel will search for — located in cell F2 (for example, the Integration Name).
Step 2: Define table array (FileBasedIntegrations_SFTPMAIL!A:J) This is the range where Excel will search. Here, it looks in column A of the sheet FileBasedIntegrations_SFTPMAIL and can return data from columns A through J.
Step 3: Set column index number (9) Excel will return the value from the 9th column in the specified range, corresponding to the row where the lookup value was found.
Step 4: Specify match type (0) The 0 (or FALSE) means exact match — Excel will only return a result if it finds an exact match for the lookup value in column A.

๐Ÿงฉ Example

Let’s say you have a lookup setup like this:

Sheet 1 (Main Sheet):

Integration Name Details
PAYROLL_EXTRACT (Formula here)

Sheet 2 (FileBasedIntegrations_SFTPMAIL):

A (Integration Name) ... I (SFTP Mail ID)
PAYROLL_EXTRACT ... hr_sftp@company.com
FINANCE_REPORT ... finance_sftp@company.com

Now, when you enter this formula in Sheet 1:

=VLOOKUP(F2, FileBasedIntegrations_SFTPMAIL!A:J, 9, 0)

If F2 contains PAYROLL_EXTRACT, Excel searches column A in FileBasedIntegrations_SFTPMAIL, finds the matching row, and returns the value from column 9 — here, hr_sftp@company.com.


✅ Solution Summary

  • VLOOKUP connects data across sheets using a shared key (like an ID or name).
  • It saves time, reduces manual searching, and maintains consistency in large Excel reports.
  • Ideal for ERP, HR, and Integration tracking spreadsheets where details are stored in separate tables.


Monday, October 27, 2025

Microsoft Excel - Printing an excel worksheet

 Working...

Viewing Your Document in Print Preview (Excel / Word)

Here’s a short guide ๐Ÿ‘‡

๐ŸชŸ In Microsoft Excel or Word:

  1. Click the File tab.
  2. Choose Print from the left menu.
  3. The right side of the screen shows the Print Preview of your document.

๐Ÿ–ฑ️ Shortcut:

  • Press Ctrl + F2 to open Print Preview directly.

๐Ÿ’ก Use it to:

  • Check page layout, margins, headers/footers, and alignment before printing.
  • Make sure your document fits properly on the page.

Changing the Margins, Scaling, and Orientation in Excel (or Word)

๐Ÿงพ 1. Open Print Preview

  • Go to File → Print
    (or press Ctrl + F2)

๐Ÿ“ 2. Change Margins

  • Click Margins drop-down (below Settings).
  • Choose:
    • Normal – default margin
    • Wide – larger space around content
    • Narrow – fits more data on a page
  • Or select Custom Margins to set your own.

↕️ 3. Change Orientation

  • Click Orientation drop-down.
  • Choose:
    • Portrait (vertical)
    • Landscape (horizontal)

๐Ÿ“ 4. Change Scaling

  • Click Scaling (or No Scaling option).
  • Choose:
    • Fit Sheet on One Page
    • Fit All Columns on One Page
    • Fit All Rows on One Page
    • Or set Custom Scaling Options for exact fit.

Tip:
Use Page Layout → Page Setup group for the same options without opening Print Preview.


Working with Page Layout View in Excel ๐Ÿ“„

๐Ÿ”น What It Does

Page Layout View lets you see how your worksheet will look when printed — including margins, headers, footers, and page breaks.


๐Ÿงญ How to Open

  1. Go to the View tab.
  2. In the Workbook Views group, click Page Layout View.
    (Or click the Page Layout icon at the bottom-right of the Excel window.)

⚙️ What You Can Do in This View

  • See how data fits on each page.
  • Add or edit headers and footers directly.
  • Adjust margins by dragging the margin lines.
  • Change page orientation (Portrait/Landscape).
  • Insert page breaks visually.
  • View gridlines, titles, and backgrounds as they’ll appear when printed.

๐Ÿช„ Tip:

Switch back anytime with:

  • Normal View – for regular editing.
  • Page Break Preview – to adjust page breaks only.

Adding Header and Footer Content in Excel ๐Ÿงพ

๐Ÿ“ What It Does

Headers and footers appear at the top and bottom of every printed page — useful for titles, dates, or page numbers.


๐Ÿงญ How to Add a Header or Footer

  1. Go to the Insert tab.
  2. Click Text → Header & Footer.
    Excel switches to Page Layout View automatically.
  3. Click inside the Header or Footer area.
  4. Type your text or use the Header & Footer Elements tab to insert:
    • ๐Ÿ“… Date
    • Time
    • ๐Ÿ“„ Page Number
    • ๐Ÿ“Š Sheet Name
    • ๐Ÿ“ File Path or File Name

๐Ÿงฉ Quick Shortcuts

  • &[Date] → Inserts current date
  • &[Page] → Inserts page number
  • &[File] → Inserts file name

๐Ÿ”„ Exit Header/Footer Mode

Click anywhere outside the header or footer area or switch back to Normal View (View tab → Normal).


Printing a Specific Range of Cells in Excel ๐Ÿ–จ️

๐Ÿ“ To Print Only Selected Cells:

  1. Select the range of cells you want to print.
  2. Go to the Page Layout tab → Print AreaSet Print Area.
    • Excel marks this selection as the printable area.
  3. To check it: Go to File → Print (or press Ctrl + F2)
    → You’ll see only that selected range in Print Preview.

๐Ÿงญ To Clear or Change the Print Area:

  • Page Layout → Print Area → Clear Print Area
    (then you can set a new one).

๐Ÿ’ก Tip:

If you often print the same range, save the file — Excel remembers the print area for next time.



Featured Post

Microsoft Excel - List Functions

 Working... Introduction to Excel’s Database Functions Excel's Database Functions work with data ranges treated like a database table ...