Transform a Matrix into an Edge List in EXCEL
I have an excel matrix that looks like this:ID A B C D E F G XYZ 0 1 0 1 0 1 0 ZVC 1 0 1 0 1 0 1 ... ABC 0 1 0 1 0 1 1 I would like to transform this matrix into three columns:XYZ A 0 XYZ B 1 XYZ C 0...
View ArticleHow to find the first and last values in a conditional loop in VBA
I'm creating a report on a stock index where I am supposed to get the annual open to close net change in stock price for each stock in the market. I have panel data with an observation for each stock...
View ArticleReturning multiple values in a single cell that match criteria
I am trying to find a function that will help me do the following (without using VBA). So suppose i have the following data:I need it to be the following format:Basically, I need to get all the...
View ArticleExcel VBA is failing to pass argument to AppleScriptTask
When I switched to MacOS Mojave, I was no longer able to save an Excel document as a PDF to a specific location using a macro. Instead I have had to save it to /Library/Group...
View ArticleVBA code to change font color based on adjacent cell value and cell background
I created a macro to collapse columns, leaving just the "Totals" column for each month. For design purposes I have to repeat the date and the name above it in the adjacent cells left and right. For...
View ArticleLaravel excel: Excel::raw() method not working
I'm trying to handle rows with laravel excel, with the 2.1 version I used to use the create method and after that something like this:Excel::create('text', function ($excel) use ($data) {...
View ArticleRunning a MS Word mail merge from excel
I know this has been asked before and I tried to update the other thread but was not allowed. I have a spreadsheet that has data that is used in a MS mail merge. I have a Word mail merge document that...
View ArticleHow do you sum the single max values of multiple groups?
I have a data table which, among other things, contains a list of Values, each is assigned a Group ID.I would like to sum the max value of each group.I can do this easily by using a helper table (with...
View ArticleWorksheet_Deactivate fails when a specific sheet is clicked
Worksheet "A" has a Worksheet_Activate sub which resizes the window (if window in Normal state). Worksheet "A" has a Worksheet_Activate sub which resets to the size when the sheet was...
View ArticleRead data from excel sheet in java with Apache POI
I have a data in an excel sheet that I need to read in java, I am able to read normal Strings but when I try to read a cell that contains a date and time (28/5/2018 10:00) I get only the date as...
View ArticleWhat code can be used to create word doc from excel? [closed]
I am looking for VBA code with the following criteria...An user form to choose unique employee name from Excel sheet... Data excel file attached hereCriteria is : 1. Unique employee name to be made...
View ArticleExtracting two Inputbox values separated by a hyphen and forming a number...
Here's a little different one. I am not the greatest with VBA but I like to learn and mess around with it. I'm making an Inputbox where the user can put in a range (say 1-100) using a hyphen as a...
View ArticleMatch two values in two columns and return yes if there appear in a different...
I am trying to figure out if a list of instrument serial numbers and their customer names that I have in Sheet 2 appear as part of a larger spreadsheet in Sheet 1.In Sheet 1, serial numbers are in...
View ArticleVBA For Loop with Splitting cells [closed]
Excel Masters,I am attempting to use the SPLIT function in VBA. In column B, I have file names that I need to split everything BEFORE the "_" and put that value in the A column before it.I am having...
View ArticleSUMIF with Multiple Criteria only Returns Results for Single Criteria
This should be an easy fix...I hope. The following formula seems to be correct but only returns the correct percentage for the first criteria and not both. Any ideas as to why? Any help would be...
View ArticleAutoHotKey - How to Get the Row Number of the Last Used Row in Column (From...
Seems pretty straightforward, but am not having any success.Pretty simple, using AHK, I want to get the number of the last row in a worksheet with a value in it, going from the bottom up. I can't go...
View ArticleHow to update the cell range referenced in multiple formulas at once? [closed]
I track my spending every month in an excel file. There's a column of individual expenses and another column of $ values. I then have a summary table that sums the spending by category (e.g., home,...
View ArticleCopying Files from Sub folders Using VBA and save the excel in same folder...
I'm trying to create a vba macro which will copy all excel files in the source folder which contains several sub folders. These files will need to be copied into one macro file and save in same sub...
View ArticleHow to automate my if statement to write two excel documents in openpyxl?
In my code I am converting a csv file into pandas then I am adjusting the data in the columnsdf = df[['Lastname',...
View ArticleProblem Reading Excel File Having Single Quote in Sheet Name using OLEDB c#
Giving Error "Invalid Character":string sSheetName="Nov'16"; dt = new DataTable(); OleDbDataAdapter da = new OleDbDataAdapter("Select * from [" + sSheetName+ "]", conn); da.Fill(dt); ds.Tables.Add(dt);
View Article