formula

Lookup Database (Multiple criteria)

假如想象 提交于 2019-12-12 02:52:54
问题 Im having difficulty with the following, maybe you can help. I need a formula to lookup the following details. I need it to do the following: Search Column 2 for "A" Filter the available rows by the criteria of column 3 having a value of "B1" Filter the available rows by the most recent date from column A Return the value from column D DATE A A1 VALUE 1 DATE C D1 VALUE 1 DATE B F1 VALUE 1 DATE A A1 VALUE 1 DATE C P1 VALUE 1 Thanks, Phil 回答1: You can try this formula: =INDEX(D1:D6,MATCH(9^99

how to drag horizontally a formula which is a string fixed

点点圈 提交于 2019-12-12 02:49:24
问题 I have the following formula in excel =MAX(INDIRECT($A2 & "!"&"B2:B5")) A2 is a cell in the current worksheet, which is the name of a worksheet tab. However what i wish to do is drag the formula horizontally like that of standard excel formulas to reference the cells of the "other" worksheet tab So if i dragged horizontally i would get: =MAX(INDIRECT($A2 & "!"&"C2:C5")) =MAX(INDIRECT($A2 & "!"&"D2:D5")) etc This wont work with the formulas as a fixed text..so how would i do this? 回答1: This

Implementing Sigmoid Curves in C++

烂漫一生 提交于 2019-12-12 02:37:21
问题 I've been trying to implement Sigmoid curves since 12 hours ago and i could not manage to get it up. I'm using Microsoft Visual Studio 2010. The formula is y = 1/(1+exp(-e)) Yet when i try implementing in the codes it does not work, why? Can any experts please guide me along, thank you. for(int y=0; y<bih.biHeight; y++) { for(int x=0; x<bih.biWidth; x++) { SetPixel(hdc, (double)1/((double)1+exp(double(-x))), bih.biHeight-x, red); } } 回答1: Your result for the (double)1/((double)1+exp(double(-x

Text Based Basic Formula Calculator Function/Class

左心房为你撑大大i 提交于 2019-12-12 02:34:23
问题 Looking for something like int Result; DataTable dt2 = new DataTable(); var v = dt2.Compute("3+2-34*12", ""); Result=Convert.ToInt32(v); the code above, which solves the text base formula. Unfortunately, the code above only works for some basic operators (+,-,/,*). Need a little more complex one (like squareroot, ^ at least). Could you help me to find something tosolve for a little more complex equations? 回答1: You can use Roslyn scripting API for that. Add Microsoft.CodeAnalysis.CSharp

excel array formula if result depends on row?

女生的网名这么多〃 提交于 2019-12-12 02:14:01
问题 It seems that the result of my array formula depends on the row. Please see the image attached. Cell C2 looks up from the value of the cell above it ( s3 ) from $A$3:$A$11 , and tries to return values in $B$3:$B$11 if matched. So are cells D3 , E4 , F5 , etc. I expect the values should be the same. However, I got Error in Value for C2 , D3 , and E4 , as well as M12 and N13 . I got FALSE in F5 , H7 , I8 , J9 , and L11 . The only 2 cells that got valid results are G6 and K10 where the cells

Displaying multiple data frames in ggplot2

限于喜欢 提交于 2019-12-12 00:55:41
问题 I am trying to layer multiple data frames in one line plot, with x = index , y = values . The 8 data.frames I work with come in this format (index and value) and are several hundred rows long: Values 2306 0.000000 2307 1.004711 Because the data frames don't all have the same size, I am also trying to resize the data sets by converting them into percent (index/total number of values)*100, should I place this in the plotting code or should I better convert the data sets before plotting? Hope

Fit model on a subset of columns in dataframe in R

天涯浪子 提交于 2019-12-11 20:31:53
问题 I'm trying to use lm() and matchit() on a subset of covariates. I have generated an arbitrary number of columns with prefix "covar", i.e. "covar.1", "covar.2", etc. I'd like to do something like lm(group ~ covars, data=df) where covars is a vector of strings c("covar.1", "covar.2", ...). I tried several things like cols <- colnames(df) covars <- cols[grep("covar", colnames(df))] m.out <- matchit(group ~ covars, data=df, method="nearest", distance="logit", caliper=.20) but got variable lengths

Python variables with formulas all return value 1

故事扮演 提交于 2019-12-11 19:32:37
问题 (For reference, I asked a separate question--which was answered--regarding the same script here) I'm learning Python, and this is my first program. I'm trying to create a very basic RPG-like game where you select a character, give that character a weapon, and then tell it to attack another character with damage based on formulas that use the stats of the character and the weapon. I'm sure I'm doing something obviously wrong, but I can't get my [variable] = ______ formulas to return anything

Calculating excel formula for total time within a sign in database

点点圈 提交于 2019-12-11 16:13:29
问题 I am trying to calculate a formula for how long an employee is in a building based upon data from our security system for building entry/exit. The data generally looks like this: Date In/Out 4/3/2017 5:41 AM In 4/3/2017 5:34 PM Out But there are exceptions, multiple punches in a day, multiple "In" punches in a row etc. My main concern is the first and last punches of the day. I know how to subtract the two, but I need to know how to use a formula that will return the first entry, and the last

Google Sheets IF THIS AND ELSE OR

╄→гoц情女王★ 提交于 2019-12-11 16:08:21
问题 I'm having some issues trying to accomplish the below in a google sheet. What I'd like to have happened is: IF Cell O1 has a value of "Yes" AND Cell E1 is <= 25,000 Cell P1 = "DEFM-HW-A" OR Cell O1 has a value of "Yes" AND Cell E1 is > 25,000 Cell P1 = "DEFM-HW-B" OR IF O1 = "No" Cell P1 = "No" 回答1: Use this in P1: =IF(O1="Yes",IF(E1<=25000,"DEFM-HW-A","DEFM-HW-B"),"No") 来源: https://stackoverflow.com/questions/54712739/google-sheets-if-this-and-else-or