Category "excel"

Using UNIQUE with non-adjecent columns on different sheets

I have two tables on two sheets - let's say tblFruits1 and tblFruits2. Both have a column "Name". Apple - for example - exists on both lists. The lists might ha

Merging 2 Worksheet change events (Multiple selection drop down and changing value in dropdown to a number)

I'm trying to merge these 2 codes together. I'm very new to VBA and I can't figure out if it is even possible. I know I can't have the number change before the

Counting Rows Once In Range Which Contain Data

I am trying to figure out a formula that will count each row in a range, that contains any cell that is not empty. For example Item 1|Item 2|Item 3 Cat 1

Extract words that have colored characters (even single colored character)

Having UDF that extracts the words in sentences that have any colored character. The code is working but too slow. I tested the code at only 300 rows and it too

Find() returns "object variable or with block variable not set"

This block of code was working fine but I deleted some lines above Find() that broke it. Any ideas? Sub CopySheet() Dim TotalRow As Integer

Merging sheets (2) from multiple excel workbooks in one while using information from sheet (1)

I have 200 workbooks (1 per subject) with two sheets each. I was able to merge all sheets 1 and all sheets 2 in two separate data frames using the following scr

How to get text from wrapped text show on different columns using VBA

I have a vba script that copies and paste data from one workbook to the other. The data that is being pasted over are wrapped text. I need my vba script to take

Loop numbered variables in Excel VBA - [duplicate]

How can I loop through a set of variables which are numbered consecutively (Bay1, Bay2, Bay3, etc.)? I have 10 variables and I need to examine

TypeError: '>' not supported between instances of 'tuple' and 'int' when removing rows using Openpyxl

Given a .xlsx with many Groupings/Levels: Not expanded: Expanded: I am trying to iterate through the .xlsx and remove any rows, where Management Style is == a

QuantLib FixedRateBond versus Excel Yield()

I'm currently trying to calculate the Yield of Treasury Bonds in Python using the QuantLib library. As a reference I used the Excel Yield function, but I'm gett

Find duplicate column values across multiple workbooks, and extract columns row data to new sheet

I have multiple Excel workbooks some having multiple worksheets. I'm trying to export the duplicates across the workbooks into a new workbook using Column A of

Is it possible to copy, paste, and delete data from one sheet to another in office scripts?

I have a document saved on SharePoint that documents testing. Once testing has been completed I would like to move the tests (entire row) to a separate sheet to

Deleting duplicate values

I'm trying to delete all duplicate rows based on Column B and leave only the unique rows. It will leave one of the duplicate entries. I tried with > 1 and =

Excel Conditional Formatting if cell in Column A AND the cell in Column B are blank than highlight cell in Column G

I am trying to use the conditional formatting in Excel so that if a cell in Column A is blank and the cell in Column H (of the same row) is also blank then the

Using userform vbmodeless in a loop

I refer to this: How to have VBA code wait until vbModeless userform is closed I tried to apply the code in a class module for my problem. Problem description:

How to copy the last data column and insert it immediately to the right?

I have this data This code grabs column "BO" and copies it to the right. I need a repeatable macro that copies column BK and inserts it to the right, which push

How to add option button to spreadsheet?

I am trying to put together the 'Hello, World' of a macro button that will make an option/radio button on a cell in an Excel spreadsheet, the simplest possible

How to return a word from between nth comma and n+1 th comma?

I want to extract a word from text which is separated by commas. This is one of the data from users. 117573,117573,219,219,75,75,Messi,barcelona,53780217,forwa

Find xlprevious code bringing up first record not last

Here is my code I've set up and is working as a vlookup. (I can follow this and I will understand it when I come back to it in 2 years.) Sub lookup() On Error

Run along the rows in Excel

I have new entries that go into the Excel table and I constantly want to run to the last row number but it does not work excel.Row.Count() this the problem for