Preparing your workbook

A workbook works with Workbookery when it has named cells: one name for each answer that goes in, and one for each result that comes out. Everything else in the workbook can stay the way you built it.

The short version

  • Save as Excel Workbook (.xlsx). Other file types are refused.
  • Give each input cell and each result cell its own name. Each name points at one cell.
  • Input cells hold a plain value, not a formula.
  • Result cells hold a formula.
  • No macros, no links to other files, no password.
  • Keep it small. The default upload limit is 5 MB.

Named cells

Workbookery connects form fields to named ranges, not to cell addresses like B3. A name keeps working when you add rows or move things around.

To name a cell in Excel:

  1. Click the cell.
  2. Type the name in the Name Box, left of the formula bar.
  3. Press Enter.

To check or fix names, open Formulas > Name Manager in Excel.

Rules:

  • One name, one cell. A name that covers several cells shows on the Named ranges tab, but it can’t be connected. You see: “This named range is not a single cell. Only single cells can be connected in this version.”
  • Inputs are plain cells. A cell with a formula can’t receive answers. You see: “This named range can’t receive form values.”
  • Results come from formulas. Name the cell that holds the final formula.
  • Use clear names, like input_price or output_total. If a name exactly matches a field’s Admin Field Label (same capitals), Suggest matches fills that row for you.
  • Names Excel makes for itself (for print areas and add-ins) are hidden. They can’t be used as inputs. Use Show system names on the Named ranges tab to see them.

After you upload, the Named ranges tab shows each name, its sheet, and whether it Can receive form values or Can send results.

Numbers and text

The workbook gets each answer as a number, a date, or text. Which one depends on the field.

Field What the cell gets
Number A number. Read with the field’s Number Format setting (9,999.99, 9.999,99 or currency).
Hidden Text or a number. You choose with Treat as on the connection.
Drop Down, Radio Buttons The choice value, as text.
Multiple Choice, Checkboxes, Multi Select The choice values, as text. Several picks go in one cell, like Red, Blue.
Date A real Excel date.
Time A real Excel time. 6:00 pm arrives as 0.75.
Single Line Text, Paragraph Text, Email, Phone, Name parts, Address Text.

