Category "excel"

Vlookup duplicates + IF to return a value

I have 2 columns I am trying to populate in my sheet using vlookup. One column is the buy amount and one is the sell amount. I am using 1 unique ID to lookup in

Export to PDF and Prompt User for Folder Path and File Name to Save

I can't figure out how to prompt the user for a folder path and the save name. Below is the code I have gotten to work. Sub PrintToPDF ThisWorkbook.Sheets("Sh

ClosedXML Gives 'File Corrupt' Error, But File is Not Corrupt (VB.net)

I am using the ClosedXML package (version 0.95.4) to open an Excel file (.xlsx), which was previously saved in a folder to which the application has access. Th

PHPExcel export HTML table to xlsx

I need to export HTML table with data from database to xlsx file as easily as possible. I've tried PHPExcel and some JS plugins, but unsuccessfully. Is there

VBA "Error 1004: unable to get the PivotFields property of the PivotTable class "

I made a PQ append query, send reults to Data Model and then uploaded the pivot table to the excel sheet. Now I'm trying to apply filter based on the cell value

Runtime error 1004 Application defined or object defined error

I am getting a Runtime error 1004 and when I debug it, it takes me to this sub, this sub works fine in another sheet, I don't know whats wrong, can anyone help?

Excel Power Query Number to Text

I'm trying to parse a json file but the file is set up in a strange way that excel is having problems deciphering. Please see code example below. "in_network":

Add toolbar to sheet

I'm trying to add a toolbar control on a sheet. I get this error. It does add the toolbar, but that error is not skippable with On Error Resume Next, so it stop

How to copy the sheet name to a column on the same sheet?

I am using this code: Function wrksht() as Variant wrksht = Application.Caller.Parent.Name End function I am continuously being thrown run time error '424' ob

Distribution of a time span across months

I a process have a Start date of 1/1/2022 and end date of 3/15/2022, date is in it's own field. Now I have a field for every Month in the Year: J F M A M etc.

Excel removes my query connection on it's own and gives me several error messages

I know that this is a really long post but I'm not sure of what part of my process is making my file crash, so I tried to detail everything about what I did to

How to write a list of list into excel using python?

How to write a list of list into excel using python 3? new_list = [["first", "second"], ["third", "fourth"]] with open("file_name.csv", 'w') as f: fc = csv

Excel: Check if a set of rows is equal to another set

Is there a command in Excel to check if a set of rows is directly equal to another set. For instance I want to check if the values inside rows 1 to 10 is equal

Processing images in XLSX using Python

I have an xlsx that has two sheets: on has some data in G1:O25 (let's call this "data") and one that has some images inserted into cells in G1:O25 (let's call t

Conditional Data Validation on an Excel Sheet with NPOI

I'm trying to do an excel where to import some data with validations and I've never used npoi before (and my knowledge of excel is as user) so I'm kinda lost a

Dynamically setting of cells' NumberFormat in VBA excel when the uncertainty calculation in consideration [closed]

I need dynamically set via VBA NumberFormat to imported txt file values, as just below : Imported values number type is "General" so I want to

Why does my =MATCH formula give #N/A or the correct answer in the exact same circumstance?

I'm trying to find the column number using a =match formula. In particular I am looking for a result of 42. As you can see, the formula looking in row 16 finds

Copy Filtered Rows in MS Excel with Python

A small introduction: I need a script that takes an Excel and based on a json that I give to him it sends a Mail to a list of person with attached the same Exce

If two range criteria are met, copy a third cell and paste it to another sheet

I have a sheet called "Scores" where I have Column D and J with values from 1-9 in both columns. In this same sheet I have a Column A with the corresponding nam

How to reference a Subfolder of Archive?

I'm using Outlook 365 - Microsoft Exchange(owa). I have written a script that looks for emails in my Outlook Inbox with any subject line containing "PHI Attriti