Copy column cells value from 1 sheet to another sheet rows - excel-formula

I am not sure whether can I ask Excel related questions in stackoverflow. This is my first time using excel and I have no idea how to start or what is the search keyword to my answers. My explanation sucks so I will use screenshots instead below :
I have a few products like this in the Product Sheet
I want those products to be display like this in Customer Sheet
Is it possible to do it? I am currently using google sheet to do this. Thanks in advance guys! =)

You can use Ctrl + Alt + V To paste which will open a dialog , Click on the transpose checkbox ( At the bottom right of dialog ) and click On Ok.
Paste Special Dialog
Use a formula
You can use it as a Formula. For example you have values from A1 To A10 in Sheet1. You Can apply this formula in a cell in Sheet2 =TRANSPOSE(Sheet1!A1:A10)
List In Sheet1
As columns in Sheet2 using formula in B2 Cell As =TRANSPOSE(Sheet1!A1:A10)

Related

How can I paste links and transpose at the same time?

I have a long list of titles along the top of a sheet, that I want to turn into a vertical list on another sheet but which is linked to the original list. Basically I want to paste links into another sheet but tranpose it at the same time.
The Paste Special allows me to paste links, or paste the transposed range as formulas or values (not as links), but does not not allow me to do both at the same time as the Paste Links button is greyed out when the transpose option is ticked. What is the easiest way to achieve the same output?
Input (Sheet1) - a row of numbers:
Desired output (Sheet2, formula view) - a column of links:
In C3 of Sheet2, just put this and drag downwards should do :
=OFFSET(Sheet1!$C$3,0,ROW()-3)
Idea : use cell's row numbers as reference 'column shifter'.
Please share if it works/not. ( :

Can I use one formula for several sheets?

I have a workbook that currently have 20 sheets and it grows with about 3 sheets per day.
All sheets use the same formulas in columns H-L.
But sometimes I find errors in the formulas or need to ad a condition to it and then I need to update all sheets formulas with the same formula. And that is the problem.
Can I have the formula in one cell somewhere and in each column just reference to this formula so that if I change the formula in this cell it will change in all places?
In each sheet I need the formula to "fill down" about 2300 rows.
In sheet1
A1
=A1+B1
In sheet2
A1
='sheet1'!A1 // will calculate A1+B1
Anyone know of a way to do this?
If all sheets have the same structure, you can use a 3D selection to change a formula in the same cell on all sheets.
For example, if your workbook has sheets 1 to 10, select cell B1 in Sheet1, then hold down the Shift key and click Sheet10. Now all cells B1 in all sheets from Sheet1 to Sheet10 are selected, no matter what the sheet name is.
Enter a formula like =A1+A2 and hit Enter. Click any sheet and check the result. B1 will have that formula in each of the sheets.
Now go back to Sheet1, select B1, hold Shift and click Sheet10. Change the formula to =A1*A2 (multiply instead of add) and hit Enter. Copy the formula down.
Check the other sheets and see that the same formula has been applied and copied down on all other sheets.
With this technique, you can select the same cell in all sheets of the workbook and change the formula in all sheets with just one edit. Of course, it only works if all sheets in the selection have the same data structure.
Edit after comment: You could use the first sheet as the Formula Master sheet, and just need to remember that if you want to change a formula, you first have to use a 3D selection. Other than that, Excel does not offer formula replication in the way you describe. A reference to a cell will always return the cell's value, not its formula.
You could create a UDF (user defined function) in VBA for your goal:
Press Alt+F11, right click on your project in the project explorer and select Insert --> Module. Paste the code below:
Function ExecuteFormula(ByVal Target As Range)
On Error Resume Next
ExecuteFormula = Evaluate(Target.Formula)
End Function
Now you can use the ExecuteFormula() like every other function. If you want to enter the formula in your master sheet as a string "=A1+B1" just replace the 3rd line with:
ExecuteFormula = Evaluate(Target.Value)
I hope this helps.

Vlookup formula in excel

I was hoping someone could offer me a little help please on a formula. In one of my cells I use a vlookup to search for the colour in B12 and match it to the colour on another worksheet called cars.
Now this works perfectly fine, but after running the formula I have to select the last row of data and press control & d, or drag down the cell up until the last cell, my question is that is it possible to add this forumla into the cell and have it automatically run all the way down to the last row of data? my forumula is
=VLOOKUP(B12,coloursc:carsc,2)
You can use an Excel table for your data entry. Formulas and formatting will automatically be applied to any new row in the table. You no longer need to manually copy down or pre-fill empty areas of the spreadsheet with formulas.
Learn more about tables in this Microsoft article and this tutorial on Contextures.com

Find and count each occurence of a name is column A then read a value from column B

I need a formula that is beyond me and my Excel skills, I need to insert the number of times a match is found in column A into column C and then insert the total number of days for that person in column D. Can anyone help?
In cell C2:
=COUNTIF(A$2:A$6,A2)
In cell D2:
=SUMIF(A$2:A$6,A2,B$2:B$6)
See also:
COUNTIF
SUMIF
Have you considered using a pivot table? It's a little bit overkill but greatly simplifies what you want to do. Assuming your using Excel 2007:
Select the range of data including column labels.
Go to Insert->[Tables]->PivotTable.
In the dialog box that appears, select Existing Worksheet, choose a cell a click OK.
At this point, the PivotTable pane appears with your field names in one box and four other labeled boxes below.
Drag Name to the Row Labels box.
Drag Name to the Values box.
Drag Days to the Values box.
You're done!

How to automate a spreadsheet

I am using microsoft excel 2002. What I am wanting to do is say I have some data in column A in sheet 1 and data in column A in sheet 2.
What I want to do is when I add data to sheet 1 Column A (lets say some text), I want excel to automatically add a row in sheet 2 column A. So if I have 30 rows in both sheets and I add a string "hello" in sheet 1 Column A (in row 31), I want it to automatically add the same row in sheet 2 Column A (row 31).
Is this possible to do from within excel?
Thanks in advance for your help.
In column Sheet 2 , column A row 1
enter the formula '='Sheet 1'!A1
Then cntrl C the cell with the formula you just entered,
Still in Sheet 2 select cells A2 to A99 or however many columns you expect to enter
cntrl V
The values you enter in Sheet1 will magically appear in sheet2
You can do this easy in VBA. If getting started is hard for you, record a macro and check out the generated code. You'll have no problem continuing from there.
Good luck!
you could put an Array formula in Sheet2 Column A. I dont think you can get this to work on the entire column, but you could apply it to say the first 5000 rows. Then when the user enters values on Sheet1 they would be duplicated on Sheet2.
Somthing like:
=IF(Sheet1!$A$1:$A$5000="","",Sheet1!$A$1:$A$5000)
Should copy the cells from A1:A5000 and remove the empty ones into the destination range. You will need to select the 5000 cells on Sheet2 and enter the formula and then press Ctrl-Enter to insert it as an array formula.
This is far simpler than attempting to build something either with VBA or VSTO to watch for changes and duplicate them.

Resources