Variable formulas
Insert variable formulas
You can do the following to insert a variable into the cells of a custom Excel workpaper.
- From the Workpapers Dashboard, open the workpaper in Microsoft Excel.
- Select the cell you want to insert the variable in.
- In Excel, go to the Workpapers CS add-in ribbon and selectInsert Formula.
- Go to the Variable Type section and chooseTextorAmount.
- In the Formula grid:
- If it's a Text variable, select theSource,Name, andType.
- If it's an Amount variable, select theSource,Name,Type, andOperator.
- If it's an Amount variable, define the amount type, period, year, and segment that applies to the entire formula.
Additional information
- You can selectFormat Variableson the Workpapers CS add-in ribbon to format amounts in the workpaper.FormatOptionsExampleNegative signLeading, Leading in red, None, Parentheses, Parentheses in red, Trailing, or Trailing in red-$100.00, -$100.00, $100.00, ($100.00), ($100.00), $100.00-, $100.00-Zero amountsBlank, Dash, or 0<blank>, - , 0Decimal places0, 1, 2, 3, or 4$100, $100.2, $100.21, $100.210, $100.2100Dollar percentNone, Dollar $, or Percent %<blank>, $100.00, 100%noteFormat changes are applied to new variables only and not to existing ones. (For example, if decimal precision is set to 4 and a new variable is inserted, and then the decimal precision is reset to 2, the 4 is retained for the variable that already exists, and a decimal precision of 2 is applied to all subsequent variables.)
- Amount variables show debits as positive amounts and credits as negative amounts regardless of the classification code that is assigned to the account.
- If you insert a Text variable and you've selectedEngagement Propertiesas the source andDatein the Name column, you can chooseFormat Variableson the add-in ribbon to select a specified date format.FormatOptionsDateDecember 31, XXXXDecember 31DecemberDec 31, XXXXDec 31Dec12/31/XXXX12/31/XX
- The contents of the dropdowns in the Formula section of the Insert Variable screen are based on the variable type you selected.Variable typeSourceNameTypeAmount<Account Grouping names>AccountAccount ClassificationCustom fieldLeadsheet ScheduleNet Income calculationTax code<Based on Source selection>BalanceCreditDebitText<Account Grouping names>AccountTax codeCustom fieldDateFirm propertiesClient properties*Engagement propertiesWorkpaper properties<Based on Source selection>Account numberDescriptionCode
- When you create a Text variable that transfers from *Engagement Properties (Source) and Period End Date (Name), you can specify a period and year for the variable in the Amount Definition section of the Insert Variable window.
- The contents of the dropdowns in the Amount Definition section apply to the entire formula.Amount typePeriodYearBeginning Balance[CP] Current PeriodC Current YearTransactions[CY] Current YTD1P - Prior YearUnadjusted[CT] Current Year Total2P - 2 prior years agoAdjusted[CZ] Current Year Cumulative-Report[C1]-[C12] Period 1-12-Tax--Other--Adjusting JE--Reclassifying JE--Tax Adjustment JE--Other JE--Potential JE--Budget--Adjusted Budget--Budget 3--Budget 4--Budget 5--
- To edit a period for multiple cells in a custom Excel workpaper that is open from Accounting CS, selectPropertiesfrom the Workpapers CS add-in ribbon and make the changes for the selected cell.
Insert inline variables
There are some cases where you might want to insert a single date variable or multiple date variables in the middle of a paragraph of text. Use these 2 examples to insert date variables inside a paragraph:
note
The CONCATENATE function that was available in Engagement CS is not compatible with Workpapers CS.
Example 1: Insert a single inline date variable.
If you need 1 date inserted into a cell with text, you can copy and paste the following formula into your workpaper and make the necessary modifications:
- Change the period or date format.
- Replace theYour text herewith your own text.
- Include the quotation marks.
="Your text here"&TEXT(WPCSText("EP<Period End Date'Description><Text'Unadjusted'CP'C'>"),"MMMM DD, YYYY")
This variable produces the following text when you print or preview the report.
- "Your text here December 31, 20XX"(where XX is the current year)
Example 2: Insert multiple inline date variables.
If you need multiple dates inserted into a cell with text, you can copy and paste the following formula into your workpaper and make the necessary modifications:
- Change the period or date format.
- Replace theYour text herewith your own text.
- Include the quotation marks.
="Your text here"&TEXT(WPCSText("EP<Period End Date'Description><Text'Unadjusted'CY'C'>"),"MMMM DD, YYYY") &"and"&TEXT(WPCSText("EP<Period End Date'Description><Text'Unadjusted'CY'1P'>"),"YYYY")
This variable produces the following text when you print or preview the report.
- "Your text here December 31, 20XX and 20YY"(where XX is the current year and YY is the prior year.)