Excel sheet loses formatting and sheet structure - excel

I distribute Excel spreadsheets as Balanced Scorecard tools to all my clients. I have just received once back where a sheet, one of many in the workbook, has been changed:
All hidden rows and columns have been unhidden
Sheet protected has been set to not protected
Most of the formatting has been lost
Functional images on row one have been removed
Set column widths have been reset to default
Grids are turned on
The following two images show what the sheet should look line and what has happened.
Before:
After:
The customer runs Office 2016 on a Windows 10 PC.
Has anyone seen this happen before?
Can anyone tell me what causes this to happen?

Related

Apache POI Excel: ActiveSheet results in multiple sheets in PrintPreview in Libreoffice

I have a Workbook with 3 different sheets (A, B, C). I create them with the POI in the same order and the whole creation process works quite fine. Somehow I want to have the last sheet as the active one. Therefore I set
workBook.setActiveSheet(2);
When I open the workbook with Libreoffice 7.1 than C is displayed as the active one. When I open print preview the first sheet (A) is always included. Changing the code to set as well C as the selected one won't help.
Is there a way to fix it for Libreoffice? (to have not A included in the print preview)
In Excel as well as LibreOffice Calc multiple sheets can be selected in a workbook. That's a wanted feature because then all settings are applied to all selected sheets. So, in GUI, you can set sheet properties - page settings for example - to multiple sheets the same time. Also changes to cells in GUI are applied to all selected sheets. So you can change cell formatting as well as cell values in multiple sheets the same time.
That's why the Workbook.setActiveSheet will set the active sheet - only one sheet can be the active one - but will not deselect sheets. To deselect sheets, Sheet.setSelected(false) needs to be used.
So if you want only the active sheet shall be selected, you need deselect all others.
Using HSSF Workbook.setActiveSheet also does not set the active sheet selected. So you should do this using Sheet.setSelected(true).
In your case:
...
workBook.getSheetAt(0).setSelected(false);
workBook.getSheetAt(1).setSelected(false);
workBook.getSheetAt(2).setSelected(true);
workBook.setActiveSheet(2);
...

Excel is unfilling calculated cells at random

I have an Excel file on SharePoint.
Multiple people edit said file.
Offline and online.
Excel unfills all calculated cells (VLOOKUP and MATCH) that depend on other sheets in the same workbook at random.
So if you would open or reload that file, suddenly all the cells that use VLOOKUP or MATCH would be blank.
Upon further investigation nobody changed anything or deleted anything.
It just happens randomly.
Now it has happened 2 weeks ago and just today.
I have an interim solution that is to go to a cell with a formula, hit return, then click „overwrite all cells in this column with this formula“ and then click undo to prevent custom cell content to be overwritten.
Everything is back to normal afterwards.
I talked to a colleague, he has the exact same issue also totally at random.
He also encountered this on files that are not being edited by multiple people but himself.
So it is not dependent on the file itself.
Could the language play into this problem?
On some PCs Excel is in English and on some in German.
=IFERROR(IF(ISNA(VLOOKUP(D185,Sheet1!$B$3:$D$616,3,FALSE)),(VLOOKUP(D185,'Sheet2'!$B$3:$D$22200,3,FALSE)),(VLOOKUP(D185,Sheet1!$B$3:$D$616,3,FALSE))),"")
Seems like your sheet isn't calculating upon open. See if this link is of use to you.
https://superuser.com/questions/448376/what-is-the-excel-hotkey-to-re-calculate-all-formula-in-sheet
Also check your program settings and see if auto-calculate sheets is enabled. Don't know from the top of my head where it is located.
Alternative create a small vba function to force recalculate on workbook open.
Getting Excel to refresh data on sheet from within VBA

Excel formula is not being applied to some entries

I have a workbook that gets its data from a SharePoint library. The idea is to automatically generate reports from the excel workbook and send automatic emails with the report attached. Problem is: recently, after the workbook refreases, formulas are missing in some cells making the reports incorrect. What is causing the formulas not to be applied in some cells?
Make sure filters are cleared before inserting the formula. Filters make some rows hidden and the formula is not applied to them.

Excel, linked WorkSheets causing "0" to appear in blank cells

I am working on a project which involves 14 sales consultants each with a client pipeline. These 14 sheets are in a Workbook (Workbook A) that has 1 Sheet to consolidate all the information into one pipeline.
Each consultant has an individual WorkBook that they fill in and the information is then actively transferred to Workbook A from their individual Workbook Sheets.
The problem I have is that I used a direct link (=Sheet1), because of this method I used I have to set the amount of cells to link.
All the cells I have linked with no information returns a zero in Workbook A which then causes my Consolidation page to bring in all the rows with "0" in and it does not look nice.
I would like to prevent the Consolidation sheet to import these 0 figures from the consultant sheets.
This information is constantly being refreshed so the filter also gets refreshed which means I cannot simply hide it by deselecting the value on the filter.
Maybe try using a =isblank formula to prevent the blank cells from causing you to see the 0's.
Something like this maybe =IF(ISBLANK(Sheet1!'YOURCELLSHERE),'','Sheet1!Cell')
Go to File|Options|Advanced and scroll down to "display options for this worksheet" and un-check "Show a zero in cells that have zero value". Keep in mind that this will cause cells that should display a "0" to not display that "0".

Excel 2016 Chart Axis-X not showing the correctly

I have a Excel file (.xlsm type) contains lot of Charts. After switch to Excel 2016, certain charts not showing Label correctly (axis-x).
Eg. It suppose showing WK10'17, WK11'17, WK12'17,...
but it showing 1,2,3,4,....
1) I tried to reselect the data, then the label showing correctly, but after save and reopen, it become 1,2,3,4.... again
2) also tried delete the existing chart, and create a new one in Excel 2010 & 2016, problem not solve.
3) Axis Type have been set as Text
Is this a bug in Excel 2016 ? Did anyone have a solution for this ?
Below Chart showing 1,2,3,4,..., which is wrong.
Below chart is showing correctly.
Below are my table look like
1st Experiment:
Firstly, I create a whole new file in Excel 2016. Then do below step:
- Create 4 Indicators for performance review, with dummy data
- Create new chart and format it
- Create simple VBA code to hide everything, and only show related Indicator that selected
Everything work just fine, even switching around the indicator many times.
Later, Close it and reopen, 3 out of 4 charts having Axis-x label became 1,2,3,...
2nd Experiment:
I created Whole new file in Excel 2010, with 4 indicators and same VBA code.
Then Close and reopen, Axis-x format remain Perfectly good.
Transfer the file into Excel 2016 machine. Close and reopen, the Axis-x became 1,2,3....
*** Current Excel Version 1705 (Build 8201.2075)
*** Attach with these experiment files
4Q Demo.zip
Appreciate, who got interested into this issue, have a look on my file.
Share with me, if you do have any solution for that. Thanks
I found out as long as the Chart is not hide, then the axis-x will remain correctly. But this do not really help, when hiding additional chart is a must.
Another temporary workaround method is :
1) moving the data table to another worksheet.
2) Then the set the Chart's data range to another worksheet (Cannot be the same worksheet with Chart).
That will work perfectly, now can hide the chart while maintain axis-x correctly.
**** Only drawback, table have to move or duplicate into another worksheet
**** Probably Microsoft will solve this after Version 1705 (Build 8201.2075)

Resources