I have a spreadsheet. I would like to export data from specific cells based on the selected row or rows and import them into a new spreadsheet with a table.
I am not sure how to go about this in excel. I have tired a range but it copies everything. I would like it to be if i select row 5 it take data from B5, E5, F5
I plan to use a userform and macros with a command button to perform this function but i can do all this with no issues
Any help would be greatly appreciated
Related
I am attempting to transpose data in multiple columns from different sheets in a workbook into rows in another sheet (within the same workbook). I am attempting to make this code dynamic. For example, once the latest month closes, the code will pull the updated numbers-there are blank cells after June (so Cell D274 is blank). Below is the code I have tried and a screenshot to visualize what I am attempting to do. Any help would be greatly appreciated.
I want to get the datas from other sheets to the main sheet by selecting the store name from the dropdown menu on main sheet.
So on main sheet, i want people to select the store name from dropdown list and retrieve the product stock datas (all sheets have same product names) and allow them to change the stock values and store them to corresponding store sheets that i will hide.
Here is an example sheet i prepared:
https://docs.google.com/spreadsheets/d/1BtrNKMSgurdft01P9Dw5MEh7rmYWPapwE18yhvDCdYE/edit?usp=sharing
Waiting for your help.
Thanks
You can probably achieve the first part with the INDIRECT function, which lets you convert a String into a Cell Reference or Named Range.
As an example, if you have Worksheets called Sheet1 and Other Sheet, and a dropdown with those names in cell $A$1 of another sheet, then you can retrieve the value from cell $B$2 of those sheets like so:
=INDIRECT("'" & $A$1 & "'!$B$2")
Which will evaluate to one of the following:
=INDIRECT("'Sheet1'!$B$2") > =Sheet1!$B$2
or
=INDIRECT("'Other Sheet!$B$2") > ='Other Sheet'!$B$2
This will not, however, let you send the data back to that sheet without delving into VBA. If you don't want to do that, you might be better off changing your drop-down to a series of Hyperlinks along the top of your worksheets to go directly to the sheets?
In my spreadsheet, there are cells that correspond to a certain url and they are spread across the sheet, and because of that I cannot select a group of cells and add hyperlinks to every cell in one go. I've tried using the find function and ctrl+A to select all but when I right clicked a cell the hyperlink option is greyed out. I've tried manually selecting the cells with ctrl+click on each cell that I want to have the same hyperlink. Once again the hyperlink option is greyed out.
Is there a more effective way to accomplish my task without having to individually add hyperlink to each cell since I have at least 3 thousand cells and only 200 unique hyperlink?
Thanks
There is a function called HYPERLINK so one way of doing it if you have a set of values in column A and a table of hyperlinks that go with them in columns J and K would be like this:-
=IFERROR(HYPERLINK(VLOOKUP(A2,J$2:K$4,2,FALSE)),"")
I admit to not being very technical and my limit up to now has been using paste links to connect data between sheets. I now have a requirement I cannot figure out.
I have 2 workbooks I wish to automate sharing data between.
Workbook 1 contains multiple rows of data manually entered.
I need a button against each row so when it is pressed data from certain cells on that row in Workbook 1 are transferred to cells within a worksheet in workbook 2
I would be very grateful for any guidance on how to achieve this.
Many thanks!
Though you can deploy VBA to achieve this, but the same is also possible with simple formula like.
=[1.xlsx]Sheet1!$A$1
Lets say you have two workbooks 1.xlsx and 2.xlsx and you want sheet1/column A1 value from 1.xlsx to be auto populated in sheet1/column A1 in 2.xlsx, you can simply link it with a formula like =[1.xlsx]Sheet1!$A$1 in second workbook 2.xlsx.
So as soon as some entry is done in first cell, second cell is auto populated
However if you are looking only for vba solution do write back
I'm working on a spreadsheet to act as a master copy for some important information that will be kept track of for a project. On the main sheet I have a table for notes and a table for contacts set up separated by several columns and some VB code to insert new notes or new contacts. However, when I insert a new note I want it to appear at the top of the table and to move all existing notes down a row. Is there any way to add a row to a specific set of columns so that any other data that is kept on cells with the same row, but in a different table, are not moved?
A basic example:
Dim rng As Range
Set rng = Worksheets("Sheet1").Range("A2:D2")
rng.Insert Shift:=xlDown
...assuming that you want to insert 1 row of cells above the cells currently located in A2:D2.
You'll have to code a VBA macro that selects all cells in the notes table as a Range object, and then moves them down one row.
I wouldn't know the exact code, but I'd advise you use the "Record Macro" function and do it by hand: select two cells in an Excel sheet, press the right mouse button and click "Insert". Then it'll ask you if you want to move the rows down. You can see in the newly recorded macro what the code is, and adjust it for your specific purpose. Good luck!