Good to know:

  • Choice values are text. A choice of 007 arrives as the text 007. If your formula needs a number, wrap the cell in VALUE(), like =VALUE(A1). A choice that isn’t a number gives #VALUE!.
  • Percent: for each percent input, you pick whether 25 means 25% or 0.25.
  • Spaces, tabs and line breaks at the very start and end are removed. This includes non-breaking spaces, which often come along when text is pasted from a web page. Spaces inside the answer stay. If a formula counts characters (like LEN), the result may change.
  • A blank answer clears the cell. A formula like =A1 on a blank cell gives 0, the same as in Excel.
  • Visitor text is never treated as a formula. An answer like =1+1 arrives as plain text.
  • An answer that looks like an Excel error (like #N/A or #DIV/0!) is refused. The visitor sees “Enter a valid value.”
  • Saved results are rounded the way the field says. The workbook itself keeps full precision.
  • Result fields receive raw values. Workbookery sends the calculated number or date itself, without the Excel cell’s number style. Currency, percent and date results therefore arrive unstyled. Style them in Gravity Forms: for a Number field, use the field’s currency setting, or apply a style with a Gravity Forms calculation or merge tag. A downloaded workbook still keeps every style from your original file. Downloaded workbooks recalculate when opened in Excel. Some preview apps that don’t recalculate may show blank outputs.
  • If a mapped Number field’s number style changes (for example from number to currency or percent), Workbookery warns and follows the live style instead of refusing the whole form. Save the connection so the saved row matches the live style.

Dates and times

  • A Date field sends a real Excel date, so date math works.
  • All 7 Gravity Forms date styles work. A field with no style is read as mm/dd/yyyy.
  • A date typed as year-month-day (like 1979-12-31) into a month-first or day-first field is refused.
  • TODAY() and NOW() use your WordPress site’s time zone, not the server’s.

Functions

Workbookery supports most common Excel functions: math, text, logic, lookups and dates.

When you upload, Workbookery checks every formula. The Checks tab names any function it can’t use, with this note: “Results that depend on this will show an error, not a guess.” You never get a made-up answer.

These are blocked: WEBSERVICE, INFO, CELL, FILTERXML, RTD and ENCODEURL.

These give an error instead of a result:

  • Circular references (a formula that depends on itself).
  • INDIRECT, and some OFFSET patterns, such as OFFSET inside OFFSET, or a name built with OFFSET.
  • Some array formulas and spill references (like A1#).

Tip: Open Excel comparison on the workbook. It compares the values saved in your file with the values Workbookery calculates. A difference doesn’t block anything. It only tells you to check that result.

What happens with Excel errors

If a result comes back as an Excel error, like #DIV/0! or #N/A:

  • The visitor sees: “This form could not be calculated. Please contact the site owner and give them this reference. (Ref: …)”
  • An administrator who submits the form sees which result failed and why, like “The workbook tried to divide by zero.”
  • The reference also shows on Workbookery → Tools & Logs.

To avoid this, catch errors in the workbook. For example, wrap a formula in IFERROR().

Size

Limits apply to every workbook. Administrators can raise most of them on Workbookery → Settings, up to a fixed maximum.

Limit Default Maximum
File size 5 MB 20 MB
Size once unpacked 100 MB 150 MB
Sheets 30 100
Formula cells 20,000 50,000
Named ranges 1,000 5,000
Cells with data 100,000 500,000
Calculation time 5 seconds 5 seconds

The cell limit can be lower on hosts with little memory. The System check says so. The Add Workbook screen shows the limits for your site.

The documented minimum is 128 MB of PHP memory, set on PHP memory_limit, WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT. Front-end submissions use WP_MEMORY_LIMIT, not WordPress’s admin raise. Large, formula-heavy workbooks may need more. If the server actually runs out of memory during a calculation, visitors see a short message with a reference number and the failure is logged in Tools & Logs, instead of a blank page. See Quick start for a wp-config.php example.

In 1.0.4.2, calculations use less memory — peak memory fell about 36% (33 vs 52 MiB) on a real production workbook — and run a little faster.

Each successful calculation also stores how long it took, in seconds, as entry meta named gfxl_calc_seconds. It is written only for a successful submission, including an entry created through the API, and never when staff recalculate an entry. It holds no cell values. It is not in the Gravity Forms entry CSV export or the entry list, but you can read it through the Gravity Forms REST API or GFAPI if you can already view that entry.

Lean copy. A workbook over 600 KB (the default Lean copy limit) gets a lean copy. The lean copy keeps your formulas, values, names, choice lists and number styles, but drops cell styles, pictures, charts and comments. Calculations use the lean copy. Your original file is kept.

If your file is refused for size, the message says what’s large and gives one fix. Common fixes:

  • Delete empty rows and columns. Press Ctrl+End to see where the data really ends.
  • Clear styles on rows and columns you don’t use (Home > Clear > Clear Formats).
  • Delete or compress pictures.
  • Copy only the cells you need into a new workbook.
  • Lots of rows of data? The Data Tables add-on (sold separately) can hold them outside the workbook.

Which fields can be used

Inputs (form answers sent to the workbook):

  • Number
  • Single Line Text
  • Paragraph Text
  • Email
  • Phone
  • Hidden
  • Drop Down
  • Radio Buttons, including Other
  • Multiple Choice, in all four Selection modes
  • Checkboxes and Multi Select (one cell, choices joined with a comma and a space). If a Checkboxes field has Other, the typed Other text is not sent.
  • Date and Time
  • Quantity, when it holds one number
  • Name: each part on its own (First, Last and so on), or the whole field when it’s a simple one-box Name
  • Address (one cell, the parts joined with a comma and a space)
  • List, row by row into numbered cells like Item_1, Item_2

Outputs (fields that can get results):

  • Number
  • Single Line Text
  • Paragraph Text
  • Hidden

Required fields, Number fields with a Gravity Forms calculation, and Product and Total fields can’t get results.

Website can’t send answers to the workbook. It can only be a Data Tables lookup source.

Data Tables lookups (fields a lookup can use to find a row; needs the Data Tables add-on):

  • Single Line Text, Paragraph Text, Number, Hidden
  • Drop Down, Radio Buttons
  • Date
  • Email, Phone, Website
  • Visible parts of a Name or Address field (each part on its own, not the whole field)

Not offered: hidden Name and Address parts, Checkboxes, Multi Select, Multiple Choice, Time, Quantity, Product and Total.

Before you upload: checklist

  • [ ] Saved as .xlsx
  • [ ] Every input and result has its own name, pointing at one cell
  • [ ] Input cells hold plain values, not formulas
  • [ ] No macros, no links to other files, no password
  • [ ] Formulas that could fail are wrapped in IFERROR()
  • [ ] The file is under your upload limit (5 MB unless you raised it)

Workbookery is not affiliated with Gravity Forms or Microsoft. Descriptive mentions of Gravity Forms and Excel .xlsx workbooks refer to compatible products.