spreadsheet

Convert text (12.05.79) to date in excel

最后都变了- 提交于 2019-12-25 07:39:16
问题 I have imported some dates into an excel document and I need to format them as dates not text strings. The format is like this: 12.05.79 but when I set the format to date excel doesn't do anything. Any way to do this? C 回答1: Two possible ways to convert "in situ" without an extra column 1 - use "Text to columns" Select column of dates then Data > text to columns > Next > Next > "under column data format" select "Date" and the format from dropdown (MDY or DMY) > OK 2 - use Edit/Replace.

How to retrieve date properly using spreadsheet gem in ruby

邮差的信 提交于 2019-12-25 04:15:44
问题 The date column in spreadsheet is formatted as 'mm/dd/yyyy' But when I read the above column via spreadsheet the format is different than the above format. My code is as follows: require 'spreadsheet' Spreadsheet.client_encoding = 'UTF-8' book = Spreadsheet.open params[:excel_file] sheet1 = book.worksheet 0 sheet1.each do |row| row.set_format 1, Spreadsheet::Format.new(:number_format => 'MM/DD/YYYY') h = Hash.new h["name"] = row[0] h["date"] = row[1] ...... end Currently h["date"] is not

How to add Editors to whole sheet protection for specific tabs?

柔情痞子 提交于 2019-12-25 03:18:07
问题 I'm trying to find an alternative to what I'm doing manually right now, it's quite exhausting (109 spreadsheets each containing many tabs), and that is to give permission to edit specific tabs for specific Editors (with whom the whole spreadsheet has been shared with) using a script. I have a spreadsheet with the tabs (A,B,C,D,....), these tabs contains many protected ranges (e.g. A!1:2) and should remain protected for all except myself. However, each tab has also a (whole) sheet protection

HTML data not pulling out in google spreadsheet

自闭症网瘾萝莉.ら 提交于 2019-12-24 17:51:56
问题 I have tried to pull out HTML data from NSE website in my google spreadsheet, but script symbol containing "&" is not getting pulled out but other normal scripts which does not include character "&" can be easily pulled out. I am using following formula: =importhtml("https://www.nseindia.com/marketinfo/sym_map/symbolMapping.jsp?symbol="&B1&"&instrument=OPTSTK&date=-&segmentLink=17","table",3) where B1=M&M which is Indian stock market script symbol (data not pulled out) try B1=ACC (data will

backup a google doc spreadsheet with php & zend

ぃ、小莉子 提交于 2019-12-24 13:15:02
问题 Hi Trying to use php to backup a google doc spreadsheet into another (without writing row by row) or to download it like an excel document Can someone help me? 回答1: You'll likely find the answers in the Google Docs API. The entry for copying Google Documents shows this sample: send an HTTP POST to the main feed. In the <entry> , set the <id> to the self link of the source entry (the document to be copied). Use PHP to send an HTTP POST request when you have that ID data. POST /feeds/default

How do you display a spreadsheet-like table in an iPhone view?

余生长醉 提交于 2019-12-24 12:43:21
问题 I need to display a spreadsheet in a view. There's no need to edit the cells of the spreadsheet, and the spreadsheet will consistently have the same number of rows and columns. (The spreadsheet cells will be populated with financial figures generated by the user in a different view) How would I do this? A UITableView seems inadequate, as there need to be around 70-80 cells displayed in this table. 回答1: One way to do it is to write your own table cell to contain all the columns in a particular

Ruby spreadshet gem, how can I center align a number

感情迁移 提交于 2019-12-24 11:24:08
问题 I'm using http://spreadsheet.rubyforge.org to generate a spreadsheet and I'm having trouble with something. I'm opening an existing workbook and adding data to it. I have manged to get number formatting working to some extent, at least excel is seeing this data as a number, but (very un-excel like) the client would like the number aligned in the center :( My current code looks something like this: nfmt = Spreadsheet::Format.new :number_format => '0.00' row = sheet.row(1) row[0] = "Result" row

In Google Sheets return all cells that contain string

百般思念 提交于 2019-12-24 08:05:36
问题 I've seen a lot of similar questions where users want to returns all rows that contain a specific value, but I'd like to only return the cells that contain the value. Basically, I have one sheet that has a bunch of categories in different cells, on the second sheet I'd like to return every category that contains a "_". I tried =QUERY(cat!A:Z,"select * where B contains '_'") , but that returns the whole row, I just want every cell individually. Thanks for any suggestions! 回答1: Try this one:

Spreadsheet Authentication in GData API

家住魔仙堡 提交于 2019-12-24 07:56:27
问题 I'm trying to edit a gdocs spreadsheet using the GData API. I have the following code: _service = new DocsService("attask-gdocsintegration-1.0"); _service.setUserCredentials(username, password); String feedUrl = "https://docs.google.com/feeds/default/private/full"; SpreadsheetQuery query = new SpreadsheetQuery(new URL(feedUrl)); query.setMaxResults(1); query.setTitleExact(true); query.setTitleQuery(title); SpreadsheetFeed feed = _service.getFeed(query, SpreadsheetFeed.class); if(feed

How can the Page Size, Page Orientation, and Page Margins of an ods Spreadsheet Be Set Using ODFDOM?

安稳与你 提交于 2019-12-24 02:16:40
问题 The Apache Incubation Project ODFDOM allows users to programmatically read and create various open document format files, including spreadsheets. I am trying to set various print options for a spreadsheet I am creating, using their re-vamped "Simple API", however it does not appear they have yet exposed an easy way to modify document properties such as page margin, page size (height/width), and page orientation (landscape/portrait). I need to get from a SpreadsheetDocument to something that