I have a column of data that should be showing as currency but will not format that way because there is a space at the end of the cents. I tried doing a CtrL+H and replace the space with nothing but the space remains.
I have exported a aging report from SAL to excel. Now the problem is each figures in the report is not in number format. when i checked each cell contains a space after the numbers so excel does not treat them as a number format.
how i can remove all the spaces in those cells. find and replace doeasnt work.
I have a data set that I wish to look up the data from one column and if it is greater then 0 write it in another column separated by commas. Here is an example:
The data is dates that a service was provided and how many time that day it was done and not everyone gets the service on the same days. I would like to summarize the days of the month that service was provided not number of times into 1 cell.
A B C Row 1 November Row 2 1 5 15 Row 3 1 0 2 Row 4 0 1 3
November is in A3
If A2 is greater then 0 I want to write A1 A2 If A2 and A3 is greater then 0 I want to write A1 A2, A3 If A2 is 0 and B2 is greater then 0, I want to write A1 B2
I need to open a customer-submitted workbook which has a list of items in column B, marked by an 'X' in column A on selected rows. Each customer's list is tailored to them with, say, 25 rows each.
I have a master list with identical formatting but which has the data from ALL lists combined.
I want to insert an 'X' in column A of my master workbook for any matching items for which there is an 'X' in column A of the customer's workbook.
I could do this with a formula in column A of my master list, but each customer's workbook has a unique filename and I don't know how to make the formula use a changing lookup array, so I figured this is something that I have to accomplish with VBA.
I need to create extra rows of duplicate data. The number of duplicate rows depends on the number of semi-colons in the 15th column (column O).
Sheet 1 is the original working file. Sheet 2 is the result of how the executed macro for the first 2 lines of data. The first line in sheet 1 has 7 semi-colons, so there should be 7 rows of duplicate data created in sheet 2. The second line in sheet 1 has 6 semi-colons, so 6 duplicate lines, etc.
I have a sheet that contains the following columns: Invoice, Document #, Date, PO #, Part #, Part Description, Quantity, Net Amount
Based on the quantity in the row I need to copy the row, and insert it n-1 times. So if the quantity is 5, I need to copy and insert the data below the original row 4 times for a total of 5 rows of data.
I plan on firing the macro with a button as the data will change month to month.
I'm trying to automate the importing and processing of a fairly large formatted text file (~15000 lines) containing many tables of data. I've been refining this process for several months and recently was alerted to a problem. A few of my tables have widths greater than 255 characters (309 to be exact).
My process involves opening the text file in Excel then performing a .Copy on the Worksheet into ThisWorkbook, naming the sheet "Source". I then perform up to 66 separate parse operations on the various tables depending on which options a user selected from a form.
The problem is that I assumed that the Copy Method would simply make a duplicate of that sheet in ThisWorkbook. Instead, it seems to have truncated any columns that are longer than 255 characters, leaving me with partial data in a few tables.
My workaround was to perform a TextToColumns on the text file prior to the import such that it would simply split the data into columns that could be reassembled on the other side. In doing so, I seemed to have stripped a leading <space> from each cell which was apparently put there previously. This is causing a lot of problems for my formatting code which also uses TextToColumns to separate the tables into columns. The simplest solution seems to be trying to add the spaces back in, assuming there isn't a better way to import this data in the first place.
Just prior to copying the sheet into ThisWorkbook, I'm using the following code after the TextToColumns to add the space back in, but it's taking an awfully long time and causing a noticable time delay in processing my code and adding considerable size to the finished workbook it creates. If someone could recommend a better solution, either to the import process or to replace this God-awful loop, I'd appreciate it. Thanks.
Application. ScreenUpdating = False For i = 1 To 65535 wkbk.Sheets(1).Cells(i,3).Formula = " " & wkbk.Sheets(1).Cells(i,1).Value wkbk.Sheets(1).Cells(i,4).Formula = " " & wkbk.Sheets(1).Cells(i,2).Value wkbk.Sheets(1).Cells(i,1).Formula = wkbk.Sheets(1).Cells(i,3).Value wkbk.Sheets(1).Cells(i,2).Formula = wkbk.Sheets(1).Cells(i,4).Value Next i wkbk.Sheets(1).Range("C:D").ClearContents Application.ScreenUpdating = True
Also, I don't know how long the actual file will be, so I'm almost forced to assume 65535...
I have a data entry worksheet where a user may use the space bar to delete a wrong entry instead of the delete key. How can I allow this without triggering an error message for a cell which is valid for blanks or a positive number including 2 decimals? The checkbox for "Ignore Blanks" does NOT ignore this is the cell is blanked with the space bar.
I have a software package that requires serial number effectively data to be entered in a particular format.
As this can cover hundreds of lines I would like to make it less tedious to enter, and as my MACRO knowledge is very basic.
The data starts off in format below in example 1. After the data is CUT from the .html or .pdf document and PASTE into EXCEL. I would like the MACRO to start by pressing an activate button within EXCEL,
The serial numbers always have four digits with single serial numbers being separated by spaces and ranges being separated by a hyphen with the odd carriage return depending on how many numbers there are.
I would like the data to end up in two separate columns as shown in example 2.
Example 1 (Starting format) * indicates space - indicates a range, this needs to be separated into two separate columns
Exported data in PDF and converted to Excel worksheet and some of the data contains a space in the year.
Example: 2/6/2 014 2:49 PM.
I used the =INT(A1) to strip the time off. Worked wonderfully. However when I need to sort by ascending/descending date , it does not put in order due to this extra space. Is there a formula out there that I can use to delete the space? All of the data doesnt appear this way. I am sure it is due to the conversion.