excel-formula

Text and Number Format on Excel

梦想与她 提交于 2020-01-05 07:46:20
问题 i have question that when i want to compare between a1= 1.3 b1= 3 and a2= 1.3 b2= 2 on excel for example =IF(a1>a2,"Yes",IF(a1=a2,IF(b1>b2,"Yes","No"),"no")) first time it's okay but then i changed value from b1 =1 it changed to "no" then i changed it back to b1= 3 it's still "no" i think it concern on format in the cell another concern is if i use like 1.3.1 compare to 1.3.1.2 it doesn't have any problem but when i use only 1.3 (one decimal point) it alway have problem it's hard to explain

Text and Number Format on Excel

我的未来我决定 提交于 2020-01-05 07:46:11
问题 i have question that when i want to compare between a1= 1.3 b1= 3 and a2= 1.3 b2= 2 on excel for example =IF(a1>a2,"Yes",IF(a1=a2,IF(b1>b2,"Yes","No"),"no")) first time it's okay but then i changed value from b1 =1 it changed to "no" then i changed it back to b1= 3 it's still "no" i think it concern on format in the cell another concern is if i use like 1.3.1 compare to 1.3.1.2 it doesn't have any problem but when i use only 1.3 (one decimal point) it alway have problem it's hard to explain

EPPlus Conditional Formatting String Length of Entire Column

北城余情 提交于 2020-01-05 07:43:13
问题 I am using EPPlus to generate Excel documents with validation and conditional formatting. I want to check the length of text in a cell and fill it with a color if it is greater than a specified length. I want this to be done for an entire column. var address = new ExcelAddress("$A:$A"); var condition = workSheet.ConditionalFormatting.AddExpression(address); condition.Formula = "=IF(LEN(A1)>25, TRUE, FALSE)"; condition.Style.Fill.PatternType = OfficeOpenXml.Style.ExcelFillStyle.Solid;

Generate an array of 0 and 1 with given conditions

三世轮回 提交于 2020-01-05 06:39:11
问题 How does one generate an array according to value in cells? For example, if (A1,B1) is (3,0), (A2,B2) is (2,1), and (A3,B3) is (2,0) (this first number depicts how many of the second number in the array), how does one obtain an array of {0,0,0,1,1,0,0}? In a general form, if I have (i,0), (j,1), and (k,0), I would like to get an array of {i zeros,j ones, k zeros}. Several Excel functions can return an array, such as OFFSET, INDEX. I don't know any way to concatenate arrays. Any way to do this

Excel: Sum values based on values in another column and mapped values

落花浮王杯 提交于 2020-01-05 05:40:28
问题 I have the following table On each day a single sport activity is organized and attending students receive bonus points. Students can attend activities each day to receive points. Based on existing columns I need to calculate total bonus points for each student (column I) If in column D I had number of points for that day I could solve this with a SUMIF but as that is not the case I am not sure how to incorporate values from F which I need for summing. Any help would be greatly appreciated.

Round to two decimal places

蹲街弑〆低调 提交于 2020-01-05 04:36:11
问题 In the formula bar the data shows up as 69.849999999 and in the cell as 69.85 . I am trying to get that number in the formula bar as 69.85 . I tried Copy and Paste Values and almost everything else that I can think of. Even formatting the cell as a number with only two decimal places. Nothing is working. Any ideas? 回答1: Try: =ROUND(A1,2) then select, Copy, Paste Special, Values. 回答2: The following will radically change your data so use it with caution; possibly even on a backup copy until you

Is there such thing as a VLOOKUP that recognises repeated numbers?

不问归期 提交于 2020-01-05 04:29:06
问题 I have a list of values in column A on an excel TAB and on the column B next to it I have a list of words. On another TAB, I'm trying to retrieve the words from B where A has the smallest value, then the 2nd smaller value, 3rd, etc. Example: Column A would have (2,3,3,6,8) and B (car,dog,cat,house,boat) I firstly created a column where I retrieved the smallest values: On column X1 I added: SMALL('Table'!$A:$A,1) On column X2 I added: SMALL('Table'!$A:$A,2) etc... and then a VLOOKUP worked for

EXCEL- Count instances that have matching combinations

拜拜、爱过 提交于 2020-01-05 03:46:13
问题 I’m pretty good at excel but for some reason can’t find the right solution to this problem (maybe I’m over complicating it): Basically I have 2 columns with info like below: Column 1 Column 2 A Red A Blue A Yellow B Blue B Green B Brown C Red C Blue C Brown What I want is to create a cross tab type of table which counts how many items in column 1 have the correct combination of values in column 2 For instance, I’d expect the result below: Red Blue Brown Red 2 2 1 Red-Red would evaluate to 2

Extract numeric portion from an alphanumeric string in Excel 2010

社会主义新天地 提交于 2020-01-05 03:33:18
问题 I would like to extract all the numbers from an alphanumeric string in excel. I have an excel sheet with list of alphanumeric strings as shown below and I would like to extract all the numbers from the alphanumeric string and store it in a new cell I already tried the below formula found online but it outputs '6' as result but it isn't right, so can anyone please help me with it? SUM(MID(0&A2,LARGE(ISNUMBER(-- MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1))*ROW(INDIRECT("1:"&LEN(A2))), ROW(INDIRECT("1

(excel 2013) 3D formula with VLOOKUP function

痴心易碎 提交于 2020-01-04 21:39:13
问题 some time ago i was asking similar question in here 3D formula with the same position of cells but now i am facing much more difficult problem. I have a sheet named Storage and other sheets called simply shop1, shop2. In storage i have all of my good which are sold but not in every shop i sell the same and all goods. so in some shop you dont find specific good for example. And now what i want. In every sheet i store number of sold goods and in storage i would like to have the SUM number of