formula

Crystal Reports: Showing only first record in each group

北城以北 提交于 2019-12-13 20:25:30
问题 I searched to get the required answer but not found exactly what iam looking for - please help me. Please follow the steps i made in crystal report: Using crystal report command (i created a query to get the required business number) --> which gets 5 Business numbers Note: Every business is having many receipt numbers (1st installment receipt, 2nd installment receipts... like that....) - these receipt details are stored in table_receipts. In table_business - i have all details about business

Dynamic formula creation in R?

末鹿安然 提交于 2019-12-13 19:38:44
问题 Is it at all possible to use the lm() function with a matrix? Or maybe, the correct question is: "Is it possible to dynamically create formulas in R?" I am creating a function whose output is a matrix and the number of columns in the matrix is not fixed = it depends on the inputs of the user. I want to fit an OLS model using the data in the matrix. - The first column represents the dependent variable - The other columns are the independent variables. Using the lm function requires a formula,

How do I find a closest number in Excel and bring back a corresponding cell?

余生颓废 提交于 2019-12-13 18:42:35
问题 Row 1 : YORK / LEEDS / WINDSOR / CHESHIRE Row 2 : 10 / 8 / 6 / 9 So I want to find the closest match to York in the other data across each row, and bring back the title of the closest match. So the answer i want to bring back for row 2 (York = 10) is "CHESHIRE" as 9 is the closest to 10. Thank you! 回答1: If your data is in A1:D2 try this "array formula" =INDEX(B$1:D$1,MATCH(MIN(ABS(A2-B2:D2)),ABS(A2-B2:D2),0)) confirmed with CTRL + SHIFT + ENTER If 2 or more values are equally close then the

Highlight cells in a column depending on a letter present in cell range

六眼飞鱼酱① 提交于 2019-12-13 18:32:10
问题 I have a column indicating progress on projects (in percentages) which should turn red if in the corresponding rows there is no letter P . With the following formula something very strange happens: =ISERROR(FIND("p",$H5:$Y65)) So I have set P not being an error and the cell that doesn't contain P should be formatted red. However, with this formula, only if there is a P in the first column i.e. H does it format. The formula seems to ignore all the other columns after H. Any suggestions? 回答1:

Challenging formula to calculate amount of hours based on several criteria

﹥>﹥吖頭↗ 提交于 2019-12-13 11:14:25
问题 I am working on a business travel template where I am trying to incorporate some of our policies as follows (additional hours criteria below): In cell N15, I need the total number of hours to be added based on the criteria listed on the image below the scenario. I just need to find a formula to work out the number of additional hours. (Means of transport selection is a drop down, all available options are listed in this example.) 回答1: I think the result you want might be achieved with: =3

Excel - Multiple Cell Calculation

为君一笑 提交于 2019-12-13 10:24:43
问题 I'm a teacher and trying to create a mark sheet the problem I have is that assignments are marked using different schemes (i.e. % [1 - 100], Level [1 -4], Letter Grade [F - A]). The problem I have is that I only want to report using one marking scheme and need to convert or calculate the other marking schemes based on the scheme there is it is marked. I've made an excel worksheet which contains a student names and assignments. The sheet then has 3 other columns, one representing each scheme

Haversine formula in Java producing incorrect result

好久不见. 提交于 2019-12-13 09:49:01
问题 I am trying to use this implementation of Haversine formula given on wikipedia for trial but this formula is not giving expected result. public class Haversine { public static final double R = 6372.8; // In kilometers public static double haversine(double lat1, double lon1, double lat2, double lon2) { double dLat = Math.toRadians(lat2 - lat1); double dLon = Math.toRadians(lon2 - lon1); lat1 = Math.toRadians(lat1); lat2 = Math.toRadians(lat2); double a = Math.sin(dLat / 2) * Math.sin(dLat / 2)

How to divide items equally in 4 boxes? [closed]

我的梦境 提交于 2019-12-13 09:46:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Suppose i have 7 bags with different weight. Actually a php array contains this data. Bag A 60 Kg Bag B 80 Kg Bag C 20 Kg Bag D 10 Kg Bag E 80 Kg Bag F 100 Kg Bag G 90 Kg In php it will look like this Array ( [30] => 60 [31] => 120 [32] => 120 [33] => 60 [35] => 180 ) Now i have to divide all 7 bags in 4

Excel VBA look for values in other sheet and copy them

为君一笑 提交于 2019-12-13 09:40:49
问题 I have two excel sheets: "Sheet1" and "Sheet2". Sheet1 contains 3 columns with an N number of rows. Example: x y result A b B m L a A b B b Sheet2 contains 3 columns as well but with the result as an explanation for each x and y combination. Example: x y result A a 1 A b 2 A c 3 B a 4 Please note that A != a, and result is not always a numeric value. So basically I need to search Sheet2 for a given combination from values of Sheet1 and copy the result from Sheet2 to Sheet1. Can you give me

Counting Number of Months between Two Dates in Excel

元气小坏坏 提交于 2019-12-13 08:57:40
问题 So I am attempting to simply count the number of months bewtween an earlier date and today, which will be in the B:B column; once the number of months have been counted, the result is then multiplied by 28, then added back to the original date. Note the requirement: Result >= Today , so basically if the result is less than today it needs to add another 28 days. The current formula I made only works if the dates are in the current year (and I am not 100% sure if this formula works, it appears