How to convert activecell address into associated listobject address
I've been away from active vba for a while and have forgotten how to convert a sheet address, row or column into the equivalent ListObject address, row or column and vice versa. I know you can get the...
View ArticleConverting a csv file to Excel (with columns as text) using VBA
I have a csv file, for example with data as below (a.csv) to convert into Excel.In the second column the leading 0s are truncated.Is there a way to define the second column as text before importing the...
View ArticleMultiple cell selection in VBA using ActiveCell.Offset(0, 1).Value
I'm starting in VBA and had to do a program that is able to retrieve value from a selected cell which will be used as reference.I'm able to do it when I select one cell with the Activecell function and...
View ArticleExcel, how to dynamically modify column cells until next different value
For example:I want it to become:This clearly has to be done dynamically.
View ArticlePasteSpecial fails with “all the merged cells need to be the same size” when...
I am automating Excel with Python (win32com.client / DispatchEx) on Windows.I need to copy a block of data from one workbook into another workbook that already contains merged cells.Using...
View ArticleMacro-enabled xlsm files do not open after Windows update [closed]
The IT unit in my office rolled out Windows update. And afterwards, the xlsm files are not running. It saysExcel cannot open the file "....xlsm" because the file format or file extension is not valid....
View ArticleKeeping column formulas in a table header
Is it possible to have the formulas that I need applied on columns be saved or applied to a column header or some kind of metadata so that as and when I add new rows to my Excel table the Formulas get...
View ArticleScrape from a Javascript table [closed]
My colleague is currently manually copying data from a JavaScript table and pasting in Excel (the source refers to a number of jgz files). It is taking them a significant amount of time to do. The...
View ArticleCellType cannot be resolved to a variable setCellType error Apache POI - Java
I was reading the Apache poi guide: https://poi.apache.org/spreadsheet/quick-guide.htmlAnd I decided to follow along and type the code into my Eclipse project, and while writing the "Reading and...
View ArticleCan anybody suggest another method to split a large Excel file into multiple...
I need to split a large Excel file into multiple small files based on the first five digits of the values in a column.For example, I have values 1396A0001A,1396A0002A to split based on the first five...
View ArticleCreate EXCEL from html table using C#
I am trying to create an excel sheet for shipping products using C# and HTML table. The image shown below is my HTML as it looks in the browser. What I am trying to do it to take this table and shove...
View ArticleHow to Programmatically Break on All Errors?
What I want to do is set a flag to go from the Error Trapping option "Break on Unhandled Errors" to the option "Break on all Errors" (VBA menu: Tools > Options > General tab):The reason for this...
View ArticleI need to ignore blank cells in an excel 2007 MIN array but I keep getting 0's
Here is the array I have: {=MIN(IF('APRIL 2011'!E3:E999<>"",'APRIL 2011'!E3:E999 *('APRIL 2011'!E3:E999*('APRIL 2011'!D3:D999='APRIL TOTALS'!A2))))} It still returns zeroes with empty cells!
View ArticleSee if any values in array exist in a column (excel)
I have an array of 30 columns and 800 rows (Sheet 1), each cell has either text or is blank. I want to check if ANY values in this array (specificially row by row) exist in a column (Custody List...
View Articlesum multiple columns with sumif function in excel
I would like to sum multiple columns with sumif function column by colum.For example.Criteria range is "Column A"Criteria is "Aplle"Sum range is "C1:G100"I dont want to use SUMIF(…) + SUMIF(…) +...
View Articleuse more than 30 arguments in sum function in excel
I want to use more than 30 arguments in sum formula for excel, I am using below formula:-=SUM(IF(AND(ISNUMBER($F$73), ISNUMBER($J$73)), PRODUCT($F$73, $J$73/100), 0), IF(AND(ISNUMBER($G$74),...
View ArticleCount unique values only
Ive got a table similar to the following (it contains blanks):Column AColumn Bdate 1value 1date 2value 1date 3value 2date 4value 3date 5value 1value 4Now I want to count the value in column B on a...
View ArticleExtract text from parentheses in Excel
I have an Excel list where I need text that exists within parenthesis.e.g.FromGene nameColumn I needO70257syntaxin 7(Stx7)Stx7Q7TQ90alcohol dehydrogenase 5 (class III), chi polypeptide(Adh5)Adh5I tried...
View Articlevba date filter criteria derived from a cell reference
I'm trying to filter data where one filter criteria - month - needs to be entered by the user in a cell on one sheet in the workbook.If the data is typed into the code, it works fine, as written...
View ArticleComparing dates in Excel
I'm trying to compare date in excel to return a value.I want to see...if date of birth + today() is less than DATE(2021,9,1) years then output 6if date of birth + today() is less than DATE(2021,9,1)...
View Article