I want copy the column A formula into row 1 like this :
A B C D
1 ='sheet1'!B2.......='sheet1'!B3............='sheet1'!B4............='sheet1'!B5
2 ='sheet1'!B3
3 ='sheet1'!B4
4 ='sheet1'!B5
5 ='sheet1'!B6
but when I copy the formula from column A to B, the cell(B1) will become ='sheet1'!C3, are there any way transpose the formula without change one by one?
When you right-click (to paste your copied selection), it comes up with a Paste Special option. Click this and select Transpose. This should do it for you.
And changing the B3 (in your formula) to $B3 should stop it changing the formula
Related
what is the formula to combine 2 column into 1?
(sheet link included : here)
for example :
Column A
Column B
Cell 1
Cell 2
Cell 3
Cell 4
Cell 5
Cell 6
become :
Combined
(with the spacing blanks included)
Cell 1
Cell 3
Cell 4
Cell 6
Cell 2
Cell 5
this is the database primary sheet, so the plan is i will load/link from this database sheet to another sheet (plus in case i have another cell to add between, it will sorted out automatically)
i try arrayformula({A:A;B:B}) but it tells me to add another row ?
help please
formula tried :
arrayformula,
flatten,
(it tells me to add another row?)
unique
(it overwrite the doubles? and remove blank space?, i need the text to be it as it is)
Try the following formula for raw materials. Then use same formula for packaging and change column references.
={FILTER(A:A,A:A<>"");" ";FILTER(E:E,E:E<>"")}
Edit: To include blank cells try this formula-
={C1:INDEX(C1:C,MATCH("zzz",C1:C));" "; G1:INDEX(G1:G,MATCH("zzz",G1:G))}
This question already has answers here:
Copy cell from a coloumn if value is starting with #excel #formula [duplicate]
(2 answers)
Closed 7 years ago.
I have 3 columns of data in Excel spreadsheet, column 1 is Business Unit, column 2 is item_ID and column 3 is Cost. Column 2 and 3 have data in all rows but column 1 only shows business unit once then the rest are blank until the business changes. I can just drag the business unit data and control down to the blank ones for EACH business unit, but what if I have thousands of rows and more than hundreds of business unit? That will take me forever to do. Is there a way to do this task faster?
Let's assume the data below:
Step 1: select from cell A2 to A31 (all the data rows under Unit column)
Step 2: Click on home tab and click Find & Select.
Step 3: Select Go to Special.
Step 4: Select Blanks and hit ok.
Step 5: On the first cell, enter =A2 (equals to the cell above the blank) then hit ctl+enter
Assuming that Column A is your Business Unit column, adding a temporary column next to it and replicating the first value ie B2=A2 then on B3you could use the following formula:
=IF(A3="",B2,A3)
Copy it down to all your rows in Column B. After verifying its accurateness you could copy and paste as value into your column A and then delete Column B. Regards
Warning: Kludge
In Column 4 create a formula that says "If column 1 is blank, make it look like the row above it, otherwise do nothing"
Highlight that cell and hit Ctrl-End, which should take you to the bottom row of your spreadsheet and Shift-Click. This should highlight the entire column.
Hit Ctrl-D, to fill down. You have now copied your formula to all cells in the column.
Click the column 4 header and then copy (Ctrl-C).
Click on the column 1 header and then 'Paste Special' (Ctrl-Shift-V) and then select "Values"
In D1
=A1
In D2
=if(A2="",D1,A2)
Drag down
Copy D1 to D end of data
Click on A1
Paste as values
Delete column D
I am trying to do the following via a formula rather than VBA/macro (i do not want a copy/paste special solution as i need more control). is it possible to:
I have a column in which there are some blank rows and some rows with values. let's call that column A. In column b, i only want to copy the cells if the column A has a value. if it doesn't, i want it to skip to the next cell in column A, but stay on on the same cell for column b.
Column A
1
2
[blank]
4
[blank]
6
i want column b output to be (but with no blank rows). this would imply that somehow the formula would need to loop and have some loop skipping logic:
1
2
4
6
Normally i would just set cell B1 = A1 to copy it over, but since i want to skip rows that are blank in column A, i'm not sure what to do besides right a macro. Can i use an array or any other creative solution? Eventually, i would also use this for items with specific values (not just blanks).
thanks!
Generically in cell C2 copied down....
=IFERROR(INDEX(Range,SMALL(IF(Range=criteria,ROW(Range)-MIN(ROW(Range))+1),ROWS(C$2:C2))),"")
confirmed with CTRL+SHIFT+ENTER
so here if your data is in A1:A10 and you want results from B1 down
=IFERROR(INDEX(A$1:A$10,SMALL(IF(A$1:A$10<>"",ROW(A$1:A$10)-ROW(A$1)+1),ROWS(B$1:B1))),"")
confirmed with CTRL+SHIFT+ENTER and copied down
when you run out of data you get blanks
For BLANKS, just copy ColumnA to ColumnB, select ColumnB, Find & Select, Go To Special..., Blanks, right-click one of the selected cells, Delete... with Shift cells up.
If you don't care about the ordering of the numbers (such as an array that will be binned or analyzed with a histogram), then simply copy the row and paste values only in another row. Now just sort the row of values. It will place all the empty cells at the bottom of the selection.
I am new to excel and was wondering if you could help with an issue i am trying to figure out.
I have 3 columns and would like to switch A1 with B1 if the date dd/mm/yy in B1 is before the date in A1.
Okay, let's say that columns D and E are empty. You will put the formula in those columns. In column D will be the dates which should go to column A and in column E will be those to go in column B.
In cell D1, put the formula:
=IF(B1 < A1, B1, A1)
In cell E1, put the formula:
=IF(B1 < A1, A1, B1)
And copy the formula down.
Sidenote: To make things go a bit quicker, you can select both cells D1 and E1 (selecting D1 first), go to the bottom of the spreasheet using the scroll bar only push and hold Shift and click the cell E in the last row. This should select everything from above till that cell you clicked. Then release Shift and push Ctrl+D to replicate the formulae throughout the selected columns.
After having the all formulae, copy and paste as values in place (To paste as values, you right click and go to Paste Special, find 'Values' among the different options.
Copy again and paste onto columns A and B, then delete columns D and E.
I have a libreoffice sheet that I would like to have the rows increase by 1
example:
1
2
3
4
The problem is I know I can do this with autofill but I have 50000 rows and dragging down takes awhile.
Thanks
Assuming that you already have data up to row 50'000, and you have an empty column (I'll use Col. A) for the series.
Jump to the last cell in one of the "used" columns Ctrl + Arrow down (or scroll all the way down to Cell A50000) then move sideways to Col. A and place an "X" in cell A50000. You now have an empty column A, with an "X" in cell A50000.
Go to cell A1 ( Ctrl + Home ). Put the number "1" in cell A1. Put the following (secret!) formula in cell A2:
=A1+1
Copy cell A2 with Ctrl+c
Stay in Cell A2...
Press Ctrl+Shift+Arrow down, The area from A2 to A50000 should now be highlighted.
Press Ctrl+v to paste the formula all the way down...
IMPORTANT!
Press Ctrl+c to copy the just pasted data (A2..A50000).
Press Ctrl+Shift+v to paste the just copied data "over" the original data with "paste special".
In "Paste Special" make sure that you have NOT selected the option: Formulas.
This will now paste all the results of the formulas back as fixed numbers.
This should take less than a minute, of which most of it is waiting for the system to calculate and to paste (I tried it for 1 mio lines..)
By just changing the formula from =A1+1 to =A1+2, jou can jump with 2, so 1,3,5,7,... But I assume that you'll use this column as a reference for sorting, so you can always go back to the original order.
Have fun!