[Solved] EXCEL – Search formula with multiple criteria

The following array formula returns the first entry in column B where it is not null and also where column A has cell value aaaaa. = IFERROR(INDEX(B1:B6,MATCH(1,(A1:A6=”aaaaa”)*(B1:B6<>”null”),0)),”no match”) Note this is an array formula, so you must press Ctrl+Shift+Enter on the keyboard after typing the formula rather than just pressing Enter. To return a similar … Read more

[Solved] Sum unique names of column with thouthands of rows [closed]

Try this code below : Sub sumTotal() ‘dim array to store unique names Dim uniqueArray As Variant ‘Sheets(your chosen sheet) With Sheets(1) ‘find last cell with value in A Set last = .Range(“A:A”).Find(“*”, Cells(1, 1), searchdirection:=xlPrevious) ‘for each cell in column to last value found For n = 1 To last.Row ‘if name isnt in … Read more

[Solved] Counting the lines of several txt files [closed]

Try this code Sub Loop_Through_Text_Files_Count_Lines() Dim fso As Object Dim pth As Object Dim strFolder As String Dim strFile As String Dim r As Long With Application.FileDialog(msoFileDialogFolderPicker) If .Show Then strFolder = .SelectedItems(1) & “\” Else Exit Sub End With Set fso = CreateObject(“Scripting.FileSystemObject”) strFile = Dir(strFolder & “*.txt”) Do While strFile <> “” r … Read more

[Solved] How to concatenate values from one column with each vales from second column? [closed]

In C2 enter: =INDEX($A$2:$A$99,ROUNDUP(ROWS($1:1)/3,0)) & “_” & INDEX($B$2:$B$33,MOD(ROWS($1:1)-1,3)+1) and copy downward: NOTE: The number 3 in the formula above is there because there are 3 items in column B To “generalize” the formula replace: 3 with: (COUNTA($B$2:$B$99)) solved How to concatenate values from one column with each vales from second column? [closed]

[Solved] Comparing comma separated numbers in cells

In Excel 2016 (but NOT Excel 2013), you can use the following array-entered formula. =TEXTJOIN(“,”,TRUE,IFERROR(1/(1/(ISNUMBER(FIND(“,”&TRIM(MID(SUBSTITUTE(B2,”,”,REPT(” “,99)),seq_99,99))&”,”,”,”&A2&”,”))))*TRIM(MID(SUBSTITUTE(B2,”,”,REPT(” “,99)),seq_99,99)),””)) seq_99 is a Named Formula Refers to: =IF(ROW(INDEX($1:$65535,1,1):INDEX($1:$65535,255,1))=1,1,(ROW(INDEX($1:$65535,1,1):INDEX($1:$65535,255,1))-1)*99) To enter an array formula, after entering the formula in the cell, confirm by holding down ctrl + shift while hitting enter. If you do it correctly, Excel will place … Read more

[Solved] Merge multiple txt files in Excel power query [closed]

Final try on this one Use Home…advanced editor… and paste this function into PowerQuery. Name it: fnReadFile (zFile)=> let Source = Csv.Document(File.Contents(zFile),[Delimiter=”#(tab)”, Columns=1, Encoding=1252, QuoteStyle=QuoteStyle.None]), #”Added Index” = Table.AddIndexColumn(Source, “Index”, 0, 1), // Date row includes text “Date: ” DateFind = Text.Replace(Table.FindText(#”Added Index” , “Date”){0}[Column1],”Date: “,””), // Row preceeding data includes text “>>>” CaratFind = … Read more

[Solved] How do I dynamically reference headers in Excel

Alright, I thank you @QHarr for your help. In the end, non of those were what was needed as an answer, but I have found the way. I created, on a separate sheet called “PivotTable”, a table based on cells with the following (and similar) formulas: =INDEX(Metrics!$B$2:$ZZ$2,1,Metrics!A57,1) “B2:ZZ2”, had their numbers changed in each cell … Read more

[Solved] MS EXCEL and a CUSTOM WEBSITE

website: not really. You need msoffice to run the sheet, so unless you manually execute the sheet previously so that the data is available for read (not execute) you can’t do it with ms excel. You can do it with a programming language, depending on what you need and what you are familiar with you … Read more

[Solved] define an input suggestion with vba in excel

You could you a simple userform to select and parse data selection into the row you clicked. First use an Event when you click in the column you want the reminder to pop up in. In this case I choose “D”. Private Sub Worksheet_Change(ByVal Target As Range) Dim arr If Not Intersect(Target, Range(“D:D”)) Is Nothing … Read more

[Solved] need excel function for this issue

Here is a working code of a VBA function that fits your needs: Sub RedistributeData() Dim X As Long, LastRow As Long, A As Range, Table As Range, Data() As String Const Delimiter As String = vbLf Const DelimitedColumn As String = “B” Const TableColumns As String = “A:B” Const StartRow As Long = 1 … Read more