C# Number of filled column return value 1
I know there are a few approach to find the total number of filled rows and columns based on individual requirements. One of the approach I'm trying to use Cells.Find approach to find the number of...
View ArticleExport excel or csv big row and dynamic column
I have excel data more than 5k rows and 17 columns, I use the nested loop technique in php, but this takes a long time, to process the data using the xls file format takes 45 minutes, while using the...
View ArticleIf Cell Contains This or That Paste onto Another Sheet
I have 2 sheets in my workbook SheetJS and Sheet1. I have this code that partially matches cells in each row that contain the phrase "ABC" in SheetJS and copies them to Column D in Sheet1. It them...
View ArticleHow to iterate through Excel worksheets in C#?
I have a workbook with multiple sheets and I was trying to iterate through them but it's causing me problems. The code below throws the error:Microsoft.Office.Tools.Excel.Worksheet'. This operation...
View ArticleReplace all function not working on the first try on MS Excel
Whenever I try to replace some characters at once I have to find and replace them twice in order to do it. It doesn't apply unless I close the first conversation bubble. I know it isn't clear enough...
View ArticleExcel: Conditional Formatting to colour Row based on two cells
Lets say I have a 4 x 5 table (below). Is there a way I can say if Date1 or Date2> 30 days old (=today()-30) then colour these 4 cells dark blue. Fruit Date 1 Date 2 Price A 08/01/2020 05/01/2020 50...
View ArticleVBA Excel 2010 - Embedding Pictures and Resizing
I've been lurking for a while and found it very helpful, so thanks for the help already!I'm trying to write a macro to embed images into a worksheet from individual files and resize them, whilst...
View ArticleParse data from internet HTML page using VBA and IE
Diclosure: I'm just an office clerk and very-very new to VBA and HTML. Hopefully you will be patient with me. I would really appreciate any guidance and help. Hopefully I'm formatting it correctly.I...
View ArticleHow to populate a CustomXml Part in Excel?
For the purpose of better structuring data in a small team using Office-2016, I've discovered and explored Custom XML Parts, see docs.microsoft.com. In Word, I was able to create Content Controls...
View ArticleHow to change the return value 'TRUE' to '1' using the Count If Function in...
I currently have a spreadsheet used for attendance, we wanted to record the times subjects attended we did this by assigning time slots numbers.A= 11:00 - 12:00, B=12:00 - 1:00 and so on.I am trying to...
View ArticleOffice Scripts error - the property is not available
I've created a script with the new Office Scripts in Excel on the web. The script simply sets the fill color for a range in the current worksheet, gets the used range, and then tries to write the...
View ArticleHow to merge two "Byval target as range"
Hope you can assist me on how it is possible to merge these two macros into one? Both Macros work fine independently but when i try to merge them one of them stops working. i have tried so many things...
View ArticleHow can I open this ASCII file in Python/R/Excel?
I have been trying to open an ASCII file in either Python, R or Excel with no success. I've ran out of ideas on how to open it. The file comes from HMRC, however, I've asked them how to open it with no...
View ArticleFilter cells based on the BackgroundColor
I'm having big brain problem figuring out filtering by color using ClosedXML.I've recently moved from Interop.Excel to ClosedXML, due to project shifting in my workplace. When we were using...
View ArticleAdding values of cells in different excel file
I am adding the values of the same cells but from 2 (or more) different Excel files, using this formula:='E:\NCD INTEGRATED MONITORING\2019\[NCD Monitoring Tool 2019 (1st...
View ArticleExcel VBS ERROR: relation "andmebaas" does not exist
I am using Excel 2019 Home and BusinessI have built SQL string what works if I use it trough PGAdmin, but if I execute it trough vbs i get relation error. This is how I create connectiondb.Open...
View ArticleVBA and Pivot Tables: getting two data fields
I'm trying to use vba to create a pivot table from a data from a sheet entitled DATA. Is organised in a number of columns, three of which are called NOM, NOM_MOVE and COMMENT receptively.I want the...
View ArticleHow to set cell value dependent on another cell with variable position
I got a strange task to perform and I can't imagine how to do it or even come up with a term to google, since I'm not that good with excel formulas, and I am not allowed to use VBA:If column 'D'...
View ArticleWhy countblank function can't get value for specified range?
The countblank function to count all the blanks in a certain column.Now you can see what happened! I input =countblank(a2:a6) in cell a7,and click enter.No error info pop up,no value get. I have upload...
View ArticleExcel formula for time
Looking for formula to determine how many of the time given between 14:00 to 22:00enter image description here
View Article