[Solved] Excel Number Separation [closed]

A solution with a formula only: We assume that A1=1-3. Fill the following formula into A2 and copy it down. =IF(A1<>””,IF(ISNUMBER(A1),IF(A1+1<=VALUE(RIGHT(A$1,LEN(A$1)-FIND(“-“,A$1))),A1+1,””),VALUE(LEFT(A$1,FIND(“-“,A$1)-1))),””) The result will be 1 2 3 This works for any numbers devided by -. 1 solved Excel Number Separation [closed]

[Solved] Repeating Multiple Rows Multiple Times in Excel VBA, with Calculations [closed]

In my testing this does exactly what you asked for. You will need to rename the Sheets depending on what your sheet names for the original data sheet name is and your output / result sheet name is. Option Explicit Sub splittinghours() Dim DataSheet As Worksheet Dim ResultSheet As Worksheet Set DataSheet = ThisWorkbook.Sheets(“Sheet1”) Set … Read more

[Solved] how to locked excel by cpuid in vba [closed]

Declare the items as Object. You also have your For Each loop out of order. Function GetCPUID() As String Dim cimv2 As Object Dim PInfo As Object Dim PItem As Object Dim PubStrComputer As String PubStrComputer = “.” Set cimv2 = GetObject(“winmgmts:\\” & PubStrComputer & “\root\cimv2”) Set PInfo = cimv2.ExecQuery(“Select * From Win32_Processor”) For Each … Read more

[Solved] Macro to delete rows if cell begins with specific number

For Column A (excluding first row for header)… Option Explicit Sub Delete_3_4() Dim ws As Worksheet: Set ws = ThisWorkbook.Sheets(“Sheet1”) Dim SearchRange As Range, SearchCell As Range, DeleteMe As Range Set SearchRange = ws.Range(“A2:A” & ws.Range(“A” & ws.Rows.Count).End(xlUp).Row) For Each SearchCell In SearchRange If Left(SearchCell, 1) = 3 Or Left(SearchCell, 1) = 4 Then If … Read more

[Solved] Is it possible to count date stamped variables accross multiple sheets in Excel 2010 and list it by date? [closed]

Edit: The code below should now arrange the totals by date. Private Sub Total() Dim apple As Integer Dim banana As Integer Dim grape As Integer Dim pear As Integer Dim lemon As Integer Dim orange As Integer Dim sheet As Worksheet Dim i As Integer Dim lastRow As Integer Dim j As Integer Dim … Read more

[Solved] Excel macro to sort multiple columns of a selection [closed]

If you are Sorting columns A to H you could use the below Columns(“A:H”).Select ActiveWorkbook.Worksheets(“Sheet1”).Sort.SortFields.Clear ActiveWorkbook.Worksheets(“Sheet1”).Sort.SortFields.Add Key:=Range(“B:B”), _ SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal ActiveWorkbook.Worksheets(“Sheet1”).Sort.SortFields.Add Key:=Range(“H:H”), _ SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal With ActiveWorkbook.Worksheets(“Sheet1”).Sort .SetRange Range(“A:H”) .Header = xlYes .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With All you needed to do was record the macro … Read more

[Solved] Excel cells matching in VBA [closed]

You can accomplish this with a VLOOKUP between two books. The guts of the equation are below. You wont actually type in the ‘[book2]SheetName’ portion, this will need to reflect the name of your other workbook and the sheet that you are looking at within that book. A2 = Look up value (in your example … Read more

[Solved] How to create a combination generator where order does not matter but being limited from a specific range of Sum? Using Excel VBA macro [closed]

How to create a combination generator where order does not matter but being limited from a specific range of Sum? Using Excel VBA macro [closed] solved How to create a combination generator where order does not matter but being limited from a specific range of Sum? Using Excel VBA macro [closed]