Search Box To Different Sheet?
Dec 9, 2011
I would like in sheet1 a button, so the number is typed in then press the button and it will take me to that number in sheet2.
I have tried a few macros but they bring up multiple numbers and didn't take me to cell.
View 9 Replies
ADVERTISEMENT
May 14, 2014
What I have is a sheet that is copied periodically from some source sheet, and on this sheet is a table. This sheet is called "Onsite Checklist Template" and it's table is titled "Checklist". I also have another sheet called "Loggers and Initial Notes" which has a tabled titled "Record", and then finally a title sheet call "Proj Details".
To clear this intro up - The sheets, in their order, is: "Proj Details", "Loggers and Initial Notes", "Onsite Checklist Template". The tables: "Record" on "Loggers..." and "Checklist" on "Onsite..."
When the user wants to make a new site visit, he/she fills in the requested date and then selects a button on "Proj...". When this button is selected, it copies the table data on "Record" and puts it on "Checklist", then inserts a new worksheet tab, always in the 3rd position (the title is based on the site visit date in which the user entered), which is a copy of "Onsite...". Now we have another sheet with a table called "Checklist1", and upon another new site visit, there will be another worksheet with "Checklist2", and so on.
On the "Onsite..." worksheet, there is a button on it which also gets copied with the worksheet so that every new worksheet has this copied "Checklist ???" and this button. I'm looking for a macro that, when the button is selected, will bounce the active sheet's table "Checklist ???" off of "Record" and make changes as needed.
"Checklist ???" data range is B11:M20 (the header is on row 10); "Record" data range is B29:Q78 (the header is on row 28); Column headers are titled the same, just that "Record" has 4 extra columns, 3 in the middle and 1 on the end. "Checklist ???" columns 1-12 to "Record" columns 1-7, 10-12, 14-15. The search criteria is the 4th column in both tables ("Trk #").
I need the macro to do the following:If it finds a match, then update "Record" as needed with data from "Checklist ???", changing whatever cell is different in the row that contains the matching "Trk #", so long as the cell on "Checklist ???" is populated (i.e, if a cell on the target row of "Record" has a value, but it's blank on "Checklist ???", then "Record" wins; if it's blank on "Record", but populated on "Checklist ???", the Checklist wins. If both populated but different, then Checklist wins.If a "Trk #" exists on "Checklist ???" but is not on "Record" then add the line to "Record" (the 1st empty row, table size remains)I see no need for any "delete" at this time.
My concerns: The last column on record (column #16) is the filtering column for the worksheet copy event and needs to be left alone (it's formulated to produce a "Yes" or "No")I would like the ability to adjust table sizes if needed without modifying the macroThe table rows on "Checklist ???" will not be changed, deleted, or altered in any way by the macro.
View 2 Replies
View Related
Jun 18, 2013
Here is an example of my spreadsheet: Excel example.xlsx
I would like to get all the bid/ask quotes for the different currency pairs in sheet 2 into sheet 1 sorted by the right date and time.
I need a formula which recognize the time + the currency from sheet 1 and search for it in sheet 2 then brings the right bid/ask quote back into sheet 1.
View 2 Replies
View Related
May 4, 2013
Create a macro button in 'Spreadsheet 2' that searches 'Spreadsheet 1' for updated information specific to a certain criteria and adds it to a new row in 'Spreadsheet 2.'
There are three sheets
Prospects (where all original data is entered)
Actions -Bob (Bob's new Prospects are added to this sheet)
Actions -Frank (Frank's new Prospects are added to this sheet)
So in this example Row 6 in Prospects (Constituents, Rating, Manager and Solicitor would be added to ACTION - Bob's sheet on Row 5
and
Row 8 in Prospects (Constituents, its Rating, Manager and Solicitor would be added to ACTIONS - Frank sheet on Row 5
Here is the example spreadsheet - Prospects and Actions.xlsx
View 3 Replies
View Related
Jun 28, 2006
I have included the table. What I want to do is in a user form pick a county ie Devon, Then by clicking "go" all entries that contain "Devon" are then copied to a " sheet 2" I don't want to use the Ctrl-F
View 2 Replies
View Related
Jan 14, 2013
I've got 3 problems I've been trying to solve for the last 7 hours, I think they are all relatively simple to those who know what they are doing but I've exhausted my excel for dummies and every formula I have taken from this siteand tried to adapt. Obviously I'll post each problem on a different post, so here's problem one. The sample is attached. It will consist of about 35 sheets, each documenting the hire of a Motability scooter or wheelchair.
On each sheet column P will identify any review dates. What I would like is: On the Master page in Column C next to the relevant sheet name is for it to display any 'Review' that is flagged up, so that the user can have an overview. There will only ever be one 'Review' per sheet, I can only get the master page to show it by referencing it to one cell, I can't work out how to search the whole column.
View 4 Replies
View Related
May 7, 2006
example of a database user form that will allow me to list records in a sheet as well as search for records in a sheet. I know excel has a built in feature for this but it is menu driven and I need something that is button driven and will allow me to resize the form layout. I was not able to figure out how to do that with the built in form.
View 7 Replies
View Related
Oct 6, 2009
I have an excel spreedsheet that has columns of numbers. ex.
SKU - DESC - SKU - DESC - SKU - DESC
I enter sku's and information about them each week all on the same sheet. Each group sku/desc is one week. I need something I can put in the conditional formating.. a formula that will check the columns previous and tell me if a number appears in any column before the one I'm typing in.
ex.
6413 - B/O 2145 - B/O
4434 - B/O 6413 - B/O
4456 - B/O 4356 - B/O
4567 - B/O 4967 - B/O
76677 - B/O 76477 - B/O
I would like second 6413 to highlight to show me it's a repeat!!
View 3 Replies
View Related
May 12, 2009
I have a monthly time sheet. The times are entered in cells C8:F68.
When some one has a annual leave day or a bank holiday they enter A/L or B/H.
I have a summary sheet and have placed a cmd button on it to hopefully search the sheets that are months or the year.
I know how to search the sheets and increment through them and not the 'Summary' sheet.
What I need to establish is how to place in my code the actual search criteria and also limit the range to C8:F68
On top of this I need to total each occurance of A/L and B/H and display them in two cells.
I have tried to do a search of the forum but with no luck.
Like I say I have managed to understand how not to select the 'Summary' sheet when incrementing through the sheets but its just the search for the A/L and adding them up!
View 12 Replies
View Related
Oct 20, 2009
How can i define, that i want after pressing enter in textbox1 in sheet1 search name from sheet2. After pressing enter it will continue in search. The first founded value write to sheet1 in cell J2. The next value after next enter write it also in J2 and other enter.
View 10 Replies
View Related
Jan 5, 2010
I am very new to macros and I do not know what I am doing. I am trying to create a macro that will search column O for any entrys, if it finds an entry, then it will select the row with that entry, cut it, and then paste into the sheet named complete on the next available row.
View 12 Replies
View Related
Aug 19, 2009
Basically on Sheet 1 in cell A1 I would like to create a formula that will search Sheet 2 to see if a particular word occurs anywhere in that sheet. If it does I want it to display like an if statement.
View 2 Replies
View Related
May 30, 2012
I have two workbooks, WorkbookA and WorkbookB. Consider WorkbookA as the "summary" workbook where all of the data is presented in a simple manner. WorkbookB has about 100 worksheets (with each worksheet referring to a specfic job number ex. 1234). All of the sheet names of WorkbookB are listed in cells A1-A100 of WorkbookA.
I need a way to do the following:
1. While in WorkbookA, search WorkbookB for worksheet "A1"
2. After the correct worksheet is displayed in WorkbookB, I will be doing a series of vlookups in order to gather the data.
3. Repeat steps 1 and 2 for all 100 job numbers (cells A1-A100)
how I can achieve step number 1, I'd really apreciate it. I created a macro in the past to search WITHIN a workbook for a specific sheet, but I've never made one to search thru another workbook based on a specific cell value. The code I used to search within a workbook is shown below.
PHP Code:
Sub GetSheet()
Dim SearchData As String
SearchData = InputBox("Enter assembly number (including group)")
If SearchData <> vbNullString Then
On Error Resume Next
Sheets(SearchData).Activate
If Err.Number <> 0 Then MsgBox "Unable to find sheet named: " & SearchData
On Error GoTo 0
End If
End Sub
View 1 Replies
View Related
Aug 19, 2013
Is there a (relatively) easy way to use vba to search a whole workbook (5 sheets) for a value entered via a user in an inputbox and then if any instances are found the entire row of the sheet it's in is copied to a new sheet, then any further instances found also would repeat that building a single sheet view?
View 4 Replies
View Related
Jan 26, 2009
I have a table of data and i need to search the table for 8digit numbers, that are beginning with "2" and copy the numbers to the column on the right. A cell can contain multiple numbers with 8 digits.
View 9 Replies
View Related
Mar 26, 2014
I have a sheet named formula the column highlighted in orange will be used in searching to the other sheet which is the table, I try to used the formula VLOOKUP but it didnt work.
View 5 Replies
View Related
Apr 17, 2014
I have a main worksheet called 'uren'. In this main worksheet I load data every week for around 40 persons. Every person has their own sheet, named equal to their name in the main worksheet 'uren'.
What I try to figure out is how to copy alle the data below their name in the main worksheet to the sheet which is named equal under the right weeknumber.
My main worksheet is build up like this ( used --- to keep the numbers in place when posting )
Weeknumber 1 ---Andre----Wiebe----Kayleigh----Sandra----etc
Complaints --------23-------45--------87---------34---------
Help-------------23.56------45------12,89--------67-------
Call---------------44--------4---------56---------12-------
hours-------------2,4-------56---------6--------34,67-----
etc
When the data is loaded ( the numbers you see) I want to copy all the data below a persons name ( number behind complaint, call etc) to the sheet which has the same name as the person. the data has to be copied to the correct weeknumber I use in the main worksheet.
The 40 additional sheets are build up like:
Weeknumber-------wk1-------wk2------wk3------wk4------etc
Complaints
Help
Call
hours
etc
So the data has to be copied under the correct weeknumber. The data in the main worksheet is loaded with a function and I quess the data also has to be copied without the fucntion (?)
View 14 Replies
View Related
Jul 16, 2012
Is it possible to search my Worksheets("Register").Shapes("Drop Down 1") by selecting it and type in a letter? Similar to a combobox "0 - fmMatchEntryFistLetter"
View 2 Replies
View Related
Aug 12, 2013
I want to search for a word say "Output" in a Column 7 in one sheet and return the value present in the Upper cell of Output Cell and its adjacent cell to a cell in another sheet example:
Yes 10
No 20
Output Value
Here i want to search for word "output" in a column and return the above value "No" and its corresponding value "20" to a cell in another sheet.
View 6 Replies
View Related
Aug 11, 2009
I have been working on a spreadsheet with 3 sheets and have done everything except the last function which I just can't work out.
Data is entered on the first sheet in a list with an item number, description, dates etc and then finally, if they are a certain type of item, a variation, a 'variation number' in a column.
The next sheet is then called 'variations' and here starts my problem. I want to have a formula that picks up if a variation number has been entered on sheet one in the 'variation number' column and if so, add that item into this sheet, in order.
So to summarise, I need sheet 2 to search on sheet 1 in a specific column for numbers 1-30(ish) for a series of items.
I then need sheet 2 to list each of these in order, copying over each item that goes with the number from sheet 1 in the same format.
View 12 Replies
View Related
Nov 5, 2009
I have a number of worksheets with data in various rows, all rows of data have UID's. I want to create a search function, which returns the location of the of the UID. Or better still the cursor will jump to the cell where the UID is located. It's very much like the way the 'Find & Replace' function works.
E.g. If I type the UID of 1234 into cell A1 I want to be able to press a 'Find' button (which will be located alongside cell A1) that will search the entire workbook for 1234.
View 9 Replies
View Related
Sep 10, 2008
I am having some trouble conceptualizing how to write code for the following situation: When the macro starts, the user types in a job title into the box and the macro then searches for this value throughout the whole worksheet. I want to return a msgbox that says if the job title was found and if so, what the cell address is and for that to be stored in a variable. If the job title is not found, then I want to return a msgbox that says the job title was not found.
View 2 Replies
View Related
Jan 1, 2008
I have a workbook that is an export from an inventory database. Basically I need to search Sheet1 column B for any item with "DDC" in its value, select the entire row, copy/cut it, and paste it into Sheet3. It would be nice to have it delete the row from Sheet1 after successful paste. I want to stress the fact that I'm a no0b with excel macros and have a very small understanding of programming in general. I've tried taking a few different macros with similar goals and slapping them together, this is what I've come up with so far with still zero luck.
At the moment the error is "Application-defined or object-defined error" with "With Worksheets(1). Range("B")
Sub DDC()
With Worksheets(1).Range("B")
Set c = .Find("*DDC*", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.EntireRow.Copy Destination:=Worksheets("Sheet2").Range("A" & Worksheets("Sheet2").Range("A65536").End(xlUp).Row + 1)
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
End Sub
View 2 Replies
View Related
Jun 6, 2008
I need to search a sheet for a specific phrase "phrase". When the phrase occurs I need to copy adjacent cells into another sheet. Then, I need to continue searching through the end of the sheet for all other occurrences, copying them into the other sheet. For example: "Phrase" occurs in cell B2, B20, B42, and B82 of Sheet1.
When it occurs in B2 I need to copy C2 and D3 into Sheet 2, cells B2 and C2.
Then when it occurs again in B20 I need to copy C20 and D21 into Sheet 2, cells B3 and C3.
View 4 Replies
View Related
Apr 16, 2012
I've created a spreadsheet containing 200+ entries for my companies suppliers. These include their name/code, contact emails and contact number. This list is far more easily accessible as it saves the user having to bring up the suppliers details within our own bespoke software. However what seemed like a nifty spreadsheet has quickly turned into a giant mush of details with no way to quickly find the one you want without scrolling down to the one you want.create a function/tool that can allow me to type the contact name in cell "X" and have Excel take me to the suppliers line in the table?
View 14 Replies
View Related
Sep 22, 2009
I have a Excel file with alot of data in it. I need a macro that will create a report for me and relive me from alot of manual work. The 1st sheet is named "Projects". This contains the search arguments. The 2nd sheet is named "Database". This is the sheet where I want to search in. The 3rd sheet is named "Report". This will contain the results of the search. So the going will be something like this:
Copy row 7 from "Projects" into row 7 in "Report". Then use the value in that row, column E (named Search code). Search for rows that has this value in column E in the "Database" sheet. Copy all those rows to "Report" sheet. Copy row 8 from "Projects", leave two rows of space and paste into "Report". Repeat the procedure mentioned above. Repeat this until reaching a row in "Projects" that has no value in Column A.
View 5 Replies
View Related
Apr 29, 2013
I'm having a macro for search and all within the same file as folow:
Sheet"Search" has this vba
Code:
Option Explicit
Private Sub Worksheet_Activate()
[c3] = "Type your search here."
[c3].Select
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
[Code] ........
Sheet"Data" is my data (which is refer to above vba as Const SEARCH_SHEET = "data")
My needs here, i need to move Sheet"Data" to another file then how can I linke above vba to Sheet"Data" that moved to another file?
Infact, that file will be as addins file (.xlam) .
View 2 Replies
View Related
Jun 26, 2007
The below code works well if it is on the proper sheet, if the active sheet is not active then it errors- Why? I think I have properly qualified the path to the desired sheet I wish to search on.
Error msg: Activate method of Range class failed
And how do I handle this?
Set Ws = Workbooks("ViewRenameDeleteFiles.xls").Sheets("Item Record List")
What = InputBox("Enter the Name You are Searching for its Record#", "Item Name Searching On")
Ws.Cells.Find(What:=What, After:=ActiveCell, LookAt:=xlPart, _
SearchOrder:=xlByRows, SearchDirection:=xlNext).Activate
View 9 Replies
View Related
Jan 5, 2009
I've got a spreadsheet (sheet1) that has details of vehicles helpline numbers.
I want to create search box on a seperate spreadsheet, where the user enters a reg number, and it is searched for in sheet1. The row containing the result is then shown under the search box. Is there anyway to do this?
Also, I'd like to lock sheet1 so people dont see anything other than their search criteria. (ideally, I'd like sheet1 to be in a totally separate workbook).
View 9 Replies
View Related
Aug 18, 2009
On sheet1 I have this:
employee ID Date hours item1 item2 item3 item4
So it's 8 columns and the row count can vary.
This list on sheet 1 has the persons employee id and various bits of info. There will be multiple rows with the same employee id. This data is not sorted in any particular order, but I'd rather leave this sheet untouched.
On another sheet, I would like the user to simply type in a number for the employee id (I don't want to use msg box, just a cell is fine, maybe a button form to click search to run the macro) and it lists all their hits, however many rows that may be. Again I can't sort the original list so the employee might have hits scattered throughout the main list.
So they would enter the employee id and below that they would get all the rows with all the above data where they get a hit. One concern I have is say the first search for employee 123456 turns up 18 results. Then they search for employee 123444 and it only returns 8 results. I don't want the last 10 rows of employee 123456 to be still present. Basically a search that searches another sheet and returns any hits, and it clears the list of previous search results so for each search you only see the results of that search and not old data.
View 9 Replies
View Related