[Solved] Identify and output first and last records by group [closed]

If able to sort by date within task and to ensure that any subsequent sheet starts at a new task and the last ColumnB and ColumnC values on each sheet are repeated in the row immediately below, a formula might suit: =IF(A1<>A2,A1&”|”&VLOOKUP(A1,A:B,2,0)&”|”&C1&”|”&B2-VLOOKUP(A1,A:B,2,0),””) with the columns where the formula output is evident filtered to exclude blanks, … Read more

[Solved] MS Excel program [closed]

=If(e37=’inclusive’;sum(f3:f35)*1,36;sum(f3:f35)) assuming that g3 to g35 is the range of numbers to use in the calculation and taxes are 36% and the term inclusive should be exact what ia used in the select list of course 3 solved MS Excel program [closed]

[Solved] Macro concatenating strings + number + date

try this Option Explicit Sub main() Dim data As Variant With Range(“A1”).CurrentRegion data = .Resize(.Rows.Count – 1, 4).Offset(1).Value End With ReDim wynik(1 To UBound(data)) As Variant Dim i As Variant For i = 1 To UBound(data) data(i, 3) = Format(data(i, 3), “yyyy-mm-dd”) wynik(i) = Join(Application.index(data, i, 0), “_”) Next Range(“E2”).Resize(UBound(data)).Value = Application.Transpose(wynik) End Sub 3 … Read more

[Solved] seeking a solution for when user decrements a cell’s value, another cell (different column) will increment that same value

Here is an example for columns A and B. Insert this event macro in the worksheet code area: Private Sub Worksheet_Change(ByVal Target As Range) Dim A As Range, OldValue As Variant, NewValue As Variant, Delta As Variant Set A = Range(“A:A”) If Intersect(Target, A) Is Nothing Then Exit Sub If Target.Count > 1 Then Exit … Read more

[Solved] Need VBA Code to removing Dot (.) from the amount and it should display number with length of 6 digits [closed]

add this into a seperate module Function sixdigits(amount) As String Dim strAmount As String strAmount = Replace(Left(amount, 6), “.”, “”) ‘ use replace and left to create a string of 6 characters Do Until Len(strAmount) >= 6 ‘ loop until 6+ strAmount = “0” & strAmount Loop: sixdigits = strAmount End Function then in your … Read more

[Solved] If a cell contains mulitple instances of specific text, then extract top 3 of the specified text found in the cell

google-spreadsheet solution: ‘for a CSV of all matches =arrayformula(TEXTJOIN(“, “, TRUE, IF(ISNUMBER(SEARCH(E2:E8, A2)), E2:E8, “”))) ‘for a CSV of the first three matches =replace(arrayformula(TEXTJOIN(“, “, TRUE, IF(isnumber(search(E3:E9, A3)), E3:E9, “”))), find(“|”, substitute(arrayformula(TEXTJOIN(“, “, TRUE, IF(isnumber(search(E3:E9, A3)), E3:E9, “”))), “,”, “|”, 3)&”|||”), len(A3), “”) excel-2016textjoin solution: ‘for a CSV of all matches input as array formula … Read more

[Solved] Deleting duplicates, keeping lowest value in different column [closed]

You can add a column where you could check if PPFROM (the value) is the min of the group (ARTICLE). Please adjust the references inside the formula. This is the formula: =IF(MINIFS($E$4:$E$10;$M$4:$M$10;M4)=E4;”Keep”;”Delete”) After that you can filter by the new column and delete the rows marked with “Delete”. solved Deleting duplicates, keeping lowest value in … Read more

[Solved] Copying a variable contained in cell into another cell

Try the code below, explanations inside the code’s comments: Option Explicit Sub ExtractAfterShowOnly() Dim WordsArr() As String Dim i As Long Dim MatchString As String ‘ use Split to read each section between “https://stackoverflow.com/” as arra element WordsArr = Split(Range(“A2”).Value2, “https://stackoverflow.com/”) ‘ loop through array For i = 1 To UBound(WordsArr) ‘ if there’s a … Read more