edit excel's built-in list of default cell formatting options - cell-formatting

Excel offers a default set of common cell formatting types via the menu. It's where you can select e.g. the phone number format or social security number format.
I want to be able to edit that list of types or at least add my own cell formatting type to the list.
I've tried storing excel templates but that didn't do it. The suggested posts, provided when drafting questions on stack, do not provide the solution.
Anyone any suggestions?
How deep into excel do need to break for this?

Related

I'd like to ask help on how to custom format the specific number in excel

I'd like to custom format 20001.10.19 to 01/10/19/.
I have tried many things, but nothing has worked.. I'm using Microsoft Excel 2007.
Assuming the value is stored as a date, you can use normal custom formatting settings:
Format the cell, choose custom and then enter the Type manually as: yy/mm/dd/

Excel Data validation with whole number and specific text

I want to inquire if it is possible to combine two data validation options, particularly whole number (with min and max at 0 to 999) and a specific text, which is "n/a".
I know this isn't possible with the basic data validation button, and am thinking if this is possible with VBA.
I want participants to be able to enter a value between 0 to 999, which pertains to the days before their deadline. But I want another option, "n/a", to be available if in case the said item is not applicable for them.
Thanks!
Lots of potential options.
As you suggest, VBA and regex type stuff would be an option. However, it isn't a particularly good option, being very easy to break if someone turns off macros, deletes macros in the sheet, changes file formats etc... Furthermore VBA isn't giving you any significant advantage in speed, flexibility or debuggability. I'd go with a different option.
Use data validation from a custom list. Put the numbers 0-999 and "N/A" in a column (on a hidden sheet?), name that range DeadlineValueList, then open the Data tab > Data Validation > Allow: List > Choose List > enter "=DeadlineValueList" in the box. Simple, effective, easy to debug and modify.
This will force the users to use a value in DeadlineValueList and, as a bonus, provide said options in a drop down list for the target cell.
PS. I would suggest having N/A at the top of your Data Validation list!

Create a spreadsheet-like cell grid on a browser

I want to create a spreadsheet-like form on a browser/frame. The form will create a grid of cells just like a spreadsheet where user can input data that I will save as a xls/csv, etc. I do not need any of the spreadsheet functionality (formula, reference to another cell, etc.) I do not need other convenience like dragging mouse to copy the same value in other cells.
Does any such freeware facility or library exist? Implementation in Python will be desirable, but is not necessary. I looked into Handsontable but unfortunately that is not free. I do not intend to use any form of gsheet or office360 for this.
After many searches, found this excellent round up of the solutions by Roberto Bicchierai. Writing it here so that other folks with similar questions can benefit from it: Eltit Golb.

Editing a predefined Table array

I am adding additional information to an excel document, it has a number of predefined table arrays and a number of VLOOKUPS using these. Such as
=IF(ISBLANK(VLOOKUP($A7,DataItemsDescrips,2,FALSE)),"",VLOOKUP($A7,DataItemsDescrips,2,FALSE))
I wish to add additional cells to the predefined table arrays. How is this done in excel 2007
Thank you Jerry. I had a similar issue from the questions above and this works witht he most recent version also! I check several sites before seeing this answer. It was the most direct and worked!
(1) Formulas, (2) Name Manager, (3) Choose table array needing editing, (4) Edit formual
4 easy steps.
Are you maybe referring to Named Ranges? By this, I mean the "DataItemsDescrips" you have in the formula you gave as example.
If yes, you can access and modify them through "Formulas" > "Name Manager" and you should find the "DataItemsDescrips" in the list. Select it and you can change the range it refers to.

Selecting and editing cells in Excel with OpenXML SDK

I'm basically inserting information from a dataset into an excel document. We really don't want to use interop services, so my best option is to use the OpenXML SDK.
Basically all I need to do is select a cell based on an id/name/whatever (I would rather not use the standard "A1" format), and then insert something into it. But for the life of me I can't figure out how to obtain a set of cell elements based on an attribute value.
Part 2 of this is I then need to merge certain cells. Which is much easier to do since it involves simply appending a collection of mergecell elements to the mergecells table. But I'm looking to make sure that any cell within a merge range isn't a part of another merged cell range, as this would cause problems.
I feel like this is a REALLY powerful tool, but the lack of documentation and examples makes it a difficult subject to approach.
It seems the easiest interface for editing excel documents is the ClosedXML library.
Searching each worksheet for specific cells is a lot easier. You can also search for named ranges.
and it automatically handles cell mergers by deleting any previous merged ranges that conflict with the newest one.

Resources