formula

Excel Formula/VBA to search partial strings in other sheet

半世苍凉 提交于 2019-12-25 03:15:21
问题 I am having names in two cells of sheet1 (e.g. : B1 (Gina Williams) & B2 (Patrick Rafter)) and the corresponding bank statement narratives are in sheet 2 (column C) e.g: "Deposit from Gina towards rent for connaught place apt". Now I need to search all the four partial texts available in cells B1 & B2 of sheet 1 (ie. "Gina", "Williams", "Patrick", "Rafter" in the entire column B of sheet 2. if there is a match i need to capture the corresponding column B & D value for the matching row. SHEET1

How to insert, through VBA, a formula in a cell with special characters like “-” or “$”?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 02:34:25
问题 I searched on internet, without any help coming out of that... I simply would like to be able to have my VBA code to write this formula in a cell : =IF(C4="-"; "-"; Cars!C4*C4*Data!$C$8) As you guessed, there is a page called "Cars" and one called "Data" where I pick the informations needed. Of course, as it is a VBA code, the C4 will be 2 variables, one for the C and one for the 4 that will evolve... Actually, I tried this : Worksheets("Calculation").Range(Column & PosStartCalc + 1).Formula

VBA range.formula issue (LEN, RIGHT & LEFT)

独自空忆成欢 提交于 2019-12-25 02:23:07
问题 I'm trying to do a VBA code to accomplish 2 things as follows: Count how many characters there is on cell A1 , using the formula LEN(A1) and one the last line, I'm trying to have the formula RIGHT(LEFT(A1;Q1-2);6) on cell J1 Please follow down my VBA code so far: LR = Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To LR cel = "A" & i cel2 = "P" & i cel3 = "Q" & i Range("P" & i).Formula = "=LEN(" & cel & ")" Range("J" & i).Formula = "=RIGHT(LEFT(" & cel & "," & cel3 & "-" & 2 & ")," & 6 & ")"

replenishment formula oracle sql query

点点圈 提交于 2019-12-25 01:44:27
问题 I have a table with the following structure: Item Code item Description Minimum Quantity Maximum Quantity Reorder Quantity Current Stock in Location Current Stock in Main Location Replenishment Quantity I would like to calculate the replenishment quantity, what would be the correct formula in oracle SQL? Example: Item Code - ABCD item Description - ABCD whole item Minimum Quantity - 20 Maximum Quantity - 100 Reorder Quantity - 20 Current Stock in Location - 15 Current Stock in Main Location -

index match with multiple criteria in rows

我与影子孤独终老i 提交于 2019-12-24 20:54:55
问题 I am working on a spreadsheet in which I have ticker id in column B, members corresponding to those tickers in column I and rates in column J. Rates change depending upon the no. of members, so one ticker ids can be in multiple rows. In my output, I need the rate for a particular ticker id and member. It should lookup exact ticker id but if no. of members is not there in data then it should pick the largest value that is less than or equal to lookup_value. I have attached snapshot of the data

Excel WEBSERVICE formula returns #VALUE error

浪尽此生 提交于 2019-12-24 20:54:28
问题 This should be the strangest thing I have came across with MS Excel. I have very very very big calculation tool made with MS Excel. Now I wanted to increase it's functionality by adding distance and traveling time calculation using Google API Key. Everything worked fine until one day I started to get #VALUE errors. I have started a case earlier but now after some more investigations I have noticed a strange behavior. If I create new Excel workbook file on my work computer and use my Google

Excel: Find intersection of a row and a column

有些话、适合烂在心里 提交于 2019-12-24 18:15:07
问题 My question is how can I find an intersecting cell of a specific column and row number? My situation is this: with some calculations I find two cells, lets say B6 and E1 . I know that I need a row of the first one and a column of the second one. So I could just use ROW and COLUMN functions to get the numbers. After that, I need to find an intersecting cell. Which would be E6 in this example. I would just use INDEX(A1:Z100;ROW;COLUMN) but I don't know the exact area that I'm going to need - it

Excel formula to output date excluding weekends

微笑、不失礼 提交于 2019-12-24 17:32:23
问题 I need an Excel formula that starts with 1/1/2016 and can output the date in dd/mm/yyyy format for the rest of the year excluding weekends. I did have this: =WORKDAY.INTL(1/1/2016,365,2) but it only outputs 511 which is 25/05/1901 and that is irrelevant for me. 回答1: I think the problem lies in the fact that you use 1/1/2016 in the formula directly, and it is interpreted as a number instead of a date. The following setup worked for me: A1 =1/1/2016 B1 =WORKDAY.INTL(A$1, 1, 1) B2 =WORKDAY.INTL

Hibernate Oracle INTERVAL EXPRESSION and Oracle 11g Dialect

随声附和 提交于 2019-12-24 17:24:49
问题 I need to use a INTERVAL EXPRESSION for a calculated field. like below: @Formula(" SYSDATE - INTERVAL '1' HOUR * SHOW_LIMIT_HOURS ") private Date showLimitDate; However, hibernate produces the following SQL fragment considering this expression like a column. and product0_.sold_at > ( SYSDATE - settings0_.INTERVAL '1' settings0_.HOUR * setting0_.SHOW_LIMIT_HOURS ) Anybody could help me ? 回答1: After 2 days suffering, analysing AST processing of hibernate source code i finally gave up !! =P ..

How to use constructed formula with glm.mids

故事扮演 提交于 2019-12-24 17:15:49
问题 Working with a large number of variables and addressing them with constructed formula (via paste0() ) using variables passed to functions. I have stumbled across a problem/bug I cannot figure out. Easiest explained with a toy example: library(mice) imp2 = mice(nhanes) # So both these models run fine: mod1 <- glm(bmi ~ hyp + age, data=nhanes) mod1.im <- with(imp2, glm(bmi ~ hyp + age)) # However if I try to pass a formula to glm() in the with() I get an error formula = bmi ~ hyp + age mod2 <-