Questions tagged [excel]

Only for questions on programming against Excel objects or files, or formula development. You may combine the Excel tag with VBA, VSTO, C#, VB.NET, PowerShell, OLE automation, and other programming related tags and questions if applicable. Do NOT use with other spreadsheet software like [google-sheets].

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Indexing a String of Characters

I am attempting to create a Macro that will either auto fill or increase by one when compared to its predecessor. In column A you will have a string of characters (alphanumeric) beginning with two ...
Jacob Pruitt's user avatar
-2 votes
1 answer
41 views

Xlwings:- "AttributeError: module 'xlwings' has no attribute 'workBook'" [closed]

line 234, in query_and_export1 xw.workBook().vba.add_module(vba_code) AttributeError: module 'xlwings' has no attribute 'workBook' i am trying to execute my vba script on queried data exported ...
landry feukeng's user avatar
-2 votes
0 answers
15 views

split sheet in workbook1 if the value of column matches the value of column in workbook2, using vba macro [closed]

I have 2 workbooks, workbook1 & workbook2. Workbook1 has a worksheet with column names as :col1,col2,col3,col4 workbook2 has a worksheet with column names as :col1,col2,col3,col4 if the value of ...
pratiksha mehra's user avatar
0 votes
0 answers
25 views

I have built a european football standings table and now need help to automatically display the names of the qualifying teams to another worksheet [closed]

I have built a European football standings table and now need help to automatically display the names of the qualifying teams to another worksheet. I have two worksheets. One has the soccer/football ...
Andre Mateus's user avatar
1 vote
0 answers
7 views

Excel VSTO Addin EnableEvents

I am migrating an Excel addin from VBA to VSTO. My addin is triggered by a worksheet changeevent but writes its answer to the worksheet. So I have to set EnableEvents = False at the start and True ...
NeilK's user avatar
  • 21
0 votes
0 answers
28 views

Remove quote marks around strings in .csv file

I have a csv with columns containing content as follows: "123,456" or "1.2345" see image attached for more. I want to remove all quote marks from the csv across all columns. The ...
Steve C's user avatar
0 votes
2 answers
58 views

Tranpose row into column and shift row down

I have an Excel file with this data format. Now I want to transform those data into column, like this. How should I do that with Excel Formula or VBA scripts? I have tried using Transpose paste but ...
Luan Tran's user avatar
  • 378
0 votes
3 answers
27 views

Get the value of the nth iteration of a number in excel

Simply put, I have a number in the Z column and time of day in B and my goal is to retrieve the time of day of the second iteration of the number in Z. If the first time the number x occurs at is 2 pm ...
Kyllian WECKE's user avatar
1 vote
0 answers
19 views

R: Need help converting excel sheets to csv, while properly converting column types & checking .xls or .xlsx extension

I'm fairly new to R & scripting and I'm trying to write a script that will convert each sheet in an excel file to its own csv file. This script will be used on many excel files that won't all have ...
CecilF's user avatar
  • 11
0 votes
1 answer
49 views

Use specified macro to move data from multiple columns to another sheet PLUS assign a number to checkboxes when macro runs

I am using the following macro in excel to move data in columns "C", "D through J" depending on the checkbox selected, and "K" if the value in column "O" is a 1 ...
Jacob Baker's user avatar
0 votes
0 answers
17 views

Connect Tableau server to excel file on OneDrive

I have an excel file on my personal OneDrive that is updated weekly manually. I created a tableau dashboard which is connected to this excel file, and I shared the dashboard on Tableau server. But it ...
Ruser-lab9's user avatar
0 votes
0 answers
45 views

Excel VBA Tables: SumIf

I have 2 tables, one is "RSO" and the other is "ESP". In the column ADD of the table ESP a need to write a SUMIF function to sum the RESULT column if the RANGE column matches the ...
José Angel Bernal's user avatar
0 votes
0 answers
31 views

Batch convert PDFs to Word?

Hi all you wonderful people out there! I have a rather weird question for you. I have a directory full of PDFs that I need to combine into one document and then print. I have everything working now, ...
Frustrated_Coder's user avatar
0 votes
1 answer
21 views

How to use GETPIVOTDATA correctly

I am having difficulty when I try to refer to a specific cell reference in my pivot table. Dim SelectionNum As Integer LastRow = ActiveSheet.PivotTables("CMAPivot").TableRange2.Rows....
bethw12000's user avatar
0 votes
1 answer
40 views

Transfering Excel multiple Font Color in a single cell from one workbook to another, using python openpyxl or another

I am trying to figure out a way where I can make my Python script read cells from a workbook, copy them with the correct data and format (including multiple color fonts in a single cell), and paste ...
Strider's user avatar
  • 19
0 votes
0 answers
16 views

Split large excel worksheet into several files

I have two large excel document that has two sheets, each with a large amount of columns (one goes to column BTF and one to ECA). The worksheet data repeats itself every three columns in the following ...
Mark Wingard's user avatar
2 votes
2 answers
92 views

