excel-2016

Excel 2016: Searching for multiple terms in a cell

岁酱吖の 提交于 2019-12-11 05:29:59
问题 I'm trying to do a search for multiple strings in a cell with an OR-condition in Excel 2016. E.g. I have a string abcd1234 and I want to find ab OR 12 . I'm using the german version where the function SEARCH is called SUCHEN and it should behave the same way. I found this answer which suggests this solution: SEARCH({"Gingrich","Obama","Romney"},C1) . I also found this website which suggests the same syntax: SEARCH({"red","blue","green"},B5) Same with this website: SEARCH({"mt","msa","county",

Error: Microsoft Excel has stopped working - But I didn't change anything

天大地大妈咪最大 提交于 2019-12-11 00:34:51
问题 I have an inherited spreadsheet that automatically runs some VBA code and then exits. This was last run in early October and ran fine. Now, it fails with this error: Microsoft Excel has stopped working Windows can try to recover your information and restart the program. -> Restart the program -> Debug the program If I try restarting, it gives me Automation error Exception occurred. (Actually, it usually only gives me the option to close or debug the program, but I got the restart option once,

Relative path for Folder.Files

試著忘記壹切 提交于 2019-12-10 18:45:55
问题 I have an Excel file, and in the same folder I have a folder with CSV files I want to include. Using the From Folder query thing, the first step will give the following query: = Folder.Files("D:\OneDrive\Documents\Health\Concept2") Now, this path will not be the same on my laptop for example, but the Excel file will always be in the Health directory... I get an error if I try to just pass a relative path to Folder.Files , but is there a way to work around this? A fancy function? Some variable

How do I pass a range obj variable to a sub in Excel VBA (2016) [duplicate]

帅比萌擦擦* 提交于 2019-12-10 12:01:59
问题 This question already has an answer here : Array argument must be ByRef (1 answer) Closed 2 years ago . Given the following code: I can not seem to successfully pass a Range Object Variable from one sub-function to another. I spent an entire day researching, and experimenting before I swallowed pride and came here. Please read the comments below, and reply with any ideas you have regarding why the LAST two lines will not behave. Public Sub doSomethingToRows(ROI As Range) *'do Something with

Excel JS Add-In works in Excel but not Excel Online

微笑、不失礼 提交于 2019-12-10 11:46:50
问题 I've built an Excel JS Task Pane add-in using the WoodGrove Expense Trends sample and have validated that it runs correctly in Excel 2016 on my machine. However, when I go to Excel Online and try to add the add-in (via uploading the manifest from my machine), I get "Your add-in manifest is not valid." I'm not sure what it is about this manifest that's valid on my machine but not in Excel Online. Anyone encountered this before or have any diagnosis ideas? It's somewhat akin to banging my head

how to read the amount of used or free memory in Excel 2016 VBA

喜欢而已 提交于 2019-12-10 09:23:17
问题 I can't seem to find a VBA command that returns the memory in use or the memory available. In Excel 2013 there was Application.MemoryUsed but when I try that in Excel 2016 I get "Type mismatch", regardless if I use dim myVar as variant myvar = Application.MemoryUsed or MsgBox CStr(Application.MemoryUsed) It's probably a simple thing. Or? 回答1: I found the answer shortly after I put the question. found here: https://social.msdn.microsoft.com/Forums/office/en-US/e3aefd82-ec6a-49c7-9fbf

Finding a string in the middle of a path

≯℡__Kan透↙ 提交于 2019-12-08 15:44:39
I try to find a string in the middle of a path. I am encountering issues with 'finding' backslashes after two backslashes. The below two formula both get me the same number. I believe it is because after the second backslash it is missing the '+1', so the third starts counting again at the second one. How can I increment the following 'backslash counting' in order to access parts further down the path? \path1\path2\path3\path4\path5 =FIND("\";A2;FIND("\";A2; FIND("\"; A2; FIND("\"; A2)+1))) This starts with 'path2'. =FIND("\";A2;FIND("\";A2; FIND("\"; A2; FIND("\"; A2; FIND("\";A2)+1)))) This

Excel - How to reference a value from another sheet with a reference from current sheet

雨燕双飞 提交于 2019-12-08 11:09:13
问题 I have a document with 2 sheets: sheet1 and sheet2 . In sheet1 , in column A I have =RANDBETWEEN(1,100) values. On the second column B , I want to reference values from column A from sheet2 , however using the indices pointed out in column A from sheet1 . I tried with the following command, =sheet2!$A$(sheet1!A1) but with no success. Can you please recommend me a solution to this problem? 回答1: If your set up is thus (not entirely clear on this from your question): On Sheet1 Formula in A1

Finding a string in the middle of a path

删除回忆录丶 提交于 2019-12-08 08:34:47
问题 I try to find a string in the middle of a path. I am encountering issues with 'finding' backslashes after two backslashes. The below two formula both get me the same number. I believe it is because after the second backslash it is missing the '+1', so the third starts counting again at the second one. How can I increment the following 'backslash counting' in order to access parts further down the path? \path1\path2\path3\path4\path5 =FIND("\";A2;FIND("\";A2; FIND("\"; A2; FIND("\"; A2)+1)))

Connecting to Oracle Database through Excel

拈花ヽ惹草 提交于 2019-12-08 04:18:18
问题 I'm trying to connect to an Oracle Database on our server from an Excel sheet, but am having trouble understanding why. I currently have both 32-bit and 64-bit Oracle 12c installed in different ORACLE_HOME s and have a 32-bit installation of Excel on my 64-bit computer. I'm trying to connect to an Oracle Database in Excel using the New Query wizard. When I click From Oracle Database I get the following error/message. I can continue with my current provider, but when I actually try to connect