Check incorrect fileds then CONCATENATE

lanjapfag

New Member
Joined
May 22, 2014
Messages
10
ABCDEF
1John James 2 2A MIPA8XXY =IF(B1,C1,D1 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A1,B1,C1,D1])
2John James 22AMIPA8AMN =IF(B2,C2,D2 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A2,B2,C2,D2])
3John James22AMIPA8NOP =IF(B3,C3,D3 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A3,B3,C3,D3])
4John James22BMIPA8XOP =IF(B4,C4,D4 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A4,B4,C4,D4])
5John James22AMUNX8JLO =IF(B5,C5,D5 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A5,B5,C5,D5])
622AMIPA
7John James22AMIPA8NIU=IF(B7,C7,D7 NOT EQUAL TO B9,C9,D9 THEN [CONCATENATE,A7,B7,C7,D7])
8John James22AMIPA8XOS=IF(B8,C8,D8 NOT EQUAL TO B9,C9,D9 THEN [CONCATENATE,A8,B8,C8,D8])
92
2A
MIPA

<tbody>
</tbody>

I need formula to check if B1, C1, D1 dont match or are not equal to B6,C6,D6 then CONCATENATE them to Coulmn F.

Any Help please ?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
=IF(B1,C1,D1 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A1,B1,C1,D1])

=IF(AND(B1<>$B$6, C
1<>$C$6, D1<>$D$6), CONCATENATE(A1,B1,C1,D1) , "what if the do match ?" )
copy down

But i notice in row 7 you change the test ?
 
Upvote 0
Try this.


Sheet8


*ABCDEF
1John James22AMIPA8XXY*
2John James22AMIPA8AMN*
3John James22AMIPA8NOP*
4John James22BMIPA8XOPJohn James22BMIPA
5John James22AMUNX8JLOJohn James22AMUNX
6*22AMIPA**
7John James22AMIPA8NIU*
8John James22AMIPA8XOS*
9*22AMIPA**

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:82px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:531px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F1=IF(CONCATENATE(B1,C1,D1)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A1,B1,C1,D1),"")
F2=IF(CONCATENATE(B2,C2,D2)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A2,B2,C2,D2),"")
F3=IF(CONCATENATE(B3,C3,D3)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A3,B3,C3,D3),"")
F4=IF(CONCATENATE(B4,C4,D4)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A4,B4,C4,D4),"")
F5=IF(CONCATENATE(B5,C5,D5)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A5,B5,C5,D5),"")
F7=IF(CONCATENATE(B7,C7,D7)<>CONCATENATE($B$9,$C$9,$D$9),CONCATENATE(A7,B7,C7,D7),"")
F8=IF(CONCATENATE(B8,C8,D8)<>CONCATENATE($B$9,$C$9,$D$9),CONCATENATE(A8,B8,C8,D8),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Hey etaf Thanks you for that.

I am very happy it WORKED! :)

But i notice in row 7 you change the test ?

Yes this changes because there are 26,000 rows and in between them there are I have to manually change the $B$ and $C$.

What if I can automate that process to check like IF font color blue DO the logic test.

what if the do match ?
they will be FALSE ?
 
Upvote 0
Try this.


Sheet8


*ABCDEF
1John James22AMIPA8XXY*
2John James22AMIPA8AMN*
3John James22AMIPA8NOP*
4John James22BMIPA8XOPJohn James22BMIPA
5John James22AMUNX8JLOJohn James22AMUNX
6*22AMIPA**
7John James22AMIPA8NIU*
8John James22AMIPA8XOS*
9*22AMIPA**

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F1=IF(CONCATENATE(B1,C1,D1)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A1,B1,C1,D1),"")
F2=IF(CONCATENATE(B2,C2,D2)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A2,B2,C2,D2),"")
F3=IF(CONCATENATE(B3,C3,D3)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A3,B3,C3,D3),"")
F4=IF(CONCATENATE(B4,C4,D4)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A4,B4,C4,D4),"")
F5=IF(CONCATENATE(B5,C5,D5)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A5,B5,C5,D5),"")
F7=IF(CONCATENATE(B7,C7,D7)<>CONCATENATE($B$9,$C$9,$D$9),CONCATENATE(A7,B7,C7,D7),"")
F8=IF(CONCATENATE(B8,C8,D8)<>CONCATENATE($B$9,$C$9,$D$9),CONCATENATE(A8,B8,C8,D8),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

It doesnt work.
 
Upvote 0
=IF(B1,C1,D1 NOT EQUAL TO B6,C6,D6 THEN [CONCATENATE,A1,B1,C1,D1])

=IF(AND(B1<>$B$6, C
1<>$C$6, D1<>$D$6), CONCATENATE(A1,B1,C1,D1) , "what if the do match ?" )
copy down

But i notice in row 7 you change the test ?

Etaf,

Can I rephrase my question.

How should I automate the logic test so that it searches font color and adds $ $ to the rows instead of me manually searching for the font.

Summary it the there will be three things:
1) Automatically search/look for cell $ $ and then (those cells are in blue color) is there a way to find it and add $ $ automatically instead
2) Compare differences of other cells with cell $ $
3) Then concatenate IF there is a difference

Something lilke:
=IF (AND(B1<> (look for color Blue) then assign$B$6, C1<>(look for color Blue) then assign$C$6, D1<>(look for color Blue) then assign$D$6), CONCATENATE(A1,B1,C1,D1) ,
 
Last edited:
Upvote 0
It doesnt work.

In my post the result that looks like a spreadsheet is from a spreadsheet. I didn't type in the results those are the results of the formula in the bottom section of the post.

Which from what I can see is exactly what you said you wanted. If you are not getting the same results you are either typing the formula wrong or you pasted it into the wrong cell or your description of what you wanted is not the same as what you want now, but it works. Definitely works.
 
Upvote 0
In my post the result that looks like a spreadsheet is from a spreadsheet. I didn't type in the results those are the results of the formula in the bottom section of the post.

Which from what I can see is exactly what you said you wanted. If you are not getting the same results you are either typing the formula wrong or you pasted it into the wrong cell or your description of what you wanted is not the same as what you want now, but it works. Definitely works.

Hey Skywriter it finally worked, I must have copied/typed it wrong, now it works !

What about if we included it to search for font color like i and then applied IF(CONCATENATE(B1,C1,D1)<>CONCATENATE($B$6,$C$6,$D$6),CONCATENATE(A1,B1,C1,D1),"")

There are more than 26,000 rows and within these rows are some which are in Blue color.

The cell reference $ $ needed to be applied automatically in the formular.
 
Upvote 0
I don't think you can search for font color with a formula. It sounds like what you really need is some custom code to go through all the cells you are concerned with and do to them what you want. Custom code can do a lot. It can compare the values just like you want here and it can check font colors, etc etc.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top