Excel split cell - excel

I'm trying to split the below data in EXCEL but unable to get the required result.
A
B
C
ABC Abc
ABC
Abc
BCD Bcd Cde
BCD
Bcd Cde
CDE EFG Cde
CDE EFG
Cde
Colum A to be splitted as mentioned in B and C column
B Column will have data of all capital words before space of capitlize word
C column will have Cap words

The array formula in B1 below
is
=LEFT(A1,AGGREGATE(15,6,FIND(CHAR(96+COLUMN(A1:Z1)),A1),1)-3)
and the array formula in C1 is
=MID(A1,AGGREGATE(15,6,FIND(CHAR(96+COLUMN(A1:Z1)),A1),1)-1,LEN(A1)-LEN(B1))

Related

Excel Formula for the below

Please help me know the formula for below,
if the input is,
Header1 Header2 Header3
ABC DEF Yes
ABC DEF Yes
ABC GHI No
ABC GHI No
ABC GHI No
ABC GHI No
ABC GHI No
ABC GHI No
ABC GHI No
ABC JKL Yes
Then the output should be
Yes 2
No 1
We have to calculate Yes and No basis the uniqueness of Header 2, for eg: DEF is written twice so Yes counter is 1, then JKL has Yes, which makes Yes - 2. Similarly GHI is written once in header 2, so the counter of No is 1
Try this array formula in the cell where you want the answer presuming your data headers are in row 1 and the data starts in Cell A2 and ends in Cell C11:
=SUM(IF(FREQUENCY(IF(C$2:C$11="Yes",IF(B$2:B$11<>"",MATCH(B$2:B$11,B$2:B$11,0))),ROW(B$2:B$11)-ROW(B$2)+1),1))
When you have it typed in, press Ctrl+Shift+Enter keys at the same time. That will put the { and } brackets into the formula. Typing the brackets will not work since it is an array formula.
Simply change out the "Yes" with "No" for the no responses.

excel vlookup with multiple criteria

Table 1 Table 2
A B C D
abc 9 abc No
hij 0 def yes
hij No
input output
abc 9
def #N/A
hij No
I have two tables. If the value exists in column A and the lookup value is greater than 0, then lookup in Table 1, else lookup in Table 2.
I have tried with the formula:
=IF(OR(ISERROR(VLOOKUP(A7,$A$2:$B$4,2,FALSE)),ISERROR(VLOOKUP(A7,$A$2:$B$4,2,FALSE)=0),VLOOKUP(A7,$A$2:$B$4,2,FALSE)=0),VLOOKUP(A7,$D$2:$E$4,2,FALSE),VLOOKUP(A7,$A$2:$B$4,2,FALSE))
Thanks for any help.
use this formula:
=IF(IFERROR(VLOOKUP(A7,$A$2:$B$4,2,0),0)>0,VLOOKUP(A7,$A$2:$B$4,2,0),VLOOKUP(A7,$C$2:$D$4,2,0))

Check if excel value is available in another column

I went through some posts but couldn't find much help.
I have a data set like this
Column A Column B Column C
ABC ZZZ 123
BBB ABC 234
ZZZ BBB 567
I need to write a formula in Column D that if ABC is available in Column B, get me Column C value.
I tried all VLOOKUP functions but couldn't find one appropriately. Can someone please help on the same?
Have you tried this with VLOOKUP in D1
=VLOOKUP(A1,$B$1:$C$3,2,0)
After writing this in D1, drag this to the end
Column A Column B Column C Column D
ABC ZZZ 123 =VLOOKUP(L2,$M$2:$N$4,2,0)
BBB ABC 234 567
ZZZ BBB 567 123

Excel find, match and mark wildcards

