excel-formula

Get maximum of comma-separated values in a cell

给你一囗甜甜゛ 提交于 2020-05-28 08:37:28
问题 In a cell I have comma-separated numbers. I would like to have the max value of these numbers. eg: A1 = "2,5,1,4" what should be the formula in B1 to return the value 5? 回答1: Assuming A1 contains a list of positive integers between 1 and 999 , separated by commas but with no spaces, you can use this formula to find the highest number present =MATCH(1000,INDEX(FIND(","&ROW(INDIRECT("1:999"))&",",","&A1&","),0)) That searches for all numbers between 1 and 999 and MATCH finds the "position" of

Get maximum of comma-separated values in a cell

强颜欢笑 提交于 2020-05-28 08:36:16
问题 In a cell I have comma-separated numbers. I would like to have the max value of these numbers. eg: A1 = "2,5,1,4" what should be the formula in B1 to return the value 5? 回答1: Assuming A1 contains a list of positive integers between 1 and 999 , separated by commas but with no spaces, you can use this formula to find the highest number present =MATCH(1000,INDEX(FIND(","&ROW(INDIRECT("1:999"))&",",","&A1&","),0)) That searches for all numbers between 1 and 999 and MATCH finds the "position" of

Excel: How to gather unique values in one column that are associated with duplicates in another column?

ぐ巨炮叔叔 提交于 2020-05-27 06:14:22
问题 With data such as this: Column A Column B 1 98 1 12 1 21 1 31 2 37 2 40 3 48 4 34 4 88 4 74 4 99 7 82 7 19 7 29 7 50 7 95 7 85 where all values in Column B are unique, and Column A has multiple duplicates. How can I group the A values in one column, and display concatenated values of B in another, like this: Column C Column D 1 98,12,21,31 2 37,40 3 48 4 34,88,74,99 7 82,19,29,50,95,85 I've tried with a combination of concatenate and index and match, but it all just turns into a mess. Any

Excel: How to gather unique values in one column that are associated with duplicates in another column?

为君一笑 提交于 2020-05-27 06:13:47
问题 With data such as this: Column A Column B 1 98 1 12 1 21 1 31 2 37 2 40 3 48 4 34 4 88 4 74 4 99 7 82 7 19 7 29 7 50 7 95 7 85 where all values in Column B are unique, and Column A has multiple duplicates. How can I group the A values in one column, and display concatenated values of B in another, like this: Column C Column D 1 98,12,21,31 2 37,40 3 48 4 34,88,74,99 7 82,19,29,50,95,85 I've tried with a combination of concatenate and index and match, but it all just turns into a mess. Any

Excel: How to gather unique values in one column that are associated with duplicates in another column?

耗尽温柔 提交于 2020-05-27 06:12:14
问题 With data such as this: Column A Column B 1 98 1 12 1 21 1 31 2 37 2 40 3 48 4 34 4 88 4 74 4 99 7 82 7 19 7 29 7 50 7 95 7 85 where all values in Column B are unique, and Column A has multiple duplicates. How can I group the A values in one column, and display concatenated values of B in another, like this: Column C Column D 1 98,12,21,31 2 37,40 3 48 4 34,88,74,99 7 82,19,29,50,95,85 I've tried with a combination of concatenate and index and match, but it all just turns into a mess. Any

How to convert many columns to one column in excel but keep the 1st cell of each column and repeat it in new rows?

醉酒当歌 提交于 2020-05-19 02:48:57
问题 I have and excel document that looks like this: and i want it to be like: *comma (,) means that data are in different cells horizontally. is there any vb macro or an expression to do it? 回答1: If all of the Rows have the same number of columns, then you can use INDEX , INT , COUNTA and MOD to break this down. Column A: =INDEX(Sheet1!$A$1:$D$2,1+INT((ROW()-1)/(COUNTA(Sheet1!$1:$1)-1)),1) Column B: =INDEX(Sheet1!$A$1:$D$2,1+INT((ROW()-1)/(COUNTA(Sheet1!$1:$1)-1)),2+MOD(ROW()-1,COUNTA(Sheet1!$1:

how to check if number begins with “+” in excel?

左心房为你撑大大i 提交于 2020-05-17 08:49:29
问题 I need to check if a number begins with "+" or "00" or "(" but when I try with this formule: =IF(LEFT(E4="+",1),1,0) I get an error #VALUE 回答1: Try to include OR logic including a wildcard in a COUNTIF and use that in an IF : =IF(SUM(COUNTIF(E2,{"+*","(*","00*"})),"This","That") If you got leading spaces in front of the + then just add a space before the criteria. I guess you could also add another criteria like " +* . Unfortunately TRIM() won't work within a COUNTIF . 来源: https:/

Excel lookup function taking only first cell

三世轮回 提交于 2020-05-17 08:49:25
问题 I have a personals & holiday table. I want to transfer data to another table. But a personal (emre) has two holiday date. Lookup function taking only first data. 回答1: Can you try it please? You should enter Ctrl + Shift + Enter to activate the array formula. =INDEX(Sayfa1!$B$2:$B$6,MATCH(TRUE,EXACT(A2,Sayfa1!$A$2:$A$6),0)) Useful Link: https://www.extendoffice.com/documents/excel/2699-excel-vlookup-find-first-2nd-match.html If it is too complicated for you research xlookup. https://support

Excel formula to find a specific number in variant variable

前提是你 提交于 2020-05-17 05:57:10
问题 I have the following how can i get the sum number from T1 example or A1? The Variable in Column A can be variant. Result in C2 should count how many T1 in Column A or how many A1 in Column A and so on for other Values. 回答1: Try following array formula: =SUM(IFERROR(SEARCH(C1,RIGHT($A$1:$A$12,LEN(C1)))*((SUBSTITUTE($A$1:$A$12,C1,""))),0))+COUNTIF($A$1:$A$12,C1) Array formula after editing is confirmed by pressing ctrl + shift + enter 回答2: As a follow-up on this older question I believe you

VBA is stopping before it is done

ぐ巨炮叔叔 提交于 2020-05-15 21:47:26
问题 I have a problem... I have two datasets in the same workbook on different sheets. The first column in both datasets are identifiers. In Sheet1 I have my dataset, and want to fill it with data from Sheet2 (which is also containing data (rows+Columns) that I do not want to use. I have a VBA that is working, BUT, it stops before it is done. E.g. I have 1598 Rows in Sheet2, but it stops working already after 567 rows.. Sub Test() Dim c As Range Dim j As Integer Dim Source As Worksheet Dim Target