formula

Reference a range using column number

て烟熏妆下的殇ゞ 提交于 2020-01-02 03:27:06
问题 I'm looking for something rather simple, but I've been trying to do it for quite some time now. I need to get values from a column. Lets say I have several columns with headers and I need to pull data from a column with a specific header. I can easily get it's number by using MATCH to look through the row with headers. Now that I have number - I need to pull say 10 cells from this column right below the header. For example if headers are in the first row and the one I need is in the E column

Replacing one character with another in a string

谁都会走 提交于 2020-01-01 23:58:24
问题 I have a data like below: A:B:C:D and I want to replace the C with data (say, Z ) so that it may look like A:B:Z:D How can I do it? 回答1: =SUBSTITUTE(A1,"C","Z") Although I wasn't clear on whether you wanted G or Z , you mentioned G but your example output shows Z . 回答2: If you have A:B:C:D in cell A1, then this works: =CONCATENATE(MID(A1, 1, SEARCH(":", MID(A1, SEARCH(":", A1) + 1, LEN(A1) - SEARCH(":", A1) + 1)) + SEARCH(":", A1)), "Z", MID(MID(MID(A1, SEARCH(":", A1) + 1, LEN(A1) - SEARCH("

Excel formula position of minimum value

こ雲淡風輕ζ 提交于 2019-12-31 05:10:19
问题 EDIT: Likely an easy question, basically I have three values, let's say 9, 4 and 7 in different cells ( not in a table) , I want to find the minimum in an order then return its relative position, for example: 9,4,7 would return 2 as 4 is the minimum and is positioned second. What is the correct excel formula to do so? Thanks . Solution: Thanks all for your help, I didn't think excel could do if it wasn't continuous. I've ended up using a series of nested IF statements, an AND statement and <

Distinct/Unique count with criteria

筅森魡賤 提交于 2019-12-31 04:24:08
问题 Source File Calculation sheet Hi, I'm trying to calculate the unique counts of column C of my source file Product (Import ID) with criteria it matches column B - Manufacturer (Import ID). Googled around and used below formula but returned no results. Anyone could help me where went wrong ?? =SUM(IF(FREQUENCY('Report 1'!C:C,'Report 1'!C:C)>0,('Report 1'!B:B='mapped stat'!B55)*1,0)) Where Report1 column C is the unique count range I'm trying to count & Report1 column B is the condition/criteria

Formula in Netsuite Saved Search

笑着哭i 提交于 2019-12-31 03:46:07
问题 I have a problem here. In Column 1 I have count of All he transaction, In column 2 I have Count of transaction of specific status. In column 3 I want the percentage of above 2; like count of specific transaction/Count of total. Is it possible in Netsuite? 回答1: Actually there is an interesting feature that makes this possible. Formula fields that have aggregate functions work when the row has an aggregate on it. So for instance if you wanted to see a percentage of orders with status Billed on

How to write Mathematical formula with “^” (caret) in JavaScript?

拜拜、爱过 提交于 2019-12-31 02:58:11
问题 I need some help how to make this math formula in javascript. i have tried searching but couldn't really find cause i dont even know what ^ is called in English. Thanks in advance Math.floor(20*(1.1^(x-10))); 回答1: Math.floor(20*(Math.pow(1.1, (x-10)))); 回答2: ^ is the bitwise XOR operator - not what you want. Use the Math.pow function for exponentiation: Math.floor( 20 * (Math.pow(1.1, x - 10)) ); Set this up in a function so you can use x for whatever value it may be: var eq = function(x) {

How to determine luminance %?

心已入冬 提交于 2019-12-31 00:58:09
问题 According to http://www.workwithcolor.com/color-luminance-2233.htm, RED (#FF0000) has Luminance: 54%. and light pink (#FF8080) has Luminance: 89%. Our designers like it but how is it determined? Try here: http://www.workwithcolor.com/hsl-color-schemer-01.htm I tried using relative luminance formula published by W3C and although the range is [0,1], red is 0.21 and white is 1.00 . I'm thinking, maybe what workwithcolor does is first covert the color into grayscale, and read the luminance of the

Conditional group SUM in Crystal Reports

余生长醉 提交于 2019-12-30 22:52:42
问题 I've been doing some accounting reports and have been summing up my different currencies using a formula IE CanadianCommissionFormula if {myData;1.CurrencyType} = "CDN" then {myData;1.Commission} else 0 CanadianCommissionSum SUM({@CanadianCommissionFormula}) Then I'd just display the CanadianCommissionSum at the bottom of the report and things were great. I've just come across the requirement to do this, but grouped by Sales Rep. I tried using my previous formula, but this sums for the whole

Conditional group SUM in Crystal Reports

假如想象 提交于 2019-12-30 22:52:13
问题 I've been doing some accounting reports and have been summing up my different currencies using a formula IE CanadianCommissionFormula if {myData;1.CurrencyType} = "CDN" then {myData;1.Commission} else 0 CanadianCommissionSum SUM({@CanadianCommissionFormula}) Then I'd just display the CanadianCommissionSum at the bottom of the report and things were great. I've just come across the requirement to do this, but grouped by Sales Rep. I tried using my previous formula, but this sums for the whole

Google Apps Script to VMerge tables WITH FORMATTING

霸气de小男生 提交于 2019-12-30 13:12:52
问题 Does anyone know if there is a Google apps script out there that does what VMerge does but keeps the formatting of the tables being merged together? (in Google Spreadsheets) VMerge is a script that can be used as a custom formula but a script that I can trigger myself will do just fine too. Any help would be much appreciated. 回答1: If you need a separate script to bring over the formatting... function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var s = ss.getSheetByName(