I have an excel sheet, row1 contains columns in certain order,
i want to break this row at a specific cell contains chart[*], into multi rows.
image of the sheet,
or if there is a macro that count number of cells then copy them into new row will do the same job.
In cell A9 enter:
=IF(OFFSET($A$1,0,COLUMN()-1+6*(ROWS($1:1)-1))="","",OFFSET($A$1,0,COLUMN()-1+6*(ROWS($1:1)-1)))
and then copy both across and downward.
Related
in this picture, the data in column I and R are both formulas. I want to write a code to have the formula in column I paste AS VALUES if there is an asterisk in the same row of column R and do nothin if it is blank. I need to do this for rows 9:44.
I have a file with 300 worksheets in which I need to insert a formula (INDEX/MATCH) in Column G of each worksheet. Each worksheet has a different end point, for example, Worksheet1 ends on row 30, Worksheet2 ends on row 600, Worksheet3 ends on row 44 etc.
The formula I enter will be on cell G2 across all 300 worksheets but each worksheet will have a different ending row. I want to enter the INDEX/MATCH formula on cell G2, but have it end at the last row for each tab. Trying to avoid dragging the formula down and then going to each tab to remove rows that are not needed.
I have data being entered into a ROW on one spreadsheet which I need to have in a COLUMN on another spreadsheet within the same workbook.
Copy, Paste Special and transpose will not do the job as I need the COLUMN to remain actively linked to the ROW, so that as the new row data is entered or amended the column data changes accordingly and then sorted in descending order.
here is the rank worksheet
worksheet containing the row i need to copy from
With data in Sheet1 like:
In Sheet2 cell A1 enter:
=IF(INDEX(Sheet1!$1:$1,1,ROWS($1:1))="","",INDEX(Sheet1!$1:$1,1,ROWS($1:1)))
and copy down . In Sheet2 cell B1 enter:
=IFERROR(LARGE(A:A,ROW()),"")
and copy down:
(this is only an example. You will need to modify the equations to match your data structure.)
Edit
Hello,
Trying to copy a row of data from a roster on a sheet into a new sheet when a cell states Line 1
ie When i type Line 1 etc i want excel to automatically take the row of data for Line 1 on my data sheet and insert it into the target row, cannot use VBA
Appreciate help, i am a beginner
If your data is in A1 to E2 in Sheet1 and your formula in Sheet2:
=IF(Sheet2!A2="","",INDEX(Sheet1!$A$1:$E$2,Sheet2!A2,COLUMN(Sheet2!B2)-1))
Now type into cell A2 in Sheet2 the row you want the data from in Sheet1. Drag the formula to the right or down by clicking on the lower right corner.
Macro newbie here....
I am trying to paste certain cells within a range from one worksheet to another based on the contents of cells in a particular row. For instance, within range B5:B100, I want to copy and paste the B cells to another worksheet -- and their companion row cells in columns J and M -- when the B cell of the row in question is non-blank. And instead of having blank columns in the worksheet2, I need the results to paste neatly into columns A,B,C).
For example, let's say there are only two non-blank cells in the worksheet1 range B5:B100 - cells B26 and B78. Running the range macro would then copy B26, J26, M26 and B78, J78, and M78 then paste them into the second worksheet starting at A2 (to allow for header row) and without blank rows (so B26 to A2, J26 to B2, M26 to C2 and B78 to A3, J78 to B3, and M78 to C3).
I was able to do a non-blank copy and paste of jsut the b column values but lost as to picking up the other needed cells for each row.
Thanks!
I would suggest:
Find the item using Cells.Find
When you find the item, you can get the row/column of the cell. Then on the new sheet, using a cell reference, you can say something like
Sheet2.Cells(curRow,"A").Value = Sheet1.Cells(foundCellRow,B).Value
For the adjacent columns, you can say
Sheet2.Cells(curRow,"B").Value = Sheet1.Cells(foundCellRow,"J").Value
I hope this helps