array-formulas

Index/match if greater than

筅森魡賤 提交于 2019-12-25 09:16:19
问题 Hoping someone can help me with my trouble with an index/match formula. Column B has a list of names, column C has the frequency of an action taken (sales made) whilst column D has the average sales value. I've created in column G a track of the 6 highest sales which has worked great: =LARGE($D$8:$D$13, 2) Then I've used column F to determine the name that matches each sales average: =INDEX($B$8:$B$13, MATCH(G4, $D$8:$D$13, 0)) So far so good! However, I'd like to only include the sales

Create a dynamic 'if' statement in Excel without VBA

北慕城南 提交于 2019-12-25 03:34:08
问题 * Updated * I have a rather large excel data set that I'm trying to summarise using up to 3 dimensions: region, sector, industry. Any combination of these dimensions can be set or left blank and I need to create a formula that accommodates this WITHOUT using VBA. Within the data I've set up named ranges to refer to these dimensions. I'm using an array formula but I'd like to dynamically create a string which is then used as the boolean argument in the array formula. For instance if: A1 =

Auto-populate every second day between two given dates

♀尐吖头ヾ 提交于 2019-12-25 01:26:51
问题 I'm currently using the formula in this article to auto-populate a column of dates between to given dates: =ArrayFormula(TO_DATE(row(indirect("A"&A2):indirect("A"&B2)))) How can I tweak the formula to give every second date? Column D in the article would then say: 01/04/2018 03/04/2018 05/04/2018 07/04/2018 ...and so on. 回答1: It seems like the formula skips a day if the start date is an odd date. Can this be corrected? =ARRAYFORMULA(FILTER(TO_DATE(ROW(INDIRECT("A"&A2):INDIRECT("B"&B2))), MOD

How to horizontally return looked up values from duplicates w VBA [pic]

心不动则不痛 提交于 2019-12-24 23:59:15
问题 See pic related. I'm trying to return values corresponding to duplicate cells in an array ==>horizontally. So the first instance of a lookup goes in Column E, the second instance in Column F, third in G; and so-on. I can do that with an array formula for this small bit of data: Array Formula for Duplicates But here's the issue. Using array formulas for 5, 10, or 15,000+ rows takes quite a bit of time. Is there a VBA solution to return values corresponding to duplicate cells in an array by

How to use AverageIf worksheet function for calculating average date differences (in case date is filled in)

喜你入骨 提交于 2019-12-24 20:16:11
问题 I'm making a summary of a list of tasks, and the corresponding dates (start date, first answer date, ...). It looks more or less like the following: Title Start date First answer Task1 29/06/2018 02/07/2018 Task2 09/05/2018 Task3 13/06/2018 14/06/2018 I would like to calculate the average time, needed for the first answer to be given. In case no first answer is given yet, this entry needs to be ignored in the calculation of the average. In order to be able to understand the formulas better, I

MaxIf with associated row info?

放肆的年华 提交于 2019-12-24 12:51:26
问题 Im using array formulas to determine the maximum value of a specific subset of row data: =MAX(($A2:$A100="somestring")*($C2:$C100)) This works fine & gets me the maximum value in C where A = "somestring". Now, I want to return other column values associated with this "max" row that are strings. Intuitively I think I may need to ditch the boolean logic multiplication strategy since string values are getting involved. What's the best/cleanest way to go about this? 回答1: Try this: =INDEX(B1:B100

How to get for each value in one array column number in another array?

不打扰是莪最后的温柔 提交于 2019-12-24 12:19:24
问题 Please look the example sheet. The 'sheet1' is a gradually filled table. In column "A" some kind of ID for each entity. These identifiers are sometimes repeated. In the result I just want to know the appearance number of each ID. To solve this I created 'sheet2'. in 'sheet2' column 'A' list of unique values from 'sheet1'. Then with huge formula in cell 'sheet2!B2' I get all row numbers for each unique value from 'sheet1' separated by columns. And finally I want to get in 'sheet1' column

Transpose Unique Values from Multiple Columns

拈花ヽ惹草 提交于 2019-12-24 10:49:51
问题 I'm trying to generate unique values in D1:F but my formula is not working. For example, row 1 has A B C milk milk 44 the output should be: D E milk 44 here is my formula and my sheet =ARRAYFORMULA(unique(A1:C)) 回答1: UNIQUE works only in one dimension (row or column) =QUERY(UNIQUE({A:A;B:B;C:C}), "where Col1 is not null", 0) =ARRAYFORMULA(SPLIT(REGEXREPLACE(SUBSTITUTE(TRIM(TRANSPOSE(QUERY(TRANSPOSE({QUERY(QUERY( UNIQUE(SPLIT(TRANSPOSE(SPLIT(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE( IF(LEN(A2:A),

Google Sheets ARRAYFORMULA with nested if statements

南笙酒味 提交于 2019-12-24 07:28:24
问题 Im working on what I thought would be a fairly straight forward arrayformula where I only needed a single cell entry instead of having to copy it down to 100+ rows. I am working on a spreadsheet for use with the beast shape, elemental body, and plant shape spells in Pathfinder. My table looks like _________A___________B________C 1___Spell name_____Type_____Size Where A2 will contain the arrayformula. B2:B will contain Animal, Plant, Elemental, Magical Beast. C2:C will contain the range of

'No match' message in Google Sheets Vlookup results for cells with no data

元气小坏坏 提交于 2019-12-24 06:50:03
问题 Based on (Search a value from another tab/sheet in google sheets based on cell reference), I have 2 tabs/sheets in Google Sheets, one that gathers data from a Google Forms and the other is a Search sheet. The example is here (It's the same one used for the question mentioned above but with added data): (https://docs.google.com/spreadsheets/d/1qLcJdCn4EdV7lPOAfZ_CMak1LBkve45FL5SXyqBV3L8/edit#gid=354631176) On the top of the Search sheet, I have search fields that the user fills and down in