Quantcast
Channel: Active questions tagged excel - Stack Overflow
Browsing all 88835 articles
Browse latest View live

How can I write directly to an excel file and is there a better way to get...

I'm making a file logger that logs every event (an event being a file/directory being added, deleted, modified, or moved) into an excel file. The criteria being recorded are the time it was done, the...

View Article


How do I return data from worksheet table as DataFrame?

After searching, I found a few things out but now im stumped. In the worksheet it is a table with multiple incidents and I'm trying to get all closed and rejected incidents:EDITEDdef allIncidents(df):...

View Article


How do i get data from a txt file and send it to excel spreadsheet?(I only...

I have a program (below) that takes txt files and puts them into an excel spreadsheet. My goal is to extract the data from a text file but only text after the colon.Example txt file(No space between...

View Article

Image may be NSFW.
Clik here to view.

How to rollover WeekNum If year does not start on a specific weekday (Like...

I am currently working on a excel macro which generates Weekly data. I have to prepare multiple reports where my Week starting day is different e.g. if for one report my week start day is "Friday"...

View Article

VBA - Runtime Error 1004 : Application Defined or Object Defined Error

Hi all i am trying to make a macro to get an array of values inside column A of Sheet 'Codes' and then get an array of all Sheets whose name starts with 'Price_Plan'FYI My Start_Click Button is in a...

View Article


Windows.Activate - Run-time error '9': Subscript out of range - When using...

I am attempting to build a macro that will activate a window. And the file name updates daily with the current date. My issue seems to arise when I try to incorporate the wildcard "*". I receive a...

View Article

Image may be NSFW.
Clik here to view.

Close the workbook if column contains "#REF' or " - "

I want to close the workbook if column contains "#REF' or " - " / Close the workbook if column does not contain any numerical value In VBAIf 2nd column does not contain any number then close the...

View Article

Image may be NSFW.
Clik here to view.

creating dynamic nested xml from Excel

I'm trying to convert Excel to nested XML and could not succeed as expected.Here is my code.import openpyxl import xml.etree.ElementTree as etree from lxml import etree wb1 =...

View Article


Date and time merge and extract using r

i have a data set entry and exit of mall, which contains 6 columns, the first columns is date/time. in first row the date is mention and after that the time entry based on am and pm for the dull day,...

View Article


Get Unique Count of Names In Excel Column Excluding Certain Text Or Empty Cells

I would like to get a unique count for a column of names. Some cells may be blank or have "Cancelled" in them. How do I get a count of unique text and exclude empty cells or those with "Cancelled" in...

View Article

Image may be NSFW.
Clik here to view.

Excel calculate only if current cell value is #N/A

I'm fetching web data in my sheet per minute, and I want to store this per minute data received.The time starts from 09:15 and ends at 15:30. I'm getting Last Fetched and LTP values from the web...

View Article

Image may be NSFW.
Clik here to view.

Index Match with several results

I want to show several results with an Index Match formula,I have this board in A1And I want to show every number relatives to "Paris in A3 like 1,2,4, 7.I tried...

View Article

Image may be NSFW.
Clik here to view.

Excel - formula link cells based on another column

I want to use a formula (or a function I'll make in VBA, I prefer a formula) to do the following: I have text in column A, that I want to link in Column E based on similar cells in column B. For...

View Article


Image may be NSFW.
Clik here to view.

EXCEL: Array in a cell. How to get the array back?

Let's say I have in B2 the formula =ROW(A1:A3). This formula gives an array of {1;2;3}. Because a cell only holds one value, cell B2 displays a value of 1. Any place in the worksheet, the formula =B2...

View Article

Excel Formula to sum 12 most recent cells

I have an Excel formula question that I was hoping you could help me with.Basically I have a set of numbers in the second row of my spreadsheet from A2 to CC2. However, as of now only A2 to BA2 are...

View Article


How to count a streak in Excel (Calc), with a changing range

I am creating a spreadsheet to track my habits through the coming year, and I want to be able to show both a simple count, and also a current streak for each habit. I've already searched and found one...

View Article

VBA O365 Mac Excel copy and Word PasteSpecial with links = True problem

Im on Excel 16.32 and Im rewriting old windows VBA to convert it for Mac use instead (want to close our terminal server).I have no problem with open and save files (sandboxing) and have got the most...

View Article


Exporting an HTML form to an Excel file and formatting the cells

I have a small HTML form and I have it set up to export the form into an Excel file. This works fine but, the only issue I am having is I would like to be able to center the cells when it exports and...

View Article

Image may be NSFW.
Clik here to view.

How to create an array from excel datas

I want to create an array. Array must include the excel datas. How should ı this ? book = open("Words1.xlsx") sheet = book.active for row in sheet.iter_rows(): for cell in row: print(cell.value,...

View Article

Open Word Document and Bring to Front

Below is a working code snippet that opens a Microsoft Word document, and goes to a specific index from the Table of Contents. filePath is a filepath, and strTopic is a value that links to the Table of...

View Article
Browsing all 88835 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>