Asymmetric Fill (fill Out Column B Referencing Column A, But Only Incrementing By 1 Row In A Every 2 Cells In B)
Feb 1, 2010
Is there some easy way to fill out column B referencing column A, but only incrementing by 1 row in A every 2 cells in B?
Example:
Column A:
A1 = 1
A2 = 2
A3 = 3
etc...
Column B (I would like to fill this, referencing column A):
B1 = A1
B2 empty
B3 = A2
B4 empty
B5 = A3
etc
View 4 Replies
ADVERTISEMENT
Feb 19, 2009
I have this formula: =VLOOKUP(C:C,Sheet2!A1:A10000,1,FALSE)
that I need to put in column A from 1 to 26,xxx. Is there a way to paste that formula in every cell down the column without the part in bold changing? I'm not too keen on hitting ctrl+v over 26 thousand times.
View 2 Replies
View Related
Feb 27, 2008
I'm looking the fill cells in column A to the bottom of my table, however, new information is added to the table on a regular basis and so designating the range as cell numbers won't work. Here's what I have so far: ...
View 9 Replies
View Related
Oct 8, 2007
If A1 has a value of ABC,
A2-A5 are blank
A6 has a value of DEF
A7-A10 are blank.
Is there a formula that will fill A2-A5 with ABC,
look at the value of A6 and see that it is different from A1-A5,
or not blank,
change the fill value to the new value, A6,
then fill down the value of A6 into A7-A10
instead of manually using the fill handle?
View 3 Replies
View Related
Nov 9, 2009
I have 2 columns, the second column has some empty cells in the end of the column
What I would like to do is to fill in those empty cells but only as many as the filled-in cells in the first column
(I have already tried the specialcells(xlCellTypeBlanks) but that did not work as the empty cells are not always "blank" as well)
View 10 Replies
View Related
Feb 28, 2013
I have been using this code I found awhile back to fill blank cells in a column with the preceding value. but it leaves the very last cell blank. Like this.
A
B
41055182
905182
41054750
905182
[Code] ........
Is there a way to add possibly a "Do until column B is null or """?
Code:
Sub FillBlanks()
Dim rRange1 As Range, rRange2 As Range
Dim iReply As Integer
If Selection.Cells.Count = 1 Then
MsgBox "You must select your list and include the blank cells", vbInformation, "OzGrid.com"
[Code] ........
View 9 Replies
View Related
Apr 15, 2009
Is there an easy way that if any cell in column A is blank it can copy the value from the closest non-blank cell above it? I eventually have to export data from a workbook into a database. But I cannot have any cells in column A as null or blank.
1. There are no blank rows, and at least 1 cell in each row has a value.
2. The person who constructed the sheet did not fill in all cells in column A for each row, they imply that if the cell is blank then it belongs to the same value as whatever the cell above it has. Ie, all similar rows are grouped together.
3. Of course, I only need column A filled in for rows that have data in at least 1 of their columns.
4. Simple worksheets with no formulas to worry about.
Additionally, if it is possible to get a macro so I can apply the code to all worksheets in my workbook at once, can I get that too? In the example below (where .... are blanks) I would like A2 to read 'Fruit' and A4 to read 'Meat'
ColA ColB Colc
---- ----- -------
Fruit apple red
.... grape green
Meat ham pink
.... beef brown
View 4 Replies
View Related
May 7, 2008
How do I make this to work with dynamic range instead running for complete column? For example: Run this code until last active cell in Column A. Column A will always has value so if cell A25 is last active cell in range then this code should stop executing for column R25. So execution of this code would depend on active cell in column A.
Columns("R:R").Select
Dim Cell As Range
For Each Cell In Selection.Cells
If Cell.Value = True Then ' if true do nothing
Cell.Value = ""
ElseIf Cell.Value = False Then ' if false change to Null
Cell.Value = "Null"
End If
Next
View 4 Replies
View Related
Jul 26, 2014
I've an excel table containing the list of expenditures of employee. I've to sort the table and use different colors for different employee rows.
How can I do this task using formula? Is this possible?
Please see the attached excel sheet for the sample table and desired output.
View 1 Replies
View Related
Nov 6, 2009
I have an exported Excel worksheet1 from the parts database get every Friday. We get RFQ of parts list each week from multi customers about 3000+ parts as they send in MSword, MSoutlook or MSexcel to me I make into Excel worksheet2. I do not like to type in every part into the parts software I have my words for that software Cough Cough. The exported excel speadsheet tells the part numbers, Location, Qty, Price, ETC I would like to take the Excel RFQ list and have it populated from the other speadsheet
SAMPLE
A1 PART number that on both spreadsheet
A2 QTY on both there request and our stock
A3 Price
A4 Location
So want a compare worksheet1 with worksheet2
A1 = A* the populate A2-A4 with worksheet1 data
View 5 Replies
View Related
Aug 11, 2008
I would like a macro that when run, finds empty cells in a column within the used range and fills them with the same formula in the other cells in the same column but relative to the row.
I have a basic understanding of VBA so if someone can set me on the right track i'll have a go myself as i appreciate this would take a while to write out from scratch.
View 9 Replies
View Related
Feb 8, 2008
I have a sheet where users enter a date and other details on each row.
The number of rows where data is entered can be upto 20 at any one time.
I wish to allow users to drag the cell date down for the number of rows they wish, without the date incrementing.
View 4 Replies
View Related
Jul 9, 2014
I am using Excel 2010 and have the problem as shown in the attached file.
Input Sheet shows the Data I have at present
Output Sheet is the desired result.
I need a macro which should create an "Output" sheet by doing the following on the Input Sheet
1)Insert a Blank Column before Column A
2)Unmerge the Region Heading and insert the respective Region Name in the newly inserted Column. Region Heading will be in Bold Font.
3)Repeat Step 2 for all Regions
4)Delete the Rows which was merged.
Please note that the number of Data Rows will vary for each Region.
I have shown two Regions for explanation purpose only. There will be several Regions in reality.
The result is shown on the Output sheet
Merge Problem - Forum.xlsx‎
View 3 Replies
View Related
Jan 17, 2013
I'd like all Cells in column AC (e.g. AC$3$:AC$517$) to be filled with yellow fill if the cell value is any date greater than or equal to today. Any past dates can be left blank (for now)
=$AC3>=TODAY()
View 3 Replies
View Related
Jul 13, 2014
When I hide columns in a column chart the different fill colors I used on specific columns no longer show up with the colors I originally had. Is there a way to maintain the proper sequence of column fill colors even when some columns are hidden?
View 1 Replies
View Related
Oct 18, 2009
I have 4 columns
Column A is "Customer Number"
Column B is "Date Can Opened"
Column C is "Month" (currently blank except header row)
Column D is "Year" (currently blank except header row)
I would like a macro to do 2 things here....
1. Extract the Month part of the "Date Can Opened" column and put it in column C.
2. Extract the Year part of the "Date Can Opened" column and put it in column D.
Currently, the "Date Can Opened" column is formatted as a date like */14/01 taken from the Number tab in the Format Cells dialog box) ...
View 9 Replies
View Related
Apr 21, 2014
I have a worksheet with Coulmn A and B , wherein , Column A has a list of values that can be duplicated. Based on the values in Column A, I want to fill corresponding cells in Column B. see the attached.
way to accomplish the same. Tried VLOOKUP.
View 1 Replies
View Related
Nov 23, 2012
I am after a macro to insert a column lets say between column A and B. Once column inserted new column B should be filled by a text say "January" but it should be only filled upto the data of column A so if column A has data upto A600 then column B should be filled from B1 to B600.
I tried recording but it fills data upto B65000+.
View 2 Replies
View Related
Jun 18, 2009
I am trying to have some automation to my WS and what I want to do, is if a certain column (column 104) is changed, it will fill out that column with the data entered as long as the account is the same (column 5). Here is the code I tried, but realized very quickly, it puts me into a loop. This is being called by a change worksheet fuction
If Target.Column = 104 Then
If IsEmpty(Target) Then
Else
testacct = Cells(Target.Row, 5)
temptest = testacct
s_TempSwitch = Target.Value
Testoffset = 0
Do While temptest = testacct
temptest = Cells(Target.Row + Testoffset, 5)
Cells(Target.Row + Testoffset, 104).Value = s_TempSwitch
Testoffset = Testoffset + 1
Loop
End If
End If
View 3 Replies
View Related
Apr 19, 2007
I have a list that is streets and addresses. All contained in column A. Cell A1 is the street name and then Column A3 is the street number. This repeats down column A for almost 1000 street names. I need to fill column B3 with the street name, as well as B4, B5, B6, etc until the street name changes. I was trying to do this with an if..then but couldn't get it to work. I also tried to work on a do.. loop looking for the change from a string to number. But my programming is a little rusty. If anyone can help I was be forever grateful. I mean the alternative is to sit here and copy and paste all day.
ABBEY CT
1700
1700
1703
1703
ABERDEEN LN
1305
1313
1321
1321
View 4 Replies
View Related
Nov 7, 2008
how to enter data in non-adjacent cells using a fill command.
Here is what I am trying to do:
in the column, I am holding ctrl button to select every 10th cell down the sheet. I need to enter a date in every selected cell that is exactly 7 days apart, i.e., 11/7/08 then 11/14/08 then 11/21/08, etc.... but no other dates or data.
I have tried to figure out a way to do this other than manually, but am confounded.
View 9 Replies
View Related
Aug 20, 2009
I am looking for a macro that will fill the column C by looking at column A at another workbook.
For example:
Full workbook:
A(column that will look) B C
blala blabla Blabla
Workbook missing entries in C row:
A B C
blabla blabla Null
So the workbook that missing entries in Column C,will look for it,by looking at
at column A,wich is the same at full workbook.
Here the workbook wich the values will be taken at Column A, named as archive
And the the workbook (named 900066_027_2373.xls)wich the column C will be filled,by looking at column A.Then find that code in the "archive.xls".See what has in it's A cell.Copy it.Paste it in current cell.
Attached Files
View 9 Replies
View Related
Jul 10, 2007
I need to fill in one column (a county code) based off of the contents of another column (the State). Something that would generally be easily solved through a VLookup. However I want the macro I write to be usable in other workbooks where the columns may not appear in the same order or with the same spacing (slightly different names may be possible too but we'll look over this for now). I have the columns named by their heading, but then I need the macro to go down the two rows, filling in 998 in the county code column, if the state is not OH.
Dim x As Integer
Dim STcode As Range
Dim CnTcode As Range
For x = 0 To ActiveSheet.UsedRange.Rows.Count
If STcode.Cells(x, "State").Value <> "OH" Then
CnTcode.Cells(x, "County_Code").Value = "998"
End If
Next x
I know that there is a problem in the logic because "State" and "County Code" are ranges, so excel doesn't like me referencing them as columns.
View 9 Replies
View Related
Jan 27, 2009
I'm creating a financial document, the currency is in £ and then I'll need to convert to $ based on the decided rate. So I'm trying to make 1 cell (A1) as my current exchange rate and then have the formula =sum(B5*A1) so that if the rates change, I can just change that one cell and all will be updated. I'm doing this for hundreds of rows so I need an efficient way to do that.
The problem happens when I try to continue that formula down for B6, B7, etc. It just keeps changing A1 to A2, A3, etc, it's filling down that as well and I don't want it to.
View 2 Replies
View Related
Jul 23, 2008
Bet this is simple to someone...
How can a continue this fill series down a column?
=$BC$3
=$BC$4
=$BC$5
=$BC$6
I would copy, paste and edit only there are 2500 rows!
View 14 Replies
View Related
Apr 25, 2009
I need to Fill formulas down the column.
View 3 Replies
View Related
Nov 29, 2011
I need a macro to perform the following:
On column A, from row 2 to 22, I have on each cell, an equal to (=) formula which links the result from another sheet in the same work book.
I need a macro that begining on Column C, everytime the cells in Column A changes from 0 to a number, displays the number on column C and when cell in Column A goes back to 0, Column C retains the number. Next time Column A displays a new number, then Column D is filled, next number Column E and so on.
Example: Lets suppose that cell A2 shows 1234, then cell c2 will show 1234, once cell A2 goes back to 0, cell C2 remains 1234. Then when cell A2 shows a new number 5678, then cell D2 will display the new number 5678 and if A2 goes back to 0 cell D2 will retain the number 5678 and again, once cell A2 displays a new number 1589, then E2 will display 1589, etc, etc. This could happen as many as 20 times (up to column V) before erasing all columns and beginning all over again.
View 8 Replies
View Related
Jun 14, 2013
I have a workbook that has a few data sheets and a summary sheet. On this summary sheet I have to grab data from the data sheets which is in the same row number but different column (always 5 to the right of the previous one).
Eg: Person's Name is in Row 10, Col E (E10), the next name is in J10, then O10, etc. This carries on past Column Z. For each person there is a bunch of other data which is in the same format (set row but 5 over for column).
Since row stays the same i thought i could absolute reference that and then leave column as relative and drag down. This works but only if I drag to the right (across columns) and only if i need to increment by 1.
View 2 Replies
View Related
Jan 6, 2014
I am working on a spreadsheet and I need values from Sheet1!a2, a7, a12, a17 etc...
I want to fill in the formula ='Sheet1'!a2 etc, to fill column A in sheet2!
When I highlight and drop down to fill excel fills the column in increments of five like i need but doesn't start on the right one. Instead it fills the formula as ='Sheet1'!a6, (For cel A1) and ='Sheet1'!a11, (for cell A2) and so on.
View 14 Replies
View Related
Apr 28, 2009
I got an example xls but can't figure out how it's done....
View 6 Replies
View Related