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
3 answers
26 views

How to get the corresponding cell from another column while looping over a range

This question is inspired by this question, but I've tried to simplify it in order to make it easier for VBA beginners to follow by illustrating a single concept. Let's say that I have the following ...
DecimalTurn's user avatar
  • 3,375
-1 votes
0 answers
9 views

how to create hyperlink automatically

Is there a way that if a name in any cell is the same as the name of a worksheet that it will automatically create a hyperlink to go to that sheet? EX: If I am working on worksheet 'Mike Jones' and in ...
Ralter649's user avatar
0 votes
0 answers
7 views

Excel INDEX MATCH to get a formula from another table (and not the usual value)

I have 2 tables. On table A I have a column with certain header names On table B I have the same header names and I have a formula in the rows of table B. My desired result will be the formulas from ...
Kobe2424's user avatar
  • 147
-5 votes
0 answers
19 views

How can one convert an irregular time series plot into a regular time series in Excel, involving earthquake data as an example [closed]

I'm working with earthquake data, and it's irregular. I'm attempting to convert it into a regular format, considering factors such as the annual frequency. However, I'm uncertain about the steps to ...
Brandon Vargas - Bines's user avatar
0 votes
2 answers
39 views

Overlapping areas in same range, duplicate cells

Consider the following code: Dim rng As Range Dim rngCell As Range Set rng = ActiveSheet.Cells(2, 2).Resize(3, 3) Set rng = Union(rng, ActiveSheet.Cells(3, 3).Resize(3, 3)) Set rng = Union(rng, ...
drgs's user avatar
  • 352
0 votes
0 answers
25 views

Give Ranks depending on score AND people wishes

I have a Ranking problem that I cannot seem to find a solution for. I have 3 prices to give to 3 people. Each one performed a test to get a rank. But each participant can also wish for a prize. ...
David's user avatar
  • 13
0 votes
0 answers
56 views

Save PDF FormFields using VBA Excel [closed]

I've been writing values in the form fields from cell values in Excel using VBA The problem is when it comes to the checkbox, I have two checkboxes, checkbox 1 and checkbox 2. For the checkbox1 to be ...
Jaycob Clavel's user avatar
0 votes
0 answers
37 views

Error '1004' - Method 'Range' of object'_Global' failed & Error '9' - "Subscript out of Range" [closed]

I have a problem in VBA with a line throwing back an error. The code is as following: Public Sub Retire() 'Inputs Savings = Worksheets("Retirement").Range("Savings") AnnSvgs = ...
ConsuelaLopez's user avatar
0 votes
0 answers
27 views

Excel VBA to compare values and open the highlighted PivotDetails

I have a set of data that I want to automate at the stage of PivotTable. Given the following data in PivotTable: I would like to loop through Range ("A6:A" & secondlastcell) and do the ...
JeffCh's user avatar
  • 79
0 votes
0 answers
75 views

Write a shorter SQL query to table with values is strings with delimiter

Data: My SQL query: SELECT [Art], [Count], [Comm], [w] FROM [Table] WHERE [W] IS NULL OR [W] = '104' -- how can this be written shorter? OR [W] ...
user23025019's user avatar
0 votes
1 answer
40 views

Conditional Formatting Range of Data

I have two tables of data in an excel spreadsheet. There are 10 columns of data in the first table that have values. Image of the tables There are actually four but I am essentially trying to ...
laughlin's user avatar
0 votes
1 answer
41 views

I'm getting the error unable to get the match property of the worksheetfunction class

I'm trying to create dependable combo box in the Excel VBA but when i'm trying to do it, it is showing the error unable to get the match property of the worksheetfunction class Can anyone please help ...
Dilli Prasad's user avatar
0 votes
2 answers
36 views

Merge Across in selected cells adding certain number of cells to the right

I made a VBA code already to select specific cells with certain values (Saturday). I want to merge across those selected cells, 4 cells to the right. Here's my code and a sample of my output. Dim rng ...
Artem's user avatar
  • 7
0 votes
1 answer
35 views

Accessing class instances from worksheet

Say I've made a class module ComplicatedCalculation. I have several worksheets which need to each have their own instance of ComplicatedCalculation, initialized to slightly different parameters in ...
Meow's user avatar
  • 1
0 votes
1 answer
65 views

How to use VLOOKUP if the look up value appears multiple times, and I need the corresponding information each time it appears

I have one spreadsheet that tracks all the info I need based on job numbers. A job number can appear several times on the spreadsheet with different information. For example job number 1234 is on the ...
ott3rpop's user avatar
0 votes
2 answers
49 views

Excel - Find first row where value in one column is greater than the value in another column

If I have a table of values like: Row A B C 1 Seattle 1 5 2 Portland 2 4 3 San Francisco 3 3 4 Los Angeles 4 2 5 San Diego 5 1 Is there a formula in excel for me to find the first A going down ...
Maia's user avatar
  • 11
0 votes
3 answers
60 views

I have a column with more than 100.000 product names, I want to Identify all the pair of words that repeat them selves through out the column

I have a column full of product names and I want to identify all the pair of words that repeat them selves in the products names, I also want to know how many times. I managed to do it with one key ...
Francisco Augusto Varela Aguir's user avatar
0 votes
2 answers
29 views

How to delete row from excel sheet using command button and listbox selection

I have written the following code to delete a row from an excel table, and update the listbox when i click a commandbutton("Delete"). the code executes and says "row deleted ...
ALearner123's user avatar
0 votes
0 answers
6 views

SSAS Cube Edit-named-query has different value than in EXCEL

Here is what I have setup. We have a SQL Database and a Table lets call this Database MW and the table is Cust table. and I have an SSAS cube that uses MW as data source. In my CUBE , If I select the ...
BobNoobGuy's user avatar
  • 1,571
0 votes
0 answers
4 views

Finding the last used row in a spreadsheet using openxml in c#

I am trying to replace the Excel Interop library with OpenXML. I am trying to locate the last used row in a spreadsheet so I know where to stop looking for a particular value that is required to be ...
Donald's user avatar
  • 1
0 votes
0 answers
10 views

(Excel Source) File Processing SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005

We are using an excel connection to process files in SSIS (Visual Studio Community 2017) and the process was running well into all of it sudden it stopped processing our files. We have disabled the ...
Kristy Lopez's user avatar
0 votes
2 answers
58 views

Excel Lookup with repeated values in Range

Hello and thanks in advance! I am trying to find a way to lookup values (without going into vba). I have a table like this with hundreds of rows. (Excel 365) In another sheet, I have this summary ...
Cos Dim's user avatar
  • 101
-1 votes
1 answer
39 views

Populate Combobox with values from table1 minus table2 - Excel VBA [closed]

I'm looking for a way to populate a combobox from two tables. The values in table2 are a selection from table1. What I want to achieve is a combobox with the values from table1 minus the values from ...
Stephan's user avatar
0 votes
1 answer
28 views

C# Convert Excel .xlsx columns to JSON using oledb, is this still the best way to proceed?

I have 2 populated columns in Excel Latitude and Longitude. I would like to combine these columns for each row and convert to JSON looking something like this example "{\"Locations\" : [...
CGarden's user avatar
  • 173
0 votes
0 answers
12 views

Add a %Completed summary column to Excel pivot table

I have the following Excel pivot table that shows Effort by Workflow Stage for the Features in an app we are developing. There is an external column to calculate the %-Effort-Completed, which divides ...
bbains's user avatar
  • 99
2 votes
1 answer
52 views

Excel VBA: data member not found

This question is related to the VBA compile error "Method or Data Member not found". I have looked for the answer to my question in many of similar questions with this title but I did not ...
Guille's user avatar
  • 376
0 votes
0 answers
26 views

Assign code to multiple commandbuttons via loop

I am currently working on a vocabulary programm. That includes choosing which chapters (1-35) should be checked. I have a userform with 35 checkboxes. I have assigned the properties for the checkboxes ...
conrad's user avatar
  • 1
0 votes
0 answers
24 views

From Etabs Model With Excel VBA Get Hinge Results

I want to get hinge results with Excel VBA from my etabs model. I can't find any examples from CSI API ETABS v1 files. I can connect Excel VBA and etabs model. How can I get hinge results (fiber ...
Adnan Can Akkoyunlu's user avatar
0 votes
0 answers
47 views

Trying to open by VBA a ".docx" word document based on a ".dotm" template will launch a temporary file with security message even in trusted folder

Sorry I asked the same question in an Access World post, but I could not found a solution. In an Access form or in an Excel userform, I have a text box and a button. In the text box the user will ...
lauro's user avatar
  • 29
0 votes
0 answers
22 views

Insert date and time stamp via checkbox into specific cell?

I have gotten this far in creating a macro which works and puts it into a cell which is great but there are 2 issues I have, one, the check box can be moved by right clicking and dragging which then ...
Dan L's user avatar
  • 1
0 votes
2 answers
41 views

Calculate how many members are 18 or older in Excel

I have a Table1 (memberslist) with a column birthdays and i want to count how many members are older than 18. cell P2 has a date 1/1/2023 =COUNTIFS(Table1[Birthday];(YEAR(P2)-YEAR(Table1[@Birthday]))&...
eldje's user avatar
  • 41
0 votes
0 answers
14 views

ExportAsFixedFormat change to idividual pages

I am using this code below to save specific tabs to PDF and has been working great. Now I need it to do the same but save each Tab into a separate page. Currently all tabs go into 1 PDF. Sub ...
Francisco Ortiz's user avatar
0 votes
1 answer
67 views

VBA - The right spot to update last row within a For loop

When I tried to output the value to the worksheet from userform's combobox and textbox, I found that the second or below rows of the combobox and textbox could not update to the worksheet. I realise ...
Light's user avatar
  • 25
0 votes
4 answers
75 views

Formula to get the index of the row with the last non-empty cell in a 2D array

To compute some checks on the data entered, I need to get the index of the row which has the last non empty cell in a 2D array. Each row contains a single non-empty cell. To solve this, the approach I ...
Duret-Robert Louis's user avatar
0 votes
0 answers
36 views

Writing formulas in Excel [closed]

Is it possible to write a formula in one cell for another cell in Excel? I have a column in Excel and its values ​​are equal to the percentages that the user enters. I want that if the value of the ...
J.marvin salehmand's user avatar
1 vote
0 answers
37 views

Run-time error '-2147417848 (80010108)': Method 'RefersToRange' of object 'Name' failed

For a script I'm writing I'm using the single cell named range RowMarker trick to keep track of when users are adding or deleting rows. This happens in the Worksheet_Change event. When a user adds a ...
inkbiegel's user avatar
0 votes
0 answers
19 views

Export in one PDF multiple range from different sheet

I have an Excel file with multiple sheets, i would like to export specific range (different for sheet 1 & sheet 2) on sheet 1 & sheet 2 on the first page of a PDF and a specific range of sheet ...
C _'s user avatar
  • 1
0 votes
0 answers
20 views

Synchronize Events from Excel to Outlook Calendar

So I have been trying to follow these steps here and now I'm stuck because the time is not in the correct datetime format. Basically I would need my Excel table to sync to outlook calendar, but when I ...
Darrel Kwai's user avatar
0 votes
0 answers
31 views

Resizing comment boxes on Excel(Apache POI) based on dynamic content from a database isn't working

I'm attempting to create POI comments for certain cells on Excel Workbook of <org.apache.poi.ss.usermodel>. I'm able to view the comment box and the text is appearing, but the comment box size ...
Raj's user avatar
  • 1
0 votes
0 answers
27 views

Defined coloring of dynamic diagrams

I would like to color the diagrams "Result" automatically according to the specified color. However, the diagrams should be based entirely on the arrays and adapt themselves completely ...
WalmitAal's user avatar
0 votes
0 answers
36 views

how can i save file in excel as pdf with same name at same place automatically [duplicate]

I am using micro to save my bills copy as pdf from excel but every time i run micro previously saved file rplace by new one. any solution to put number after file name automatically? i try vba in ...
dhaval nariya's user avatar
0 votes
0 answers
47 views

While opening an excel generated using Apache POI 5.2.5 getting a pop up "We found a problem with some content in abc.xlsx. *****"

I created the going to generate the excel using Apache POI 5.2.5 and 4.1.2 both the version and I am getting the same pop up. The same code is running in the local system but when I try to run the ...
Mani Gupta's user avatar
-3 votes
0 answers
22 views

Excel formula query. Please advise [closed]

I need to check for column E and column P on sheet 1 and compare it with column E and column C respectively of sheet 2 and sheet 3. If match is found, I need to fill Column W of sheet1 with column AK ...
Gokul's user avatar
  • 1
1 vote
2 answers
53 views

Best way to remove invisible Unicode characters from text using Power Query in Excel

I have two tables of data downloaded from an Oracle Cloud financial system and imported into Microsoft Excel. Both had Invoice Number fields but, when I used Power Query to transform them into ...
Simon's user avatar
  • 10.7k
0 votes
2 answers
59 views

Create Function with IF_THEN_ELSE statement with Copypaste action

Function UC (x As String) If x = "Not Yet Start" or _ x = "In-Progress" Then UC = "N/a" If x = "Complete" Then UC= Format (Now, "dd-mm-yy hh:mm:ss&...
Syazwan Zuhaizi's user avatar
1 vote
1 answer
36 views

Range of Excel cells have Concatenate formula and have no value in them. But when the range is selected, excel determines that there's values in them

I need some help with my excel formula. I have applied the concatenate formula to a range of cells in column D, wherein the formula takes the cell values from Column B and Column C and gives the ...
Kuldeep's user avatar
  • 25
0 votes
1 answer
24 views

Excel PUT to API endpoint failing with bad request

I'm trying to duplicate an Insomnia PUT request to an API endpoint in Excel. I believe I'm close but I'm obviously missing something in the Excel Power Query request. Here is the working CURL request ...
Dawg99's user avatar
  • 1
0 votes
0 answers
27 views

Dashboard to summarize data from specific tab in workbook

I have a spreadsheet that tracks all payments received daily. Each month is separated by tabs. Im creating a dashboard where you can use a drop downlist to select a month, then the daily totals for ...
MAHZ's user avatar
  • 1
0 votes
0 answers
33 views

Excel VBA and Connected Experiences Issues

We created a relatively large Excel VBA based system used by hundreds of users across the US. It creates a number of reports as well as fairly complicated line drawings including 3D views. The ...
Tim's user avatar
  • 1
-2 votes
2 answers
47 views

Return text in cell if part of text is found in a specific row

I have data organized like this: 01AENPRV__ -0166U -289R -127PT ABGIKLOPPUX___ -05AP -2244U 13AABDDEFFGMMM -115HU -2339U 14AABBDFFGMMMOP -1234U -015MU 12ACDFFGHMMNOP -...
Robert's user avatar
  • 1

1
2 3 4 5
5678