excel

Use Excel Concatenate function

微笑、不失礼 提交于 2021-02-17 05:34:12
问题 I am trying to merge the data from three columns into one column in Excel. Example, i would like to merge Product, Location, and Key_id into one column Product Location Key_Id Car VA 86421910 Car VA 86424482 Car VA 86416836 Combined Column: Car 'VA', '86421910' Car 'VA', '86424482' Car 'VA', '86416836' I was wondering if there is a way in Excel that can do it? Thanks in advance! I was not doing a good job of accepting the answers in the past. I will do my part which is to accept the answer

vba check if directory exists, if exists exit sub else if does not exist, create

徘徊边缘 提交于 2021-02-17 05:21:13
问题 Ok so I have the following vba code which I am using to check if a directory exists and if not create the folder structure like so: If Dir("S:\Tasks\" & Range("C" & ActiveCell.Row).Value & "\" & Range("M" & ActiveCell.Row).Value & "\" & Range("Z" & ActiveCell.Row).Value, vbDirectory) = "" Then MkDir Path:="S:\Tasks\" & Range("C" & ActiveCell.Row).Value & "\" & Range("M" & ActiveCell.Row).Value & "\" & Range("Z" & ActiveCell.Row).Value MsgBox "Done" Else MsgBox "found it" End If So my

Problem a friend has getting Error 438 all the time

断了今生、忘了曾经 提交于 2021-02-17 05:21:10
问题 I sent a friend a workbook with a macro that includes some sorting. When he tries it he gets: Run-time error '438' Object doesn't support this property or method. He clicks Debug to see the offending code and is taken to a line or two of (fairly simple) data sorting. The text that gets highlighted is: ActiveWorkbook.Worksheets("Data Set").Sort.SortFields.Add2 Key:=Range( _ "H2:H8065"), SortOn:=x1SortOnValues, Order:=x1Descending, DataOption:= _ x1SortNormal Those 3 lines are it, part of a

Powershell Script Is Not Providing an Output with The Param Function Also Need the Output in an Excel Sheet

浪尽此生 提交于 2021-02-17 05:20:11
问题 What I am trying to achieve is an excel sheet which will contain the list of machines which are not reachable (current output displayed in the image). When I am trying to run the following script with the function, it's not working. How do I get this to work and implement the output into an excel sheet? I realize it's a two part question but I am new to powershell and I really can't figure this out. EDIT: Even after entering a path when the console prompts, nothing happens. OUTPUT: Data Which

Use Variable in multiple subs VBA

一世执手 提交于 2021-02-17 04:51:15
问题 So I'm using excel 2010, and right now, I'm trying to use calculate the value of a variable in one sub, and want it to be used in multiple subs, except I can't figure out how to do this. Here is an example of what I'm using in its most basic form Public Sub Calc() Dim i As Integer i = 10 - 5 End Sub 'Other sub that will use the value for i calculated in the Calc sub Sub Macro() y = i +5 End Sub How am I suppose to be able to use/pass this value for "i" in/into the sub macro? 回答1: Move the Dim

Change colour of words with capital letter [closed]

落爺英雄遲暮 提交于 2021-02-17 04:41:25
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . Improve this question I have a table with lots of word and need find words with capital letter and change its colour. For example: A1: event A2: Event A3: Happy day and should change the colour of the words to red in A2 and A3 but in A3 just the "Happy" word. I tried to solve

Change colour of words with capital letter [closed]

ⅰ亾dé卋堺 提交于 2021-02-17 04:39:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . Improve this question I have a table with lots of word and need find words with capital letter and change its colour. For example: A1: event A2: Event A3: Happy day and should change the colour of the words to red in A2 and A3 but in A3 just the "Happy" word. I tried to solve

Change colour of words with capital letter [closed]

▼魔方 西西 提交于 2021-02-17 04:39:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . Improve this question I have a table with lots of word and need find words with capital letter and change its colour. For example: A1: event A2: Event A3: Happy day and should change the colour of the words to red in A2 and A3 but in A3 just the "Happy" word. I tried to solve

How to COUNT between a date range if nested within another formula?

谁说胖子不能爱 提交于 2021-02-17 03:26:40
问题 I am trying to substitute '!!!!!!' for a formula to count the number of W in column P on sheet TRADE LOG between the dates of 01 Feb 2021 and 28 Feb 2021 in hardcoded format. This is the current formula : =IF(COUNTIFS('TRADE LOG'!P:P,"W",'TRADE LOG'!B:B,">="&DATE(2021,2,1),'TRADE LOG'!B:B,"<="&DATE(2021,2,28)),"!!!!!!","") Could anyone suggest what needs to be added in order to achieve this? To make this clearer, I want F16 in STATISTICS to count the number of W 's in sheet TRADE LOG column P

VBA Run-time error 438 appears when “paste” runs

血红的双手。 提交于 2021-02-17 03:22:19
问题 I'm just getting familiar with VBA and my code For k = 3 To ThisWorkbook.Sheets.Count ThisWorkbook.Sheets(k).Activate ActiveSheet.Cells(11, 2).Select lLastRow = Cells(Rows.Count, 1).End(xlUp).Row ActiveSheet.Range("A5:" & "A" & CStr(lLastRow)).Copy ' ThisWorkbook.Sheets(1).Cells("B" & CStr(lFirstRow) & ":B" & CStr(lLastRow)).Select ThisWorkbook.Sheets(1).Activate ActiveSheet.Cells(lFirstRow, 2).Select Selection.Paste 'Selection.PasteSpecial Paste:=xlPasteValues 'Selection.PasteSpecial Paste: