Tag: string

Excel的VBA的 – 连接到SQL与信任的连接(没有uid / pwd)

有没有办法让Excel连接到Sql Server使用当前用户的networkingWindows身份validation(可信连接/集成安全性)? 我不想依靠一个SQLlogin或在我的代码中有一个用户名/密码。

如何在电子表格中输出最常见的值和该值的出现次数?

有一个列的Values与一些Strings ,然后显示下面最常见的值和该值的出现次数(即模式的Strings )。 这是一个例子。 +——–+ | Values | +——–+ | AA | +——–+ | BB | +——–+ | AA | +——–+ | AA | +——–+ | GG | +——–+ | DD | +——–+ | DD | +——–+ | | +—————–+——–+ | Most Common | AA | +—————–+——–+ | Number of times | 03 | +—————–+——–+ […]

DLL函数不能在VBA环境中工作,但在Excel VBA中工作

我有以下function,包含在我写的(c + +),我在Excel中debugging的DLL,工作得很好: float _stdcall ReturnT(LPCSTR FileName) { // Extracts the generic language string from the (importing BSTR // would import kanji or whatever) and converts it into a wstring wstring str = CA2T(FileName); // Sets the string to find as _t or _T followed by 2 or 3 digits and a subsequent _ or […]

VBA – 转换为date

我还有一个问题: 我想从string转换为VBA中的date string看起来像:YYYY-DD-MM date应该是这样的:DD.MM.YYYY 我知道,通常你使用方法cdate()来做到这一点,但在这里不起作用。 我认为这是因为string的结构不好转换。 谢谢你的帮助 InformatikBabo

在java中切片string

在java中如何切片string? 我从csv和xls获取行,例如单元格中的数据就是这样的 14.015_AUDI 我怎么能说,它必须只看到部分之前_? 所以操纵后,我必须有14.015。 在rails中,我将使用gsub来做到这一点,但在java中如何做到这一点?

Excel VBA – 删除string内容最多* word *

我试图删除string内容到string中包含的某个单词。 例如 "Emily has wild flowers. They are red and blue." 我想用VBA来replace它 "They are red and blue." 即将所有内容删除到“他们”一词。 我不知道string的内容和它包含的字符的数量。 我不知道如何做到这一点,我真的很感激你的帮助!

Excel – 匹配来自选项列表的子string – INDEX,MATCH和FIND一起使用

我想在video标题列表中search特定的电影标题,searchMATCH,并使用索引返回其描述。 我知道这可以通过列A中的filter中的文本search来完成,但我想用公式来完成。 **编辑:我认为这个问题的第一个版本,看起来像我只有一些电影和标题。 这些数据可能有助于: Column A: 2,000 Total Video Titles (movie titles can appear more than once) Column E: 50 Movie Titles Column F: 50 Movie Descriptions 例: AB Title Description Spiderman Review and BTS Best Dark Knight clips Bloopers: Liar Liar Interviews with The Departed cast .1996多个video标题 在另外两栏中,我有标题和说明: EF Title Description Dark Knight Dark […]

使用MS excel将MM:SS.ms转换为秒

我正在寻找从单元格转换一个整洁的方式 Minutes:Seconds.Milliseconds Seconds.Milliseconds 即 11.111 = 11.111 1:11.111 = 71.111 我现在有一些东西,但它有点hacky,我相信肯定有一些很好的excelfunction为我做这个:P 谢谢!

如何使用Excel函数获取string的最后一个字符?

如何使用Excel函数获取string的最后一个字符?

如何从string中find数字?

我需要从stringfind数字。 如何从VBA Excel中的string中查找数字?