Search A Range In A Sheet
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
ADVERTISEMENT
Sep 24, 2013
Basically I have three sheets. MAIN, Sheet 1 and Sheet 2
Sheet 1 and 2 are in the same format
A3 down is a list of country names and then B3:I71 contains the data im interested in.
I've been trying to create a function that looks at B3:i71 to see if any cell in that range contains a value greater then $0.00. If it does then the row that contains the cell with a value greater then $0.00 (between col A to K) should be copied to sheet MAIN from cells B3 down. This should ultimatley produce a list of data for any row containing a value greater then $0.00. This process should then be repeated on Sheet 2 and should join the list below sheet 1.
View 3 Replies
View Related
Jan 22, 2014
I need to lookup to search a range on a different sheet and return the appropriate corresponding cell.
Basically its if a1 is found in the other sheets range a1:a100 then return the corresponding Bcolumn value from the different sheet.
Formula
=VLOOKUP(A2,'All Users'!A$2:A$100,'All Users'!B!2:B!100)
Example of 'All Users' Sheet
A B
STAFFIDSTAFFNAME
24177John
10487Paul
20031George
84087Ringo
85772Pete
24485Stuart
3829George
51836Yoko
View 3 Replies
View Related
Jun 3, 2008
I have a table in excel with a group of headings. (Serial Number, Model, Description, Repsonsible and a few others) What I would like to do is be able to search every cell within the range of that table. When the user clicks search an inputbox is displayed and you can enter any search term you like. if there is a match within the cell range, i want the entire row (and the heading row always at the top) printed into a new sheet to display results. There may be a match in multiple rows, and id like evrery row displayed.
View 5 Replies
View Related
Feb 9, 2014
I'm trying to create a formula that will search for a specific text in "sheet1" within a date range and then SUM the total on "sheet2". I've manage to use the SUMPRODUCT (below) formula but want to expand on this so the SUM can be shown on another sheet(summary page). =SUMPRODUCT((ISNUMBER(FIND({"nmlclex06"},A1:A10)))*(B1:B10)) In this example I search for the text "nmlclex06" and SUM the size, but don't have a date range and don't know how to SUM the data on another sheet.
Columns: Name, Size, Date
nmlclex06114/12/2013
nmlclap121012/12/2013
nmlclex0651/10/2013
nmlclex0619/10/2013
nmlclex0611/01/2014
nmlclap12124/10/2013
nmlclex06113/11/2013
nmlclap12118/12/2013
nmlclap1219/12/2013
nmlclap12130/12/2013
View 11 Replies
View Related
Feb 12, 2014
I have a worksheet with following values:
A
B
C
1
Shorts
75
[Code]...
Also I have a Userform with 2 ComboBoxes named "ComboBox1" and "ComboBox2". Values in ComboBox1 is "Pull my pants", "Eat my shorts", "Socks for everyone".
What I would like to do is to search though column A and look for any of these textstrings in my selection in ComboBox1 and return the value from column B in column C.
Example: "Pull my pants" is selected in ComboBox1 then the value "pants" should be found in column A and value in column B (25) should be entered in cell C2.
I am fairly new to VBA and have spend hours searching Google and found some formulas like InStr and VLookup. My problem is that I am not sure if these statements will do the job and how to combine them.
View 1 Replies
View Related
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
Aug 1, 2014
I need to be able to query a large date range by a small beginning and end date range and return a count when the value is = each search criteria. i.e. - Search one year of dates from a table by Beg: 7/23/2012 to End: 10/21/2012 and return a count. The beginning and end dates are dynamic and I will need to reference the cells, i.e. B102 "Beg" B102 "End" and not a static date.
View 7 Replies
View Related
Sep 28, 2008
i have a main.xls file and two data file dat1.xls and dat2.xls
mail named file have ar - br- cr- dr- er -fr sheets
dat1 named file have ar-br-cr sheets
dat2 named file have dr-er-fr sheets
and all this files data source is
colomn source a - fd
row source 29-4000
i want to make two commandbutton to main file first for dat1 second for dat2 file and i need a code to use at this buttons to make
when dat1 and dat2 close
main file user when click first button
copy dat1 file ar sheet colomn source a - fd row source 29-4000 cells to main file ar sheet colomn source a - fd row source 29-4000 cells
copy dat1 file br sheet colomn source a - fd row source 29-4000 cells to main file br sheet colomn source a - fd row source 29-4000 cells
copy dat1 file cr sheet colomn source a - fd row source 29-4000 cells to main file cr sheet colomn source a - fd row source 29-4000 cells
View 9 Replies
View Related
May 28, 2009
I'm trying to do is search a range of cells for a range of values AND then see if it matches one other value in another range of cells. In this case,
=SUMPRODUCT((T3:T49="P6")+(T3:T49="P5")+(T3:T49="P4")+(T3:T49="P3"))*(U3:U49="w")
T3:T49 can equal P6 or P5 or P4 or P3 but the cells can only be counted if U3:U49 is 'w' as well
View 3 Replies
View Related
Aug 7, 2008
Hi. Does anyone know a formula to copy a selected range of cells on sheet one to a range on sheet three when a check box in checked. Ex. copy range a4:j4 on sheet one into a4:j4 on sheet three once the check box for on sheet one is checked?
View 9 Replies
View Related
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
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
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