formula

Array Formula Confusion

大憨熊 提交于 2021-02-19 03:45:32
问题 I am struggling with an array formula, that logically seems sound, however it doesn't appear to be working correctly. I have been working on a complex sheet, that is not to include VBA, which has made it formula heavy, and using arrays instead. In the image below, the first part is the problem, for the data shown in columns A-F, I wish to get a sum of the values that match the values in I1:K1. The formula I have used to begin with can be seen in the first image also, this evaluates, pressing

Display all matching values in one comma separated cell

北战南征 提交于 2021-02-18 15:42:10
问题 I have two columns of data in an Excel 2010 spreadsheet. In Column A is a category, and in Column B is a value. There will be multiple values in Column B for each unique category in Column A. What I want to achieve in a separate sheet is to display all of the values for each each unique category in one comma (or semi-colon etc) separated cell. For example, if my first sheet looks like this: ---------------------- | Category | Value | ---------------------- | Cat1 | Val A | | Cat1 | Val B | |

Excel Count unique value multiple columns

末鹿安然 提交于 2021-02-11 18:24:55
问题 I have a workbook with multiple sheets. On sheet1 I would like to count the number of times person in column A has a particular entry in Column C that meets criteria of column D = Content but only count if column B is a unique value. Using the below formula I can do everything except only counting unique numbers in Column B. I enter this formula in Sheet2 C2 then pull across to I2 then pull down to 6 in each column. =IF(COUNTIFS(Sheet1!$A$2:$A$150,Sheet2!$B2,Sheet1!$C$2:$C$150,Sheet2!C$1

Excel Count unique value multiple columns

心已入冬 提交于 2021-02-11 18:24:36
问题 I have a workbook with multiple sheets. On sheet1 I would like to count the number of times person in column A has a particular entry in Column C that meets criteria of column D = Content but only count if column B is a unique value. Using the below formula I can do everything except only counting unique numbers in Column B. I enter this formula in Sheet2 C2 then pull across to I2 then pull down to 6 in each column. =IF(COUNTIFS(Sheet1!$A$2:$A$150,Sheet2!$B2,Sheet1!$C$2:$C$150,Sheet2!C$1

Create formula call from character string

我只是一个虾纸丫 提交于 2021-02-10 20:15:38
问题 I use a best subset selection package to determine the best independent variables from which to build my model (I do have a specific reason for doing this instead of using the best subset object directly). I want to programmatically extract the feature names and use the resulting string to build my model formula. The result would be something like this: x <- "x1 + x2 + x3" y <- "Surv(time, event)" Because I'm building a coxph model, the formula is as follows: coxph(Surv(time, event) ~ x1 + x2

Returning cell values from other sheets by referencing sheet names from a list

こ雲淡風輕ζ 提交于 2021-02-08 14:44:03
问题 I have a spreadsheet with approx twenty different sheets named by stock ticker. Because these are templates, the information in each sheet is found in the same cells. For example, the EPS for the current year is always in cell A55 regardless of the sheet. I want to build a summary sheet that will pull data from the templates based on the tickers. So envision a summary sheet with tickers (also sheet names) down column A and formulas in columns B to reference the same position in each different

Google Apps Script in Google Sheet - Convert formulas to static values - cell function to value

假装没事ソ 提交于 2021-02-08 04:44:23
问题 Is there a Google Apps Script method that will change a cell with a formula to one with a static value? The reason for this is to avoid lag in the Sheet from lots of cell formulas recalculating as the sheet becomes larger. I want to make the sheet replace old formulas with static values since they won't be changing. 回答1: Use the copyValuesToRange() method: function copyFormulasToValues() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sourceSheet = ss.getSheetByName("Sheet1"); var

Algorithm or formula that can take an incrementing counter and make it appear uniquely random

百般思念 提交于 2021-02-05 11:16:09
问题 I am wondering if there is a general formula of some sort that can take a single incrementing integer, and run it through a modulus sort of thing to shift it to a random place, so as you increment the counter, its output value jumps around and appears random, yet no value is ever hit twice. Assuming some limit on the set of numbers like 16-bit integers (65536 integers), or 32-bit integers, etc.. Perhaps there is a way to spiral numbers down somehow, I don't know. The sequence would be

Keeping cell references the same when applying formula to entire column

北战南征 提交于 2021-02-05 08:21:04
问题 I have this formula here: =IFERROR(IF(D4<=0,0+(VLOOKUP(A4,'Civil Maintenance'!A5:C46,3,FALSE)),_ C4+(VLOOKUP(A4,'Civil Maintenance'!A5:C46,3,FALSE))),"0") As you all know when you drag it down to copy the formula to other cells in the column, it adds one to all the references (D4 becomes D5 etc.) However i was wondering if there's a way to stop this for certain parts? I want to keep the lookup search area the same so that A5:C46 stays the same in all formulas of the column but i still want

Extracting Only Year Value in Crystal Report DateTime Field

只愿长相守 提交于 2021-02-04 13:46:11
问题 I am working with Crystal Report, right now I am in a situtation where I have to extract only Year value from a datetiem field, for example, if the value is : 01/03/2014 10:20:01AM I only need to extract 2014 I did what is that , I changed the DataFormat of the field is dd/mm/yyyyy Now i hav eapplied formula on it. Formula = Right(CStr ({report;1.FirstYearDate}),4) It shows 01AM Kindly help me out 回答1: Here I have done with this way, my string was "01/02/2012 10:45:22Am" after using this