Overview
Cross-sheet calculations allow you to:- Match data between sheets using identifiers (like IDs or keys)
- Look up values from one sheet to use in calculations on another
- Convert values using multipliers or factors stored in a separate sheet
- Transform data formats (e.g., converting monthly amounts to annual)
Example: Converting budget amounts to annual values
A common use case is converting budget amounts to annual values based on payroll frequency. For example:- You have a Budgets sheet with budget amounts and payroll IDs
- You have a Payroll sheet with payroll IDs and their corresponding frequencies
- You need to multiply each budget amount by its payroll frequency to get the annual amount
- Convert the payroll frequencies to numeric multipliers
- Match payroll IDs across sheets and multiply amounts by frequencies
Step 1: Convert frequencies to multipliers
First, you’ll need to convert text-based frequencies (like “Weekly”, “Bi-weekly”, “Monthly”) to numeric multipliers (52, 26, 12, etc.).- Open your Payroll sheet
- Select the frequency column
- Use Vern’s data transformation to convert frequencies to numbers
- Provide examples like
52,26,12to help Vern understand the pattern
- Provide examples like
- Vern will convert all frequencies to their numeric multiplier values
Step 2: Match IDs and multiply values
After converting frequencies to multipliers, you can calculate annual amounts by matching payroll IDs across sheets:- Open your Budgets sheet
- Describe what you want in natural language, mentioning the relevant columns with the
@symbol:- For example: “Multiply @Amount by the payroll frequency from the Payroll sheet where the payroll ID matches @PayrollID”
- Vern will automatically calculate the annual amount for each budget entry
How it works
Simply describe what you want in natural language and reference columns using the@ symbol:
- Column references: Use
@ColumnNameto reference columns in your calculations - Natural language matching: Describe how to match data across sheets (e.g., “where the payroll ID matches @PayrollID”)
- Natural language calculations: Describe the math operations you want (e.g., “multiply @Amount by the frequency”)
Common use cases
Cross-sheet calculations are useful for:- Currency conversions: Converting amounts using exchange rates stored in a separate sheet
- Unit conversions: Converting measurements using conversion factors
- Cost calculations: Calculating total costs using price tables and quantity data
- Data normalization: Standardizing values based on lookup tables
- Conditional calculations: Performing calculations based on category or type mappings
Best practices
- Use consistent identifiers: Ensure IDs or keys used for matching are formatted consistently across sheets
- Provide examples: When converting text to numbers, give Vern clear examples to help it understand the pattern
- Verify results: Check a few calculated values manually to ensure the matching and calculations are working correctly
- Keep lookup tables updated: Make sure reference data (like payroll frequencies) stays current