I have at database which i want to search in... The problem is that i wanted to search in specific cells, or ranges. So i made a for loop searching for words in one range.. But it doesn't work.
For i = 0 To antal - 1 Step 1
Worksheets("Søg").Select
If Range("B5") = "X" Then
Sheets("Database").Select
c = InStr(1, Range("B" & 2 + anRow * i), sgbygsag, 1)
Sheets("Søg").Select
Range("A1") = c
End If
Next
anRow is the delimiter between to databases. And sgbygsag is the string i am searching for, i have made sure that this really is a string. No matter what I do this code sets Range("A1") to "0".
I have absolutely no idea how to get starting on this one. I've got a long string in cell B1. At some point there is the word "oms:SomeString," (without the quotes). I need to know whether SomeString is somewhere in the active sheet or not (the workbook running the VBA-code is not the active sheet). I can't just compare the cell B1 because it contains multiple words. Any hints are very welcome.
2014-05-15 02:08:43 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 02:31:37 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 02:37:19 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 02:37:20 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 03:07:19 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 15:01:37 @Centre INFO - CHANGE WORLD (Original World to Destination World) 2014-05-15 15:04:46 @Centre INFO - CHANGE WORLD (Original World to Destination World)
I would like to use conditional formatting to highlight cells which have the same first 16 characters (yyyy-mm-dd hh:mm) before the "@" AND that contains the words "CHANGE WORLD". Therefore, I'm looking for a formula I could include in the conditional formatting so I can easily find the "CHANGE WORLD" that occurred at the same time (minus the seconds, they may vary slightly).
I am having trouble getting my IF statement to test if the cell contains the text "sale" return "X" if not "Y". I need it to search through the text string in that cell and find a certain word, and if it finds that word, retrn a value. I am really having difficulty with is what symbol or function do I use for the logical test? (i.e. =, <>, MATCH, INDEX?)
I need to pull a specific word from a string of text in a cell and have that word shown in an adjacant cell. For example A1 will contain the text "Smith Sun Alliance Pension Fund" I need B2 to show "Pension". I cannot use any filtering or text to columns as the word Pension can be anywhere within the text in A1 and I have thousands of entries. So I need a function.
So I have this list (I made it a little bit shorter).
So what you see is two different tasks (01 and 02) and three different conditions (A, B and C). In column B you see the result I would like to have. '/Searchtask_01.html' in A1 belongs to conditions A, because it is in session A. However, '/Searchtask_01.html' in A10 belongs to conditions B, because it is in session B.
I'm trying to find vehicle make and model in a cell containing a lot of text and then display that in the formula cell. For example if A1 is a paragraph that contains somewhere within it "Ford" & "Ranger". I want B1 to display "Ford" and C1 to display "Ranger". I have a list of vehicles makes (column A) and models (column B) on a seperate sheet.
I'm racking my brains as to how I can structure a formula to conditionally rank a value in an array against only those values in the array whose corresponding criteria cell includes a specific letter.
So for example I have a list of 12 values, say 126; 239; 0; 171; 162; 157; 130; 199; 122; 153; 0; 15. Each of those values corresponds to a heading, say: CDE; DFE; FGE; DFE; ERD; DEA; BDF; DFB; CDE; CEF; CAB; FAB. As you will note some of the headings may or may not be the same and may or may not include the same letters in different orders.
How can I write a formula that ranks in ascending order a given value drawn from the above list (which will be in another cell but which in this case is, let's say, the first value: 126) only against those values whose heading includes a specific character, for example the character C (the character in question will vary and be defined in a specific cell).
As an added complication I need the ranking calculation to exclude any zero values. So in the above example what the formula needs to do is rank the value 126 against a sub-set of the whole array comprising only the values 126; 122; 153; 0.
The answer I need is 2 because, discounting the zero value, 126 is the second highest value.
I can't use the "" sign as delimiter to separate them into different columns because the age,city,name and height fields are in random positions on different cells.The good thing is person's name will always come after "name" string, age is alwals followed by "age" string, so it cannot be like nameheight40Michigan180
I think the following would be the easiest method(not for me tho).If on B1 I had a formula that said "find the string "name" and write anything after it until you reach the next "" character".On C1 field I could have a formula "find the string "age" and write anything after it until you reach the next "" character.On D1 I would have the same for "height" string,then on E1 for city string.
My question is somewhat similar to this one Extract A String Between Two Characters
Formula which outputs the data between 3rd and 4th instances of the "_" character.Can we substitute "3rd and 4th" with a specific strings like "age" or "height" ?
find a string and copy certian string to next cell i have tried something which can copy but unforunately that is copying whole cell not certian string.
I have data of 500 rows and i have data till A,B,C,D and E.Please ignore all the other rows which are of no use except E in Column E i just need Reference : A0000000:1 to be copied to next column beside to it that means in Column F.
I have a database that contains many products. All of them has a number.
I have an cell and a button for search. I am entering on the search cell the 254 number , and when i click the search button , i want a macro that can select me the cell that contains the 245 number from A column.
Till now i had tried with the following procedure.
I had made another cell which contains the following function
=MATCH(G6,A1:A100,0) , where G6 = my search cell for the number. This return my cell number from A column , but i don't know how to select that cell from the vba
I had tried with the ActiveSheet.Range , but i had to input the cell which i want to select , or it's there a way to enter the collumn where to find and the cell number to get from my MATCH function ?
I am trying to come up with a macro that will search a range for a specific string of text plus Interior.ColorIndex = 4. The range can have the text in it multiple times but i only want the macro to fire the next line of it if the cell address also has that color. Is there a way that can be done? My code below stops after it finds its first occurrence of the string and moves on to the next lookup. How do i make it look for not only the value but the index color?
macro find parenthesis and remove string in every other cell in Col.A The following formula works but is tedious to apply to every other cell: =LEFT(A3,FIND("(",A3)-2) Data Example: Cell Value A2 = hello world I am A2 (this is an example) Cell Value A3 = hello world I am A2
Then Delete the entire row A2 and apply this to every other A.Col.cell with the original data.
I am trying to check some data (about 5000 rows worth) and don't want to have to go through each row. What I need to do is check whether the 7th number in a string is below 5, and then to return a text result for above 5 and a different result for below 5. For example:
B4: 88050170088 7th value = 7, therefore return "Male"
I have tried =IF(MID(B4,7,1)>5,"Female","Male") but it is not working and I can't figure out why..could also just be making a rookie mistake....
I need a vba code that will find all the columns (j) which there cell(1,j) includes the word "Date". the word "date" will be a part of a title, for exmple: "due date", "starting date"
Cells A1:A5 all have a vlookup formula that will pull one of the following into it:
1. The word "NONE" 2. #N/A error since it doesn't exist in the table 3. A text value that has the format 13.55.46.91
I want a formula that will look at these 5 cells and give me #3. That #3 value can only appear once in the 5 cells in any of those 5. The other 4 cells will contain either 1 or 2.
3 always has length equal to 11. It always has periods in those places. The digits do change.
I've scoured the internet for this answer and have not found a formula that works.
I have a list of domain names/URLs in column A of workbook 1:
jhjh.com hajfh.co.nz 123.123.12.12
I have a list of domain name extensions in workbook #2:
.com .co.nz .net
I want to determine if the cells in column A workbook one contain any of the strings in workbook 2 - note that I need to look at the string, not the entire cell in workbook one. If there is a match, true, if not, false for that cell within workbook one.
It's sort of a reverse array lookup with text. It seems that cross workbook and text is what causes the challenge.
I want to extract the following details into another collumn (bold ) from data in column B1 into C1. The information i want begins with 3 digits with a '/' then other digits follow.
M / AS308 - :308/65588 POUN S33 / 33 - :133/01504 TR NI101 - :101/915635 T N101 - :101/915635
I have a spreadsheet that I'm using as a call log for a support desk. Sometimes, when the problem is outside of my scope, I have to call in a ticket to a helpdesk.
I want to keep the call log separate from the ticket list, but I want to be able to reference a ticket number for a specific call or vice versa using a command button.
I am currently using this formula - =SUMPRODUCT(--(MONTH(Leads!B3:B999)=1),--(YEAR(Leads!B3:B999)=2013),--((Leads!J3:J999)="Contract"))
This gives me the count of rows that have Jan as the month, 2013 as the year and Contract word in column J. Now I want to add another column to be checked. That column has values in format - Design: X, Design: Y, Design: Z etc.
So I want to have the condition above and the cells that have the word Design.