excel convert class schedule into workload

I am a teacher who needs to convert some class schedule into workload, in Excel. But I would like to make it to automatically convert. See the table below, where BEFORE letters M-A-N (Morning, ...
Yttria Therbium's user avatar
0 votes
1 answer
23 views

Excel convert string to number when open CSV file

In some cases Excel convert CSV file string into number. How do I stop it? Example a,b,c 8,"3,54,4",4 22,"34,543,40",55 4,"5,401,5404",32 The last string "5,401,...
user1889297's user avatar
-1 votes
0 answers
21 views

Powershell Script stays stuck after Win 11 update

I have a macro enabled Excel file, which in turn launches a Powershell script. The excel has multiple parameters which are used in the Powershell script and do some processes. After the Windows 11 ...
Aakash Singh's user avatar
0 votes
1 answer
20 views

Customizing the Excel Ribbon - intercept IDMSO - VBA

I managed to intercept and control the IDMSO "COPY" / "CUTT" and "PASTE", but I cannot do it for COPY VALEURS / COPY FORMULAS. There are no execution errors, but the ...
phmauber's user avatar
1 vote
1 answer
34 views

Excel Formula to highlight range based on date range

I'm trying to figure out how to create a formula to call out an entire range where there is a date less or equal to today's date. In this example, I have a number 600259 (Column A) where there are ...
Deke's user avatar
  • 437
0 votes
0 answers
28 views

Inconsistent #Value! error using Left/Find function for Date/Time [duplicate]

I am trying to pull the DATE out of a combined Date/Time set of data, and the LEFT/FIND formula works [=LEFT([@[Date/Time]],FIND(" ",$Q259))] for the whole worksheet except for a specific ...
MRose's user avatar
  • 1
0 votes
2 answers
53 views

Unique Records using a subset of columns

I have a series of dynamic array formulas for processing data. I'm trying to get the last piece sorted out. I have data that resembles this: I want to return data that looks like this: The columns ...
Joshua Farina's user avatar
0 votes
2 answers
24 views

Can I use a macro/function duplicate a weekly Excel sheet for every week using the correct dates?

I have a schedule that has the dates M-F in various columns. I want to copy this week 1 into all 52 weeks of 2024 and have it automate with the correct dates by referencing the cell in the previous ...
Jonah Perrin's user avatar
-1 votes
0 answers
24 views

PPS370MI PURCHASE ORDER CREATION IN M3 [closed]

I am wanting to create Purchase Orders using the M3 (Movex) PPS370MI API from an Excel file to M3 Cloud. I have a workbook for this but that version is direct to an onsite server, not Cloud. Anyone ...
ScanGuard's user avatar
0 votes
0 answers
6 views

Place Outlook Email in Excel without saving the Email

I have a friend that really wants to embed emails from outlook into an excel file to store some conversations. They use multiple computers without a roaming desktop so saving the file to the desktop ...
Chad Portman's user avatar
  • 1,144
0 votes
2 answers
26 views

Need formula in newly inserted column to be the same cell reference as the preceding column but down a row

I'm trying to create a macro in Excel. The macro needs to insert a new column just before the last column of a named range "K3_Entities" in an Excel spreadsheet. After inserting a new column ...
wileysheets's user avatar
0 votes
0 answers
16 views

How to set existing bar chart styles to pivot chart in java

I am looking for a way to use apache poi to add existing default styles to a bar chart in Excel. I have code to generate bar chart but could not find anything to set existing styles which are ...
pranavs's user avatar
  • 29
0 votes
0 answers
19 views

How to change cell colors as time passes

I have a simple spreadsheet where column B will only be times of a day. I would like for the color of the cells in this column to change based on amount of time lapsed. For example, the cell says 10AM ...
Jeffery Maydole's user avatar
1 vote
1 answer
46 views

VBA macro button that adds +1 day to a date, but skips weekends?

I have a button that adds +1 day to a date value, but I'd love a way to automate it to skip Saturdays and Sundays. This is code I'm currently using to add +1 day... Sub Add_1_Day() Dim ws As Worksheet ...
Joseph Kay-Mills's user avatar
-2 votes
0 answers
10 views

How can i get client for upwork [closed]

I am not getting clients on Upwork I am facing a lot of difficulty. I am expecting very good and hoping to get client. I am waiting for clients, I have knowledge of notion and click up and about them ...
Hasnain Ajmal's user avatar
0 votes
2 answers
78 views

Extract matched keyword and its matching line or paragraph as regex submatches

The following code snippet loops through single-column tables containing keywords, in a keywords sheet and tries matching these concatenated keywords of each column, to a text string (Str) that has ...
sifar's user avatar
  • 1,112
-3 votes
0 answers
14 views

how to use excel file to import and export data with Anylogic simulator [closed]

I am working on an external application that aims to manage parking in anylogic I want the data exchange to pass via excel file (since I use the personal version). My question is: how to use excel ...
bousaada12's user avatar
0 votes
1 answer
31 views

How to make this formula increment starting from 1 and not 0?

So I have this function =COUNTIF(A$2:A2,LEFT(A2,FIND("_",A2))&"*") that counts image position in 1 row, and increments by 1 if the sku remains the same, once sku changes it ...
HelloWorld's user avatar
0 votes
1 answer
33 views

Everytime I run a VBA Macro, it disables my NUM LOCK

At first I thought it was an issue with Windows 10, however, after trying several solutions I gave up until I coincidentaly realized that running a VBA macro was disabling and enabling my NUM-KEY. Sub ...
Eric Ahn's user avatar
  • 183
1 vote
1 answer
20 views

VBA Printer and Printers object requires installing Reference library?

I have a question for Printer object and Printers object in Excel VBA. Is any Reference library required to install in the Tool->Reference before we can use Pinter and Printers object? I run below ...
RedMapple's user avatar
-2 votes
0 answers
18 views

Using VBA to indicate activity times based on activity in chronological order [closed]

I've been teaching myself VBA slowly, but this particular issue seems like it will use many different things together to achieve the result I'm looking for, and I'm stumped. Each employee handles 1-8 ...
WFMTryHard's user avatar
0 votes
0 answers
20 views

plot from excel sheets on the same graph

I have a excel file that has several sheets and I want to remove the first row showing the sheets name as then the third row showing the units and plot data from the sheets on only one graph. I have [...
Massoud Hassanabadi's user avatar
1 vote
0 answers
52 views

Strange delimiters when copy-pasting out of Excel sheet

I've been working on an R Shiny app which allows you to paste in datasets as text, then separates them out into data frames and highlights the differences between them. Generally, it works well, but I ...
js4032's user avatar
  • 33
1 vote
2 answers
27 views

Excel Formula Countifs, Add then Divide to get a %

Good Morning all, I have been trying to figure out a formula in excel for 3 days now and can not seem to get it to work I either get a #div/0! or a #VALUE error. Cant find out what im doing wrong. I ...
EEVolutionX's user avatar
-1 votes
1 answer
59 views

Matching multiple dates to a timeline (monthly) for a given project

My problem is that I have multiple projects that have different dates that pertain to categories and I need a dynamic formula to match those categories by dates to a given timeline. See Example
James's user avatar
  • 1
0 votes
1 answer
31 views

SUM Until Certain Value is Reached Based on Criteria Excel

I have a dataset where I am manually summing $ values of Sales Orders to reach a Target $ amount. I would like to automate this process as much as possible, instead of manually going down the table ...
akroeker's user avatar
1 vote
1 answer
29 views

how to write a list objects in power query

I would like to create a list object to contain specific ID numbers ? How to write the code below more efficient ? many thanks in advance. #"Added Conditional Column" = Table.AddColumn(#&...
Seyma Kalay's user avatar
  • 2,321
0 votes
0 answers
19 views

Why is my formula not being evaluated in Excel VSTO Workbook using VB.Net

My Code is entering the formula in the cell correctly, but it is not evaluated unless I either double click the cell and hit Enter or go to the formula bar and hit enter. The formula is a dynamic ...
jfr's user avatar
  • 1
0 votes
1 answer
56 views

Speed up VBA for large dataset

I am using a VBA code to showup precedent and depedent on range by using the arrows in excel. The code work well but when i use it for large range it takes significant time and hangs up. Please ...
Sudbrl's user avatar
  • 9
-3 votes
0 answers
15 views

Excel gerando novas workbooks automaticamente [closed]

Ao salvar a pasta de trabalho e reabri-la, é gerada uma nova workbook com o nome de uma das planilhas da pasta e esta planilha que doou o nome para a nova wokbook fica com o nome anterior, acrescido ...
Osv's user avatar
  • 1
0 votes
0 answers
17 views

Generating excel file of extension .xlsx

Using this : HttpHeaders headers = new HttpHeaders(); headers.setContentLength(byteArray.length); headers.setContentType(MediaType.parseMediaType("application/vnd.openxmlformats-officedocument....
user2106798's user avatar
1 vote
0 answers
24 views

How to Use Javascript in the Excel Web Add-In Application to Zoom the Current Excel WorkSheet

I am trying to increase Zoom for my Excel Online file using my Add-In. I am using the below javascript code but getting error as "GeneralException: An internal error has occurred." Please ...
Mojibul Hoque's user avatar
0 votes
1 answer
39 views

Excel List with data from different columns and find result

I have an excel sheet with data like below(sample): The input i have is the Minor data ( i.e Minor1-1, Minor 3-5 etc). I want all the Minor data from all 3 columns in a list box and if i select one, ...
user3164187's user avatar
  • 1,390
0 votes
1 answer
49 views

CSV file having chinese content shows unknown characters [duplicate]

My project generates report in CSV format based on selected language. We supports 17 languages in that Asian languages like Chinese/Japanese and Korean not working. Contents inside shows some unknow ...
Sijith's user avatar
  • 3,754

1
2 3 4 5
5682