excel-formula

Why data validation can't handle dynamic named ranges through Indirect

烈酒焚心 提交于 2020-01-24 20:59:09
问题 I had a problem with creating dynamic named ranges and incorporating that with data validation. On my previous question this was the (part of) the answer given by XOR LX: offset, named range and data validation The combination of dynamically-defined Names and INDIRECT is not permitted within Data Validation. In such cases you need to employ EVALUATE , though you should note that, despite no explicit VBA being called, this will nevertheless require that the workbook be saved as macro-enabled.

Search a date in multiple date ranges and return the corresponding value

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-24 20:52:27
问题 In sheet 1, I have a list of dates in Column A in chronological order. There are values corresponding to this list in Column B. There is another list of dates in sheet 2 and I want to add values from sheet 1 to these dates. Sheet 1. **Column A Column B DATE Amount** 1. 10/01/2015 25,60,000 2. 10/02/2015 26,80,000 3. 01/03/2015 21,55,000 4. 30/03/2015 24,60,500 5. 30/04/2015 28,20,000 6. 30/06/2015 19,00,000 Sheet 2. Column A Column B 1. 21/02/2015 21,55,000 2. 15/01/2015 3. 20/05/2015 4. 25

How does one get the average of the last N rows in a table?

橙三吉。 提交于 2020-01-24 18:51:30
问题 I have a table (the "Table"). Table does not start on the first row of the spreadsheet (there are blanks rows above Table). There are no blank items in Table. Table contains OtherColumn, by which it is sorted, and Column. OtherColumn Column a1 b1 a2 b2 ... ... aN bN I want to find the average of the last N items in Column. My current strategy involves =AVERAGE(OFFSET(M, -10, 0), M) where M is a cell reference to the last item in Column. How do I find M? Prefer a non-VBA solution. Looking for

How compare 3 columns and put yes or no in another column?

一笑奈何 提交于 2020-01-24 18:14:09
问题 Hi, I want to compare six column, meterial with material (a with e), plant with plant and pret with pret, if this columns are equals put in rezultat yes, if not put no. Ex. We have Material 1, Plant ANG, Pret 4.5, i want to search in E meterial 1, plang ANG and compare pret, if pret is equals then put in Rezultat OK. Thanks a lot 回答1: =IF(AND(INDEX(F:F, MATCH(A2,E:E, 0))=B2,INDEX(G:G, MATCH(A2,E:E, 0))=C2), "OK", "Not OK") This will work but only if there are no duplicate values. 回答2: This

Combining Column Values in an Excel Pivot Table

跟風遠走 提交于 2020-01-24 18:03:06
问题 In order to simplify a stacked bar chart, I am looking to sum up the counts of multiple columns I have in my pivot table. For example, in this sample table, I would like to combine Fruits and Vegetables into one column, so that each bar will comprised of three colors: one for Meats, one for Grains, and one for Fruits+Vegetables. Pivot Table and Stacked Chart For reference, this is the data source: Data Source table I tried adding a Calculated Field, but I'm not sure if I can use specific

Getting average of top 30% of the values in one column

北慕城南 提交于 2020-01-24 15:49:32
问题 I have a column that lists bunch of numbers. How can I select the average of top 30% of the values in one column: 'Values' 10 9 8 7 6 5 4 3 2 1 so, the top 30% is '10, 9, 8' and the average is (10+9+8)/3 = 9 回答1: In any version of excel you can use either a SUMIF/COUNTIF along the same lines as Sean's suggestion, i.e. =SUMIF(A1:A10,">"&PERCENTILE(A1:A10,0.7))/COUNTIF(A1:A10,">"&PERCENTILE(A1:A10,0.7)) or a shorter "array formula" =AVERAGE(IF(A1:A10>PERCENTILE(A1:A10,0.7),A1:A10)) confirmed

Index/Match multiple results in multiple sheets

亡梦爱人 提交于 2020-01-24 13:38:49
问题 As the title suggests I'm looking to do an Index/Match in multiples sheets but to also return multiple results. I know how to return multiple results with =IFERROR(INDEX(Sheet1!B$1:B$100,SMALL(IF(Sheet1!$A$1:$A$100=myValue,ROW(Sheet!$A$1:$A$100)),ROWS(1:1))),"") and then copy it down. I also know how to look through multiple sheets for a unique value =IFERROR(INDEX(Sheet1!B$1:B$100,MATCH(myValue,Sheet1!$A$1:$A$100,0)),INDEX(Sheet2!B$1:B$100,MATCH(myValue,Sheet2!$A$1:$A$100,0))) I was

Create a sequence column in Excel

此生再无相见时 提交于 2020-01-24 13:11:35
问题 I have a column with names and i wanted to add a column that count the sequence of each row based on the name. So if a name appears multiple time (i.e 4), the first row of that name will have sequence 1 and the 2nd row sequence 2, etc... Name Sequence Andrew 1 Andrew 2 Andrew 3 Paul 1 Amy 1 Amy 2 Jean 1 回答1: Use COUNTIF with a variable range: =COUNTIF($A$1:A2,A2) 来源: https://stackoverflow.com/questions/52171832/create-a-sequence-column-in-excel

Excel formula to determine cell ID when a series of numbers turns negative

筅森魡賤 提交于 2020-01-24 05:45:27
问题 Sample data A B 1 Date Amount 2 Apr 1 $6,000 3 May 1 $4,250 4 June 1 $2,750 5 July 1 $1,000 6 Aug 1 -$0.075 <- This Cell/Row 7 Sept 1 -$0.2500 In a column of numbers (in reality 100-200 rows), when the value changes to negative, e.g. if these we're amounts owed on a loan, when the loan would be paid off by. Note the real difference between the numbers fluctuates based on interest, taxes, one-off payments etc. So I can't just count (total / payment) = number of months. Is there a way to use

Function return value as excel formula

好久不见. 提交于 2020-01-24 00:26:34
问题 I am trying to convert a formula created by function to return as a formula instead of function brackets. As shown in screenshot attached. Function f2t2(rng As Range) As String Application.ScreenUpdating = False jGetFormula = rng.Formula jGetFormula = Replace(jGetFormula, "(", """" & "(" & """" & "&") jGetFormula = Replace(jGetFormula, ")", "&" & """" & ")" & """" & "&") jGetFormula = Replace(jGetFormula, "+", "&" & """" & "+" & """" & "&") jGetFormula = Replace(jGetFormula, "-", "&" & """" &