Sheet Clinic

Opened an Excel file in Google Sheets: what breaks and the fixes

An .xlsx in Google Sheets shows #ERROR! where formulas link to another workbook. Keep that value in the sheet and check CELL, data bars and the pivot.

Sheet Clinic editorsPublished
G2=E2*[1]Rates!$B$2

Before straight from the .xlsx

AEG
1RepSalesCommission
2Dana$300.00#ERROR!
3Marcus$540.00#ERROR!
4Luis$336.00#ERROR!
5Aisha$375.00#ERROR!
6Priya$396.00#ERROR!
7Tom$360.00#ERROR!
8Ken$210.00#ERROR!
9Rachel$450.00#ERROR!
10$2,967.00#ERROR!

What changed

  1. Rate 0.05 typed in I2
  2. One ARRAYFORMULA in G2

After rate kept in this sheet

AEG
1RepSalesCommission
2Dana$300.00$15.00
3Marcus$540.00$27.00
4Luis$336.00$16.80
5Aisha$375.00$18.75
6Priya$396.00$19.80
7Tom$360.00$18.00
8Ken$210.00$10.50
9Rachel$450.00$22.50
10$2,967.00$148.35
Figure 1. Columns A, E and G of the imported Orders tab. Sales came through, Commission did not.

Straight out of the import, the Commission column of this Excel workbook showed #ERROR! in all nine cells, and the error box said only Formula parse error. Those formulas read a rate from a second workbook, and Sheets cannot read a link between Excel files. On the Fixed tab the rate sits in the sheet instead. With the old formulas in G2:G9 cleared, 0.05 typed into I2 and =ARRAYFORMULA(E2:E9*I2) entered in G2, the column came back with $15.00 for Dana, $22.50 for Rachel and a total of $148.35.

Three more repairs sit on the same tab. CELL("sheet") replaces CELL("filename") for the tab name, one SPARKLINE formula per row stands in for the lost data bars, and a QUERY formula rebuilds the pivot summary (Insert, then Pivot table, is the other way). One loss was not repaired: the arrow icons on Sales.

The workbook was orders.xlsx, made for this post with eight orders for reps named Dana through Rachel, a Summary tab with a pivot table, four conditional formatting rules, a dropdown list on Status, and two formulas that only work in Excel. It went into Sheets through File, then Import, then Upload, with Insert new sheet(s) as the import location. Google's page on working with Office files lists .xlsx among the formats Sheets converts.

Below, the left column is what the file held and the right column is what the Broken tab shows after the import.

In orders.xlsxAfter import
Commission, G2:G10, uses a rate from Rates.xlsx#ERROR! in all nine cells
B12 reads the tab name with CELL("filename")#VALUE!
Data bars on Units, arrows on SalesGone. Two of four rules left
Status dropdown: Open, Paid, LateKept. F7 (Pending) is marked Invalid
Pivot table on SummarySame numbers, typed in as plain values

Formulas that link to another workbook return #ERROR! (Formula parse error)

Select G2 on the Broken tab and the formula bar shows =E2*[1]Rates!$B$2. In the file, [1] is a numbered link to a second workbook, Rates.xlsx, and $B$2 is a cell on its Rates tab that held the commission rate, 0.05. Sheets kept the text of the formula and could not make sense of it. Google's Office files page names this directly: linked spreadsheets in Excel files are not supported. The same message also comes from mistyped formulas, which are in the post on other causes of Formula parse error.

The file also stored the last result of each formula, 15 for Dana's row. Sheets did not show any of those stored results. It showed the error in every row, and =SUM(G2:G9) in G10 turned into an error as well, because a sum over errors returns an error.

Broken (as imported) tab with G2 selected. The formula bar shows =E2*[1]Rates!$B$2. Column G shows #ERROR! from G2 to G10, and a red box next to G2 reads Error, Formula parse error.
Figure 2. The Broken tab. Selecting G2 is enough to show the error box.

On the Fixed tab, I1 holds the label Commission rate and I2 holds 0.05. The old formulas in G2:G9 were cleared, and one formula in G2 now fills the column:

=ARRAYFORMULA(E2:E9*I2)

Dana's commission came back as $15.00, Rachel's as $22.50, and the total in G10 as $148.35. The sum formula in G10 was never touched. It recovered on its own once the cells above it held numbers.

On the Try it yourself tab nothing has been repaired yet. Clear G2:G9, type 0.05 in I2, enter =ARRAYFORMULA(E2:E9*I2) in G2, and compare G2:G10 with the Fixed tab. G2 should read $15.00 and G10 should read $148.35.

InputSales in E2:E9, rate 0.05 in I2
Formula=ARRAYFORMULA(E2:E9*I2)
Expected$15.00, $27.00, $16.80, $18.75, $19.80, $18.00, $10.50, $22.50, $148.35
Sheets returned$15.00, $27.00, $16.80, $18.75, $19.80, $18.00, $10.50, $22.50, $148.35 Matches expected
Checked2026-11-12, free personal account

CELL("filename") returns #VALUE! in Sheets: use CELL("sheet") for the tab name

