1The column present in A column exist as qtkyusvdgmzhz15mkkba
and b column exists as qtkyusvdgmzhz15mkkba.jpg but I need to check whether two columns are same spelling without .jpg can you please tell me about this ??
you can use:
=A3=MID(B3,SEARCH("/",B3)+1,SEARCH(".",B3)-(SEARCH("/",B3)+1))
This is one approach:
=ISNUMBER(SEARCH(A3; B3))
Where
A3: qtkyusvdgmzhz15mkkba
B3: qtkyusvdgmzhz15mkkba.jpg
The statment is TRUE if A3 exists in B3 somewhere. Remember spaces " " counts too in your search word (A3).
Related
It should be very easy but I just can not understand whats wrong anymore.
I have 3 columns, first and third column has numbers and I want the second column to show if a number in column 1 exists in column 3.
I have found a code online
=IF(ISERROR(VLOOKUP(A7;$C$2:$C$3400; 1; FALSE));"Not Exist";"Exist" )
Now I know the number "5568" exist in A7 and the same number "5568" exists in C2365.
But the code above gives me value "Not Exist".
Try:
Sheet Structure:
Formula:
=IF(COUNTIF($C$1:$C$5,A1)>0,"Exist","Not Exists")
Note:
Check for spaces before or after the values using Trim
You could also use Clean
This involves two files. If B2 (file2) is somewhere in column A (file1) (and matches exactly), then go to D2 (file2) and check if that is anywhere in corresponding cell in column E (which wouldn't match exactly) and return yes or no.
Let us assume that all data appears in sheet 1 in both File 1 & File 2.You could try the below formula from another sheet. Have in mind that the for the not exact match i use i use "*" in the formula which means that will match anything starting with the value of D2. in other cases would not match.
File 1
File 2
Another File
=IF(AND(IFERROR(IF(MATCH('[File 2.xlsx]Sheet1'!B2,'[File 1.xlsx]Sheet1'!A:A,0)>0,"Match"),"No match")="Match",IFERROR(IF(MATCH('[File 2.xlsx]Sheet1'!D2&"*",'[File 1.xlsx]Sheet1'!E:E,0)>0,"Match"),"No match")="Match"),"Yes","No")
One of my excel columns like below.
COL A COL B
----------------------------------------
ABCDEFGH ABCDEFGH-#648-2011 EXT.8503
In column C , I wanted value should be -#648-2011 EXT.8503
How can I do this in Excel?
I have tried formula like this :
=LEFT(B242,LEN(LEFT(A242,LEN(A242))))
However, its not working, please suggest?
Looking at your data it seems that B2 has a value with A2 sticked to the left of it. If this is the case then you could use:
=RIGHT(B2,LEN(B2)-LEN(A2))
If this isn't the case and it is just a coincidence, then I agree with #Tim Biegeleisen his answer :)
EDIT:
Might you want to exclude the hyphen then use:
=RIGHT(B2,LEN(B2)-LEN(A2)-1)
Many solutions:
You could replace the first instance of A1- in B1 with a null string:
=SUBSTITUTE(B1,A1&"-","",1)
or start after a certain location:
=MID(B1,LEN(A1)+2,99)
If you really want to include the hyphen in the result in column C, then make the minor changes in the formulas above
=SUBSTITUTE(B1,A1,"",1)
=MID(B1,LEN(A1)+1,99)
Try using this formula:
=MID(B1, FIND("-", B1), LEN(B1) - FIND("-", B1) + 1)
This says to take a substring, starting at the position of the first dash -, for the remainder of the string after that starting point.
I have a column full of names written as:
"lastName, firstName"
I want to have a nother column that has this name list written as:
"firstName LastName"
So, how can I switch a string from "lastName, firstName" to "firstName LastName" ?
If the first name is in A2 try this formula in B2 copied down
=MID(A2&" "&A2,FIND(" ",A2)+1,LEN(A2)-1)
Enter data into cells e.g.
Brown, John
Green, Bob
Smith, Will
(Note that the comma in this case is the delimiter which the system will use to separate the entries)
Highlight these cells.
Click on the "Data" tab,
click on "Text to Column".
Choose options offered.
The worked for me
=RIGHT(C3,LEN(C3)-LEN(LEFT(C3,FIND(",",C3)-1))-1) & " " & LEFT(C3,FIND(",",C3)-1)
Barry's answer is correct, if the single cell (A2) doesn't ALSO contain errors like "firstname lastname" -- as is often the case.
So, to deal with the cell data being either "Last, First" or "First Last", we'll need to compare the cell and take action appropriately. Also note, in my example, I moved the first name to it's own column, and last name to it's own column. You can of course join them into a single column.
First, let's break down what we need. This will return the first name when there is a "," in the cell contents: (assumes the field you are wanting to split is in A2, adjust as needed)
=MID(A2;FIND(",";A2)+2;99)
and this will return the first name when there isn't:
=MID(A2;1;FIND(" ";A2))
And for Last name when there is a comma:
=MID(A2;1;FIND(",";A2)-1)
and last name when there isn't:
=MID(A2;FIND(" ";A2)+1;99)
So, we need to test if there is a "," in the string, and deal with an error condition when there isn't (FIND returns #value when not found, ISERROR() can test for that). Optionally (and my approach) was to check if the return of the FIND yielded a number (an error won't). In this case, an "error condition of not finding it" would yield a non-number #Value.
=IF( ISNUMBER( FIND(",";A2)); MID(A2;FIND(",";A2)+2;99); MID(A2;1;FIND(" ";A2)))
Doing the same thing for the Last name looks like this:
=IF( ISNUMBER( FIND(","; A2)); MID(A2;1;FIND(",";A2)-1); MID(A2;FIND(" ";A2)+1;99))
Please note that my solution was using my spreadsheet application OpenOffice. I think Excel has a different find method (Search?) - so make adjustments as necessary.
The above answer is incorrect.
In fact, for my own name, Jay Jacob Wind, the formula breaks.
The correct formula is:
Assuming Last, First is in column A, separated by one comma and a space bar
For first name:
=mid(A2,find(",",A2)+2,99)
For last name:
=mid(A2,1,find(",",A2)-1)
Put together, assuming Column B is First Name and Column C is Last Name
=B2&" "&C2
or simply (but more complexly)
=mid(A2,find(",",A2)+2,99)&" "&mid(A2,1,find(",",A2)-1)
but I like separating them into two columns,
then concatenating them
I have an excel file that I need to make some changes. I need to identify the duplicate and then put "1st" in the series column for the first dup. For the remainder dups need to put "other dups" in the series column. Is it possible? I tried vlookup and match and nothing helped. =vlookup(a1,a2,0) , match(a1,a2,0), or even if(a1=a2,"found match")
If data starts at A2 try this formula in B2 copied down
=IF(COUNTIF(A:A,A2)>1,IF(COUNTIF(A$2:A2,A2)=1,"1st","other dups"),"")
If you want to see the occurrence instead of '1st' and 'other dups', use the following formula in B2 copied down :
=IF(COUNTIF(A:A;A2)>1;COUNTIF(A$2:A2;A2);1)
Example:
The requirement is that column 'A' is sorted.