I have two Excel columns:
First column
1. Dog
2. Gorilla
3. Lion
Second column
1. Dog; Monkey; Fish
2. Insect; Cobra
3. Lion; Cat
What I want is removing the duplicate from column 2, so if it is in Column A it must be removed:
1. Monkey; Fish
2. Insect; Cobra
3. Cat
Who can help me?
Try this:
=SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE($B1,$A1,""),";",""))," ","; ")
EEM, that did the trick! Only all semicolons are now gone, but that can be fixed i think. Thanks!
Related
I am trying to replace a part of string in "input1" with values in column "input2" to get the "output" as shown:
Any idea how to do this in MS excel?
Try below formula-
=SUBSTITUTE(A2,"replace_this",B2)
In addition to the REPLACE and SUBSTITUTE function, if you just need to add something before and/or after some other value (as shown in your picture), you could just use simple concatenation:
="Text-before-value" & B2 & "Text-after-value"
A
B
C
1
Input1
input2
output
2
abc_'replace_this' xyz
replace1
=REPLACE(A2,FIND("replace_this",A2,1),LEN("replace_this"),B2)
I have a column with different names in the rows:
hello_world_xt_x_D3_m6
bye_bye_x_D1_m3
h1_man_xt_x_D3_m6
bonjour_no_x_D1_m12
I would like to remove the ending part which follows the pattern
_x_DN_mZ
where N is a number between 0 and 3 and Z is a number between 0 and 16.
I would like to have
hello_world_xt
bye_bye
h1_man_xt
bonjour_no
I think I should use a combination of search and trim/right, but I do not know how to apply it.
I have tried with =substitute(a2, "_x_D2_m3","") but I do not know how to extend it regardless the numbers which follows D and m
You could use Wildcards (See the ? in the search string)
EDIT: replace second ? with *
Formula: =LEFT(A2,SEARCH("_x_D?_m*",A2)-1)
With data in column A, in B1 enter:
=MID(A1,1,FIND("_x_",A1)-1)
and copy downward:
Would this do?
=LEFT(A2,FIND("_x_",A2)-1)
I want to use in the Excel the formula, which returns the values:
Original Text Desired Result
7. Hello.abc Hello
7.1 Hello.abc Hello
11. Hello mary.bab Hello mary
12.1. Hello.bab (hi there) Hello
12.2.4.a. Hello hi.abc Hello hi
Hello.no Hello
I have already tried that formula, which returns the values between 2 dots:
=SUBSTITUTE(MID(SUBSTITUTE(". " & A1&REPT(" ";6);".";REPT(";";255));2*255;255);";";"")
But if the original text is 12.1. Hello.bab (hi there) the formula returns: 1 when I need to return: Hello
This formula should work for you:
=TRIM(MID(SUBSTITUTE(A1,".",REPT(" ",LEN(A1))),MIN(INDEX(FIND(MID("ABCDEFGHIJKLMNOPQRSTUVWXYZ",ROW($1:$26),1),SUBSTITUTE(A1,".",REPT(" ",LEN(A1)))&"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),)),LEN(A1)))
Maybe this?
=MID(A1,IFERROR(FIND(" ",A1)+1,1),IFERROR(FIND(".",MID(A1,IFERROR(FIND(" ",A1)+1,1),90))-1,90))
I have one file with column look below
No Name Address Status
1 Indah Bali Single
2 Joki Lombok Married
3 Janu Muara Basung Married
I need to print specific column where only someone with Status 'Married' will print, and others wont. How can I do that?
Things I need show below.
No Name Address Status
1 Joki Lombok Married
2 Janu Muara Basung Married
1. Select the desired column headings
2. Click AutoFilter
3. Filter columns as desired
4. Select column to print
5. File > Print > Print Selection > Print
I have multiple items in a column that look like this:
1. (758,01) 1516,01€
2. (380,95) 761,90€
3. (480) 903,90€
4. (350,06) 700,06€
5. (344) 688,75€
6. (681,16) 1361,16€
And I wanted to know how can I do two things:
Extract the number between ( ) and the number next to ) without the € part so that the final result is for example: 1516,01 758,01
Thanks
There are a number of ways. You can use the MID formula to get get the numbers between (), likewise for the second half and just replace the € with a blank. This works if your data is in cell B2,
=MID(B2, FIND("(", B2)+1, FIND(")", B2)-2)
And
=SUBSTITUTE(RIGHT(B2, FIND(" ", B2)-1), "€", "")