Find unique with formula (no VBa)

nemmi69

Well-known Member
Joined
Mar 15, 2012
Messages
938
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
Hi all,
This is taken from a previously asked question but that allowed VBa. In this case I am trying to do it via formula and not use multiple columns to get the result. IE only the cell in "C" has a formula. This should keep all guru's busy for awhile :laugh: I sure as heck have not got far.


[TABLE="class: cms_table_grid, width: 600"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]chocolate, strawberry[/TD]
[TD]banana, chocolate, strawberry[/TD]
[TD]banana[/TD]
[/TR]
[TR]
[TD]vanilla, blueberry[/TD]
[TD]licorice, raspberry, vanilla, fudge, blueberry[/TD]
[TD]licorice, raspberry, fudge[/TD]
[/TR]
</tbody>[/TABLE]
 
In your post you said that you had used a variant of sadboy309 formula, which is why I asked you to post the formula.
Please bear in mind our rules especially rule#4
Likewise, please do not answer questions by creating solutions elsewhere and then referencing those solutions via file links. We ask that you answer the question within the thread itself (note: providing links to existing articles on the internet may be acceptable if not breaching other rules).

To that effect, do not simply create a file with a solution, and provide a link to that. Some of the issues with providing links to files uploaded to the internet are: those links often expire, many users cannot download files from file-sharing sites due to network security restrictions, many users are reluctant to download files for personal security reasons and the ability to search the forum effectively is reduced.
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
My formula for C1:)
Code:
=IF(RIGHT(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))=",",LEFT(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")),LEN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))-1),TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))
https://yadi.sk/i/Q9zze6mYH9kwOw
 
Last edited:
Upvote 0
My formula for C1:)
Code:
=IF(RIGHT(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))=",",LEFT(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")),LEN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))-1),TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,LEFT(A1,FIND(",",A1)-1),""),RIGHT(A1,LEN(A1)-FIND(",",A1)-1),""),", ,",",")))

Your formula has 500 characters, Sadboy's 181 characters and both give the same results.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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