Cell B12 held a formula that prints the current tab name in Excel:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,31)

After the import it shows #VALUE!, and the error box spells out why: Function CELL parameter 1 value is filename. It should be one of: 'ADDRESS', 'COL', 'COLOR', 'CONTENTS', 'PREFIX', 'ROW', 'TYPE', 'WIDTH', 'SHEET'. The CELL function in Sheets has no filename option, so the whole formula fails, not just the part that reads the name.

Broken (as imported) tab with B12 selected. The formula bar shows the MID, CELL and FIND formula. B12 shows #VALUE! and the error box reads: Function CELL parameter 1 value is filename. It should be one of: 'ADDRESS', 'COL', 'COLOR', 'CONTENTS', 'PREFIX', 'ROW', 'TYPE', 'WIDTH', 'SHEET'.
Figure 3. The list at the end of the message is every info type CELL accepts in Sheets.

The last item on that list is the replacement. On the Fixed tab, B12 holds =CELL("sheet",A1) and returned Fixed, the name of its own tab. That name was the only thing the MID and FIND part was there to dig out, so it can go.

TEXTBEFORE, SORTBY and other function names that exist only in Excel fail in a different way, with #NAME?. Their Sheets replacements are in Excel functions Google Sheets doesn't have.

Data bars and arrow icons were dropped from conditional formatting

In Excel, column C had data bars and column E had a set of three arrows. On the Broken tab both columns are plain numbers. With the whole table selected, Format, then Conditional formatting lists Value is equal to Late on F2:F9 and a Color scale on G2:G9, and nothing else. Nothing on the screen says that two more rules existed.

Conditional format rules sidebar with Value is equal to Late on F2:F9 and Color scale on G2:G9, followed by Add another rule.
Figure 4. The rules that survived the import. The data bar and arrow rules are not in the list.

The color scale is easy to overlook. It came across, but on the Broken tab it had only errors to color, so the column looked unformatted. Once the commissions were fixed, the green shading came back by itself, darkest on Marcus at $27.00.

For the data bars, the Fixed tab uses SPARKLINE in a new column H, one formula per row:

=SPARKLINE(C2,{"charttype","bar";"max",MAX($C$2:$C$9)})

C2 is the cell the bar draws and $C$2:$C$9 is the whole column it is measured against. The "max" setting makes every bar measure against the largest order, so Tom's 40 units fill the cell and Ken's 5 draw a short stub. The arrows on Sales were not rebuilt.

Fixed tab with G2 selected. The formula bar shows =ARRAYFORMULA(E2:E9*I2). Column G shows $15.00 to $22.50 with green shading and $148.35 in G10, column H shows orange bars, I2 shows 0.05 and B12 shows Fixed.
Figure 5. The Fixed tab. Commission, the color scale, the bars in column H and the tab name in B12 all work.

The dropdown list came through, and a value outside it is flagged Invalid

The dropdown on F2:F9 survived with its three choices, Open, Paid and Late. One row didn't fit them: Tom's order in F7 says Pending. In the take-home copy, F7 has a red corner, and holding the pointer over it shows:

Invalid: Input must be an item on the specified list

Broken (as imported) tab with F7 selected. F7 shows Pending, and a box next to it reads Invalid: Input must be an item on the specified list.
Figure 6. Sheets checks the value already in F7 against the imported rule.

This one is not an import error. The value was already outside the list, and Sheets marks the cells that fail the rule. The Fixed tab leaves F7 as it is. Either pick one of the three values or add Pending to the list under Data, then Data validation.

The pivot table arrived as typed numbers, so rebuild it with a pivot or QUERY

The Summary tab, renamed Pivot (as imported) in the copy, still looks like a pivot table: a Row Labels header, East at $846.00, South at $735.00, West at $1,386.00 and a Grand Total of $2,967.00. Select B4 and the formula bar shows $846.00. That is a typed number, not a pivot result, so it will not change when the orders do.

Pivot (as imported) tab with B4 selected. The formula bar shows $846.00 with no formula. Columns A and B show Row Labels and Sum of Sales for East, South, West and Grand Total, and D3:E6 show Region and Sales with 846, 735 and 1386.
Figure 7. Columns A and B came from the file. D3:E6 is a formula that reads the Fixed tab.

The pivot in orders.xlsx was written for this test file, so a pivot saved by Excel itself may come through differently. Either way, selecting one of its numbers settles it: if the formula bar shows only the number, rebuild the summary.

There are two ways to rebuild it. Insert, then Pivot table, as described on Google's pivot table page, gives a pivot you can edit. A formula works too. D3 on the same tab holds:

=QUERY(Fixed!A1:E9,"select B, sum(E) group by B label sum(E) 'Sales'",1)

It returned 846 for East, 735 for South and 1386 for West, the same three totals, and these will follow any change on the Fixed tab. The letters in the query text follow the columns of Fixed!A1:E9: B holds Region, which the totals are grouped by, and E holds Sales.

Take-home copy. Four tabs: Broken (as imported), Fixed, Try it yourself, Pivot (as imported). It opens as a copy in your own Drive.

Copy the sheet