I have a table with over 12,000 rows in it. In one column I have activity and the next a name.
A B
Walk John
Run Harry
Sleep John
*blank* Harry
Eat Percy
*blank* John
*blank* Harry
Reading Tom
So *blank is completey blank and that means Harry also put time to sleeping, and again John and Harry both put time to eating. How can I make the blank cells auto populate with the data from the entry above it?
i am trying to copy specific cells for mutiple worksheets and past them into a summary page. i can get that to work but not all the cells on all the sheets are populated and i cant get the blank cells to be pasted to the summary sheet so that each sheet has 31 entries.
I have a master sheet and 20 sub sheets. I input data in the master and it filters through to the 20 subs and calculations are done. the problem is that on the master there are blank cells, that need to remain blank cells until i put the data in. This data is copied to the subsheets using a =sheet1a1 type of formula. what happens is when a blank cell is copied it appears in the new location as a 0. I need this to remain blank as the 0 causes calculations that I don't need and mess up a lot of the data I need. Is there a way that when it copies the new location remains blank until the data is inputed in the master sheet?
i have 2 worksheets. Worksheet A has 100 rows on it with information in the first column. However, there are many blank rows e.g
Column A 1 2 matt 3 4 simon 5 paul 6 7 8 mike 9 10 11 12 john
what i need to do is transfer this to worksheet B without copying accross the blank cells, Now the main problem is i want the cells to be linked so i need a formula that finds the next cell with data in it to go in the next cell down. So worksheet B will look like this:-
I am currently working in an excel file for which i want to create a macro. I am using colomn F as the base from which it should be determined whether a row should be copied. In colomn F the user can select three options through data validation. If 'completed' is selected, the whole row should be copied to the second sheet, and each copied row should be pasted to the next empty row. The data on the source sheet starts at row 11 and should be copied to sheet 2, starting from row 11 as well.
Here's what I'm attempting to do: For each column, X,Y, Z, I am attempting to count nonblanks. However, the data was imported from Access and Oracle, and Excel treats what appear to be blank cells as nonblanks. I've tested this theory by highlighting a couple of "blank" cells and deleting them, and my count changes. So, can I get Excel to put a value into my "blank" cells, so then I could filter it out, or create a formula that would only count dates in my columns (which is what I'm after).
This is what I'm looking at:
A B C 1 2/4/2006 2/6/2006 ("blank") 2 ("blank") 12/13/2005 1/7/2006 3 2/20/2006 1/15/2006 ("blank")
In each column if I use a COUNTA I'll get a total of 3, instead of 2 for A, 3 for B and 1 for C.
I have line of code that should look bat a given range and copy all visible cells to a new sheet, to start at G8. I get the message that this code doesn't perform this for more than one selection and I'm not sure my code is correct for a rnage that covers two lines either.
VB: Sheets("Error recommendations").Select ' On Error GoTo Errorhandler ...
I have a spread sheet where you fill in an order, so customer name, item being purchased, quantity and price. I now need a macro that will copy that info over into an invoice.
If the customer is only buying one item, that would be straight forward, as it could just copy that info across, but if the customer buys two items, the macro needs to see that there is more data to copy, then insert a new row on the invoice and copy the details of the other item.
I have data in some of the cells within range A26:A39
These cells are populated via an IF function on another worksheet. Even though the cells appear blank (as in the value returned is ""), there is a formula in these cells. I think it's called formula blank?
I am looking for a way to copy the data from the cells within the range which are not blank (ie: not = "") and paste this data elsewhere on the sheet in a list with no blank spaces in between.
I anticipate that there will be 4 non blank cells within this range.
Ideally I would have data from the nonblank cells copied and pasted to cells A40 A41 A42 A43
I have a list of activities (each activity is one row of data). These will be input manually into Sheet2. (see attached file)
The activities then need to be automatically copied and pasted into Sheet1. However, the data is displayed in a different order than in sheet1. So I need some code which will run through a loop for each row of data and then copy and paste it into sheet1 until it reaches an empty row.
The cell positioning of each data set in sheet1 is equally spaced. VLOOKUP will not work for me here as I do not want any formulae or VBA script in sheet1. I cannot change the format of sheet1 as it is a company form.
i have selected cells from workbookA (b2:b8) , i want those selected cells gets pasted in workbookB in a transpose way.
like B1 cell in workbookA pasted into A2 cell in workbookB , B3 cell pasted into D2 , B4 cell pasted into B2 and B5 cell pasted into G2......
i have code but not working
Code:
Private Sub CommandButton1_Click() Dim STRFILENAME As String Dim O As Workbook Windows("Copy of Bill Schedule Form1.xlsm").Activate Sheets("Sheet1").Activate ActiveSheet.Range("b2:b8").Select
In column A, I have unit numbers. Column B is blank. I need help copying the unit number in Column A down in Column B until a new unit number appears in column A. For example, in A6 is unit LS2, A12 is unit LS24, A17 is unit LS34. I would like to be able to copy A6 into B6:B11, A12 into B12:B16, and A17 into B17:B22, etc.
I have the code to copy A6 in to B6 and down, but I don't know how to make it stop at A12. Attached is also an example.
I am making a spreadsheet for use by my customers. Is there a way to leave cells that have formulas' in blank until the cells that make up the formula have entries in?
i am trying to import an excel document and then copy over some columns to another worksheet from the imported worksheet, using a macro. Everything imports and copies over fine except for one column that has cells that comprise of a list of number separated by commas. When these cells get copied over some of the values retain the commas but some of them (specially when there are a lot values separated by comma) gets changed to this format
From: 1,229,124,012,441,230 To: 1.22912E+15
From: 1044,1048,1052,1053 To: 1.0441E+15
From: 1279,1282,1286,1295,1299 To: 1.27913E+19
From:926,929,938 To: 926929938
I am trying to figure out whats happening here! Is there a max number of letters this column can take and if it exceeds that value, excel converts them to this format? Or is the formatting gets changed to something else while copying and pasting?
I have about a thousand Excel timesheets that all contain 'hours worked' data in a column. Each row contains the area of the project they have worked on and therefore the amount of time they have spent on it. The timesheets also contain the person's name and a w/e date.
I want to sequentially work through each timesheet held locally in a single folder and copy the person's name, w/e date and the hours held in the column into a single new spreadsheet. I need to transpose the data so each amount of time spent on an activity ends up in a column.
I have attempted to record a macro for this but each time I try and run it after the intitial run, it moves to a completely different cell or set of cells to the ones I have directed it and consequently there is no data copied to the new sheet.
I believe this is the first problem..! The second is working through a high number of spreadsheets held in a single locattion but whilst browsing this site I saw the "Excel VBA Loop Through a Folder of Excel Workbooks" page and think this should work fine.
I have created one-dimensional array and now I try to copy the data from array to some specific Cells in worksheet. But it seems impossible all the time!
Sheet2.Cells(56, 3 + m) = LossLocationInt(m)
NB: LossLocationInt(m) is an array containing value in it. But, this doesn't copy to the Sheet2.Cells(56,3+m). For clearness: the array has type variant
I have a spreadsheet that has been given to me by someone else, and unfortunately it has merged cells in it that are causing some trouble. I need to have a way to unmerge the merged cells, but for the data in the merged cell to then be copied into each cell that it splits into.
I've attached two spreadsheets - unfortunately I can't really attach the real one since it has research data in it, so I've reduced the size of the file and replaced some of the text. The first file shows how the file starts off, and the file named "result" shows how I would like it to be.
My real file contains some 10,000+ lines of data, and the merged cells are of varying sizes, with no consistency to the size, so I'd like a way to automate this instead of copy and pasting into every empty cell after I unmerge them.
I have productivity data sheet of employees for a month and want to update in a tracker sheet.Every productivity sheet has 5 columns containing numbers.Since its monthly it would be contain 30-31 rows and.I want to copy this data then go to tracker apply filter with respective employee name and paste it there.Is there a way to do this using vba code?
I have prepared vba code to copy paste individual rows from productivity sheet to tracker.But preparing row by row code makes it way too big.Hence i am looking for another solution.
I've been given the task of automating a spreadsheet to assess whether work has been done by each employee. Every employee has their own spreadsheet, where column A is a job code, and column H contains either y or n dentoting whether they have completed the task (y) or not (n).
The main spreadsheet is designed to show any outstadning tasks across everybody so it has a list of everybodies names in column A and then any incomplete tasks will be listed from columns b onwards next to the appropriate person. Here is what I have done at the moment.
I have a little problem here. I have my macro, and my save button in form5. I manage to keep the other data (from other form), but when I use this save button for Form5, the details save in the same active row, but saved it starting in Column O, which it is suppose to save start from Column H.
The result shows something like below.
A B C D 21 Vanessa 540414101422 14-Apr-54
E F G H 24-May-12 10333 0129458856
H I J K L
M N O P Q Yes W G R S 122 T
Here is my code:
Code:
Private Sub save_Click() ActiveWorkbook.Sheets("PATIENT").Activate Range("A2").Select
Sub lastCell() Selection.Copy Sheets("PATIENT").Cells(Rows.Count, "H").End(xlUp).Offset(1).Select 'PasteSpecial 'xlPasteValues Application.CutCopyMode = False ActiveWorkbook.Save End Sub
I am trying to make the cells Iam am copying paste hidden cells with all formats - seems to work fine other than the security part of them, Iam makeing a sheet for work and just trying to make it were it will not get destroyed by other users-
I have a worksheet with 27,000+ rows. Item numbers are listed in column J and quantities in column E. The rest of the data on the sheet is not needed. An item number may be listed multiple times. I'm trying to create a new sheet that lists each item number once with the sum of all the quantities associated with that number. The data is sorted so all "like" item numbers are listed in consecutive rows.
I have a worksheet with an overview that is filled with blank cells and wells with 1 values (see example):
1234abcd1efgh1ijkl1mnop1
I'd like to extract only the cells which are filled with the value 1 and concatenate them into the matching text. The result are to be placed in one column in a second worksheet:
I know this is basic but I'm having a hard time here. I'm trying to insert certain data into a column of blank cells. I just need the fields to be on there once. As of right now it is pasting the first field multiple times.
Private Sub AA_Click()
If PS = True Then Range("A61:A70").SpecialCells(xlCellTypeBlanks) = "Pull Stations" On Error Goto 0 End If
If CS = True Then Range("A61:A70").SpecialCells(xlCellTypeBlanks) = "C-F-A Switch" On Error Goto 0 End If
I am looking for a formula to count 2 blank cells (and return the value as 1 rather than two) but only when the cell preceding has data in it. eg in A11 there is data but in A12 & A13 it is empty = 1. PS If you are on the boards Jim I will email you an update when I get home tonight.
I have a list in one worksheet which comes from "=SALESMEN!$D:$D" but the list is extremely long with blank values. How can I make the list only show values from column D which are non-blank?
Currently the list goes up to 30, however I want to use all of Column D from the SALESMEN worksheet, that way if I add to it, the names will automatically be added to the list in the other sheet.