spreadsheet

Return array in Spreadsheet Function

岁酱吖の 提交于 2020-01-05 10:23:17
问题 The code below returns an array. I would like to use it in a spread sheet as an excel formula to return the array. However, when I do, it only returns the first value to the cell. Is there anyway to return the array in a range of equal size as the array? Function LoadNumbers(Low As Long, High As Long) As Long() ''''''''''''''''''''''''''''''''''''''' ' Returns an array of Longs, containing ' the numbers from Low to High. The ' number of elements in the returned ' array will vary depending on

ColdFusion Export to Excel on Multiple Sheets

☆樱花仙子☆ 提交于 2020-01-05 07:27:11
问题 I'm using the code below to export data from a database to an Excel sheet. What I want to do is have a certain set of fields be exported to a different sheet in the same workbook. The end result being that each person's data is on a separate sheet rather than all combined on the same sheet like this code is doing. Any thoughts as to how I can write a formula or a piece of ColdFusion than will let me do this? Also I'm using ColdFusion 8 so I can't use the cfspreadsheet function. <!--- use

Find value on any sheet in spreadsheets using Google Script

不羁的心 提交于 2020-01-03 04:49:05
问题 Using the code below I'm able to look through multiple sheets in a spreadsheet to find the first value that equals the selected cell. The only problem with this bit is: The cell with the value found is highlighted yellow, but the cell with the value found isn't selected. See code below for hopping through sheets. I can't get my head around this :) Funny thing is that the code for highlighting and selecting a value does work when I'm not hopping through the list of sheets, see the best answer:

EXCEL Multiple Ranges - need different answers for each range

╄→гoц情女王★ 提交于 2020-01-02 09:51:24
问题 I have spent a few hours working out how to do this which is why im posting it here now... If you want to return different values in a cell based on which range the value entered in another cell comes under then I have worked out how to do it!! (bear in mind that this is specific to my spreadsheet and was for calculating prices i.e. 0.99 = £0.99) For example: IF G2 is ABOVE "0" BUT BELOW "1" THEN display "0.1" IF G2 is ABOVE "0.99" BUT BELOW "5" THEN display "0.15" IF G2 is ABOVE "4.99" BUT

EXCEL Multiple Ranges - need different answers for each range

别说谁变了你拦得住时间么 提交于 2020-01-02 09:51:22
问题 I have spent a few hours working out how to do this which is why im posting it here now... If you want to return different values in a cell based on which range the value entered in another cell comes under then I have worked out how to do it!! (bear in mind that this is specific to my spreadsheet and was for calculating prices i.e. 0.99 = £0.99) For example: IF G2 is ABOVE "0" BUT BELOW "1" THEN display "0.1" IF G2 is ABOVE "0.99" BUT BELOW "5" THEN display "0.15" IF G2 is ABOVE "4.99" BUT

Copy/paste data validation in Google Spreadsheets

与世无争的帅哥 提交于 2020-01-02 05:06:25
问题 I feel a bit silly not being able to figure this out. So this is the data validation I have set up: Cell Range: Journal!J2 Criteria: List from a range - Journal!W2:X2 Cell Range: Journal!M2 Criteria: List from a range - Journal!Y2:AA2 This is great in my first row. I create another row and I'd like it to update all of the '2' to '3'. The cell range updates correctly, but the criteria does not, and I can't figure out an easy solution other than going in and updating it manually. I've tried

Is it possible to use the Google Spreadsheet API to add a comment in a cell?

别说谁变了你拦得住时间么 提交于 2020-01-01 10:28:35
问题 I am looking at the CellEntry API (https://developers.google.com/gdata/javadoc/com/google/gdata/data/spreadsheet/CellEntry) to see how I could add comments (and ideally notes as well) to a cell, but don't see anything obvious like "addComment()". Anyone have an idea? Thanks 回答1: With google sheet API v4 you can set a note using spreadsheets.batchUpdate. Example javascript sdk: var requests = []; requests.push({ "repeatCell": { "range": { "sheetId": yourSheetId, "startRowIndex": 1,

Upload jQuery Handsontable input

有些话、适合烂在心里 提交于 2020-01-01 06:37:10
问题 What is the best way to upload data entered by user in jQuery Handsontable back to Server to be saved into database? The existing onChange callback seems to be very verbose to save input data using AJAX especially if user insert new data row above existing one. Looking for functionality to upload input data after complete the editing using Handsontable or jQuery Here is the full code using jQuery to loop the input data and dump into text box in JSON format then submit to server. This process

Algorithm for finding circular references in a spreadsheet

核能气质少年 提交于 2020-01-01 03:24:15
问题 I have a spreadsheet application with formulas. I am looking for the best algorithm for detecting circular references among the formulas. The current approach I have is slow and uses too much memory when long chains of calculations are in place with the formulas. It involves keeping sets of all dependents for each formula. So if the first column of cells each had a formula with a reference to the cell before it, the first cell's set would be empty. The 2nd cell's set would only contain the

Algorithm for finding circular references in a spreadsheet

不想你离开。 提交于 2020-01-01 03:24:05
问题 I have a spreadsheet application with formulas. I am looking for the best algorithm for detecting circular references among the formulas. The current approach I have is slow and uses too much memory when long chains of calculations are in place with the formulas. It involves keeping sets of all dependents for each formula. So if the first column of cells each had a formula with a reference to the cell before it, the first cell's set would be empty. The 2nd cell's set would only contain the