excel-formula

Find column and row name based on search criteria

穿精又带淫゛_ 提交于 2020-07-05 11:42:30
问题 I have the following Excel spreadsheet: A B C D E F G 1 Q1 Q2 Q3 Q4 Search criteria: 60 2 Asset 1 15 85 90 70 Column name: Q4 3 Asset 2 40 80 45 60 Row name: Asset 2 4 Asset 3 30 50 55 10 5 In Cells A1:E4 I have different assets with their performance from quarter Q1-Q4 . In Cell G2 and G3 I want that the assets and the quarter are displayed based on the value that is put in Cell G1 . In this case the search criteria is 60 so the result is column name Q4 and row name Asset 2 . With VLOOKUP or

Find column and row name based on search criteria

隐身守侯 提交于 2020-07-05 11:41:07
问题 I have the following Excel spreadsheet: A B C D E F G 1 Q1 Q2 Q3 Q4 Search criteria: 60 2 Asset 1 15 85 90 70 Column name: Q4 3 Asset 2 40 80 45 60 Row name: Asset 2 4 Asset 3 30 50 55 10 5 In Cells A1:E4 I have different assets with their performance from quarter Q1-Q4 . In Cell G2 and G3 I want that the assets and the quarter are displayed based on the value that is put in Cell G1 . In this case the search criteria is 60 so the result is column name Q4 and row name Asset 2 . With VLOOKUP or

Excel - Extract substring(s) from string using FILTERXML

醉酒当歌 提交于 2020-06-30 04:38:55
问题 Background Lately I've been trying to get more familiar with the concept of changing a delimited string into an XML to parse with Excel's FILTERXML and retrieve those substrings that are of interest. Please note that this function came available from Excel 2013 and is not available on Excel for Mac nor Excel Online. With a delimited string, I meant anything from a normal sentence using spaces as delimiters or any other combination of characters that could be used to define substrings within a

VBA Excel autofill the table based on userform, when data comes from the other sheet

喜夏-厌秋 提交于 2020-06-29 03:41:36
问题 Good afternoon, I would like to get the result in the table, where the data comes from my user form. As you can see below, column H comprises the sum of column G from my active worksheet and column AD from my external worksheet, which is "Formulas". Now, I have the user forum, which is going to fill up my whole row in the table as I input some data in this user form. The column H won't be input directly from the Userform, because it includes the formula mentioned above. I want to auto

Excel formula to add numbers stored as text

独自空忆成欢 提交于 2020-06-27 16:28:26
问题 My NodeJS program populates an excel formula in a cell which in turn calculates the sum of all the numbers in a column. The numbers are stored as text in the cells. The formula used is : =SUM(0+(I5:I19999)). All the numbers are present in column 'I' but not necessarily till 19999th row (few may be blank). However, the result of this formula is always #VALUE!. I can't seem to find the issue in this. Any help in this issue is really appreciated. Thanks! 回答1: Formula you are using to add numbers

Excel formula to add numbers stored as text

对着背影说爱祢 提交于 2020-06-27 16:28:10
问题 My NodeJS program populates an excel formula in a cell which in turn calculates the sum of all the numbers in a column. The numbers are stored as text in the cells. The formula used is : =SUM(0+(I5:I19999)). All the numbers are present in column 'I' but not necessarily till 19999th row (few may be blank). However, the result of this formula is always #VALUE!. I can't seem to find the issue in this. Any help in this issue is really appreciated. Thanks! 回答1: Formula you are using to add numbers

How can I use the WEEKNUM function in a statement in VBA?

拈花ヽ惹草 提交于 2020-06-27 13:10:11
问题 I want to write a VBA, to check if WEEKNUM or ISOWEEKNUM equal to the value, then run the rest of macro. I've tried to do that but I got an error because of using TODAY as arg. 回答1: Here is one way to use both WEEKNUM() and TODAY() in VBA: Sub dural() If Evaluate("=weeknum(today())") = 28 Then MsgBox 28 Else MsgBox "not 28" End If End Sub 回答2: Use the WorksheetFunction object or Excel Application object to call native functions into VBA. debug.print WorksheetFunction.WeekNum(Date) debug.print

Populate calculated values from other sheets into new sheet

安稳与你 提交于 2020-06-27 04:03:52
问题 I have excel which contains four sheets (say sheet1, sheet2, sheet3 and sheet4). I want to populate calculated values and other information from (sheet1, sheet2, sheet3) to sheet4. Both sheet1, sheet2 contains ID,Name, Age, Amount whereas sheet1 is static page and sheet2 is dynamic page. sheet3 will have ID, Name, Age, Contribution. once all these values are entered sheet4 should populate ID, Name, Age, Total(Amount * Contribution). Sheet 1: +--------------------------+ | ID | Name | Age |

Excel Change Row color at every change in value (non consecutive)

限于喜欢 提交于 2020-06-26 05:26:31
问题 In Excel, I want to change the color of the row at every change in a particular row value. The changed rows could be non-consecutive. For example: Customer Product Line Product 1 Outdoor Lawn Jarts 1 Indoor Nerf Hoops 2 Outdoor Ball Game 3 Indoor Fort Builder 4 Indoor Twist'Em 4 Indoor Silly Silly In this example, I would want customer 1 to be light blue; customer 2, white; customer 3 light blue; customer 4, white, repeating at every customer change. I'd prefer to use a formula if possible.

Convert three letter country codes to full country names

谁说我不能喝 提交于 2020-06-24 14:44:18
问题 I need to convert a few hundred three letter country codes (ISO 3166-1 alpha-3) to their full country name in MS EXCEL. I imagine this can be done with a VLOOKUP formula, does anyone have it handy? 回答1: OK, so this was pretty simple in the end. First I just created a list to be used in the vlookup array of the countries & codes in a new sheet: ABW Aruba AFG Afghanistan AGO Angola AIA Anguilla ALA Åland Islands ALB Albania AND Andorra ARE United Arab Emirates ARG Argentina ARM Armenia ASM