Do you know what formula to use in tis example if I want to find a unique value in column B?Book1.xlsx
Do you know what formula to use in tis example if I want to find a unique value in column B?Book1.xlsx
=UNIQUE(B2:B11)
Currently the UNIQUE function is only available with Office 365 subscriptions. Excel 2019, Excel 2016, Excel 2013 and earlier do not support dynamic array formulas, so the UNIQUE function is not available in these versions.
PLS DO NOT PM; OPEN A THREAD INSTEAD!!!
1) Posting Code
[CODE]PasteYourCodeHere[/CODE]
(or paste your code, select it, click # button)
2) Uploading File(s)
Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.
3) Testing the Codes
always back up your files before testing the codes.
4) Marking the Thread as Solved
from Thread Tools (on the top right corner, above the first message)
Thanks for your advice
If you don't have Office 365 and the UNIQUE function, try this.
In cell D2, enter -
=B2
In cell D3, add this array formula -
=IFERROR(IF(INDEX($B$2:$B$100,MATCH(0,COUNTIF(D$2:D2,$B$2:$B$100&""),0))=0, "",INDEX($B$2:$B$100,MATCH(0,COUNTIF(D$2:D2,$B$2:$B$100&""),0))),"")
copy D3 down as far as you need.
Last edited by Bob Phillips; 10-12-2021 at 11:27 AM.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
FYI, the is 'translated' by the forum software. It really is ":D". i.e. part of the range specification
Took me awhile long ago to figure out why Ranges were laughing at me
---------------------------------------------------------------------------------------------------------------------
Paul
Remember: Tell us WHAT you want to do, not HOW you think you want to do it
1. Use [CODE] ....[/CODE ] Tags for readability
[CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
2. Upload an example
Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
3. Mark the thread as [Solved] when you have an answer
Thread Tools (on the top right corner, above the first message)
4. Read the Forum FAQ, especially the part about cross-posting in other forums
http://www.vbaexpress.com/forum/faq...._new_faq_item3
Thanks Bob for this formula and thanks Paul for clarifying the range converted into smiley
Just a doubt - Is there any specific reason for having &"" in the count if formula
COUNTIF(D$2:$D2,$B$2:$B$100&"")
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber