formula

Excel: Find most frequent occurring value in a range?

ぐ巨炮叔叔 提交于 2019-11-29 16:36:24
I have a column on sheet 1 like so: Column D Dog Dog Dog Dog Cat Cat Cat Hamster Frog Frog On sheet 2, i want to list the top 10 most frequent occurring words in chronological order Dog . <---Most Frequent Cat . <---Second Frequent Frog . <--Third etc. I am trying to use index, mode and match like so: =INDEX(Sheet1!D:D,MODE(MATCH(Sheet1!D:D,Sheet1!D:D,0))) This produces an N/A error But if i add ranges to my column reference like so: =INDEX(Sheet1!D1:D10,MODE(MATCH(Sheet1!D1:D10,Sheet1!D1:D10,0))) Then it works. Problem is data is going to be added to columnn D and i need it to look up the

C#, User defined formula

情到浓时终转凉″ 提交于 2019-11-29 16:22:17
I need to enable user that he can write own formula in datagridview. Something like a function in Excel. Example of formula definition: So, user write his own formula in formula cell and then in other table is shown result for each. How I can do this? I would try NCalc NCalc is a mathematical expressions evaluator in .NET. NCalc can parse any expression and evaluate the result, including static or dynamic parameters and custom functions. Dictionary<string, int> dict = new Dictionary<string, int>() { { "Income", 1000 }, { "Tax", 5 } }; string expressionString = "Income * Tax"; NCalc.Expression

EXCEL return range of values based on criteria

喜夏-厌秋 提交于 2019-11-29 13:02:05
I have a VBA function that I would like to pass a custom range of data (As opposed to a full table column range) only when certain criteria within that table is met. For example: Table_1 Table_2 A B C A B 1 Policy Data Status | 1 Policy Function -------------------------- | ------------------- 2 AA 25 approved | 2 AA [25, 35] 3 AA 19 unapproved | 3 BB [16] 4 BB 16 approved | 5 CC 27 approved | 6 CC 30 unapproved | 7 AA 35 approved In Table2, cell B2, I would like to return a range of all Data values from Table1 where Policy = AA and Status = approved . Subsequently, in cell B3 a range of

Excel - Array Formula to skip empty cells

浪尽此生 提交于 2019-11-29 10:58:04
I have an array formula to fill in the cell when it contains text but I want it to ignore the cell if its blank and go to the next one. The issue I am having is that it does not do it in the order i have for example: Range is -A -(BLANK CELL) -(BLANK CELL) -D -E -F -(BLANK CELL) -H -(BLANK CELL) Result from the formula -A -E -F -H It is skipping the cells that contain letters. CAN SOMEONE HELP?? FORMULA: {=IF(ISERROR(SMALL(IF(B4:$B$12<>"",ROW(B4:$B$12)),ROW(B4:$B$12)-3)),"",INDEX(B4:$B$12,MATCH(SMALL(IF(B4:$B$12<>"",ROW(B4:$B$12)),ROW(B4:$B$12)-3),IF(B4:$B$12<>"",ROW(B4:$B$12)),0)))} I think

Array formula result concatenated into single cell

给你一囗甜甜゛ 提交于 2019-11-29 08:47:06
Is it possible to take the return values from an array formula and concatenate them into a single cell? For example, I have a simple spreadsheet with rows for project tasks which looks like this: Task # Description Blocked on Blocking ----------------------------------------------- 1 Task 1 2 2 Task 2 $formula 3 Task 3 2 I would like the formula in cell D3 to return "1, 3" (it would also be great to put multiple values in the Blocked On cell). I've currently got it returning "1" with the following formula: =(INDEX($A2:$A999,MATCH(A3,$C2:$C999,0))) Apostolos55 the formula you are looking for is

Explain - Formula to curve through a control point

别等时光非礼了梦想. 提交于 2019-11-29 07:07:56
I have a question regarding formula curving through a control point. As you know, HTML Canvas has quadraticCurveTo(x1, y1, x2, y2) with x1 and x2 being the control point. However when you try to draw a stroke using it, the stroke will never touch the control point. So we have this formula: x1 = xt * 2 - (x0 + x2) / 2; y1 = yt * 2 - (y0 + y2) / 2; (xt, yt) = the point you want to curve through. t for tangent as it is 90 degrees perpendicular at that point. This recalculates the control point position. I got this formula from a book, however the book doesn't explain how it is been derived. I

Automatic date update in a cell when another cell's value changes (as calculated by a formula)

天大地大妈咪最大 提交于 2019-11-29 04:51:36
I have a formula in C2, say =A2+B2 . Whenever C2 changes value (actual value, not formula) I want to have the present date and time updated in D2. I have tried a lot of VBA codes and tricks and none of them works if a formula is entered in C2. BUT if I type a value manually in C2 the date and time is updated as needed. This is of course because a real value is entered/changes - where the formula stays the same, so to speak. Question: Is it possible to create a VBA code (or something else) that updates D2 when the result of the formula in C2 changes? If possible, I need this to be active for

Is there a way to have math formulas look nice on a web page (as in LateX, for instance)

泪湿孤枕 提交于 2019-11-29 03:59:36
I wonder if there is a framework or something else to display Math formula on a web page. Other than using images of those formulas... Graham Clark Check out MathOverflow , which uses jsMath . Looks pretty good, but can take a few seconds to render everything. George You may also check MathJax , which supports rendering both LaTex and MathML. Check out this review of all of the options for web math display. MathJax is the best option, but it's still in beta. As far as I can tell though, it's the only solution still under development and it should reach 1.0 soon. Katex A couple of developers

Any solution to the Today Calculated Column problem is SharePoint?

。_饼干妹妹 提交于 2019-11-29 03:58:42
I would like to be able to use today's date in a calculated column in a SharePoint list to, for example, determine whether a task is overdue. There is a well-documented trick that involves creating a dummy column named "Today," using it in a formula, and then deleting it, thereby "tricking" SharePoint into using the Today function. The problem is that this method does not work reliably -- the calculation is not dynamic; it is only made when the item is saved, and therefore the Today "column" effectively becomes the Modified Date. (This is probably why SharePoint won't let you use the Today

Typesetting LaTeX fraction terms to be larger in an equation

自古美人都是妖i 提交于 2019-11-29 01:54:32
I have the following formula in LaTeX, based on Fisher's Exact Test . ( NOTE : requires the use of the amsmath package for \binom .) \begin{equation} P(i,j) = \sum_{x=|N(V_i) \cap V_j|}^{\min\{|V_j|, |N(V_i)|} \frac{ \binom{|V_j|}{x} \binom{|V - V_j|}{|N(V_i)| - x}} {\binom{|V|}{|N(V_i)|}} \end{equation} This renders the fraction portion with very small, difficult to read text: I would like my text more readable, as in the following example: equation with readable text in fraction http://www.plosone.org/article/fetchObject.action?uri=info:doi/10.1371/journal.pone.0005313.e002&representation