I am trying to do a search based on values that are in column B and find string in column A, example:
Column A
abc, cde | abc, 1234 | cde | abc, etc
Column B
abc, cde
I am trying to use values that are in column B and search and match in column A and return value of match/no match in column C.
I tried using MATCH(B1,A:A) function and return value of match or no match but its all returning no match and its not searching the values on column A that have the |
Any formulas I can use?
If what you want is getting a boolean value, i.e TRUE or FALSE, which tells you if the string in cell B1 is somewhere in the string value of cell A1, you can do
=NOT(ISERR(SEARCH(B1,A1)))
The SEARCH function gets the value in cell A1 and tries to find it within the string value contained in cell B1. I say "trie" since it may return an error if it finds nothing.
Thus ISERR(SEARCH(...)) checks for an error and returns TRUE if there is one, which in this case would mean that the velue in cell B1 does not match the one in cell A1.
Finally, to turn the output of function ISERR into the boolean answer you want, we negate it, by doing NOT(ISERR(...)).
Example 1
Checking whether each string value in column B is CONTAINED in cell A1's string value
A B C
1 abc, cde | abc, 1234 abc, cde =NOT(ISERR(SEARCH($B1,$A$1)))
2 zyy | xww =NOT(ISERR(SEARCH($B2,$A$1)))
. ... ...
10 abc, 1234 =NOT(ISERR(SEARCH($B10,$A$1)))
Which returns TRUE in cell C1, FALSE in cell C2 and TRUE in cell C10.
post scriptum : Taking a pick at bioschaf's comment may help you to generalize the concept.
Example 2
Checking whether the string value of each cell of column B is CONTAINED in the string value in column A's adjacent cell
Or using your example.
A B C
1 abc | cde abc =NOT(ISERR(SEARCH($B1,$A1)))
2 cde | bsd xxx =NOT(ISERR(SEARCH($B2,$A2)))
3 aaa | abc bsd =NOT(ISERR(SEARCH($B3,$A3)))
Example 3
Checking whether each column A's value is CONTAINED somewhere in column B's range $B$1:$B$11, using array formula
A B C
1 abc abc | cde =NOT(NOT(SUM(--NOT(ISERR(SEARCH($A1,$B$1:$B$11))))))
. ... ... ...
1000 aaa =NOT(NOT(SUM(--NOT(ISERR(SEARCH($A1000,$B$1:$B$11))))))
From which you can drop the NOT(NOT(...)) part so as to see the number of occurence rather than turning it into boolean values.
Example 4
Checking whether each column B's value CONTAINS at least one of the string value in column D's range $D$2:$D$5, using array formula
Using data you give in comment. And showing them in the column you also mention in comment, it follows that we have
B C D
1
2 hardware|information services|information technology hardware
3 hardware mobile
4 apps|mobile 3d
5 computer
Thus, if we want to check if each value in column B contains a word written somewhere in range D2:D5, what we can do is (say in column E):
E
1
2 =NOT(NOT(SUM(--NOT(ISERR(SEARCH($D$2:$D$5,$B2))))))
4 =NOT(NOT(SUM(--NOT(ISERR(SEARCH($D$2:$D$5,$B3))))))
3 =NOT(NOT(SUM(--NOT(ISERR(SEARCH($D$2:$D$5,$B4))))))
5
Where each of the above formula has to be validated as MATRIX-FORMULA by pressing CTRL+SHIFT+ENTER. Doing so will render :
E
1
2 TRUE
4 TRUE
3 TRUE
5
In E2 we have TRUE since hardware|information services|information technology contains the word hardware, actually located at D2.
In E3 we have TRUE since hardware contains (exactly) the word hardware, actually located at D2.
In E4 we have TRUE since apps|mobile contains the word mobile, actually located at D3

Excel concatenate the column based on other column

I have data in excel like this
A B C
p1 ABC 2
p2wt ABC 3
p3 EFG 1
p3wtke EFG 1
p9r EFG 2
I'm trying to sum up C column if B column has same data and concatenate A column data. And data looks like
A B C
p1-p2wt ABC 5
p3-p3wtke-p9r EFG 4
I tried using =SUMIFS(C1:C5,A1:A9,B1) but it is giving #value, and how do i concate A? I tried Excel concatenate, but is A2>A1 in this link is for number fields?
Use a helper column.
In D1 put:
=IF(B1<>B2,A1,A1&"-"&D2)
Then copy/drag down the data set.
The in another column create a list of the unique values in column B. I put mine in G.
Then in F1 I put:
=VLOOKUP(G1,B:D,3,FALSE)
And in H1 I put:
=SUMIF(B:B,G1,C:C)
Then copies/dragged down.

Resources