Get unique values from a 2d range?

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Is this a trick question...


All you had to do was to create the ("A1:D10") range, populate it with some data, some of which was duplicated, and run the code for yourself.

That probably would have been the best approach.
 
Upvote 0
Application.Transpose(arr)
This function really exists?
Actually, it is a method of the WorksheetFunction object which is, in turn, a property of the Application object. You could write it as Application.WorksheetFunction.Transpose(arr), but VBA appears to recognize that WorksheetFunction is implied when you specify one of its members and, thus, allows you to shortcut the statement using just Application.Transpose(arr) by itself. Alternately, you can omit the Application object reference by specifying the WorksheetFunction instead; hence, it could have been referenced using WorksheetFunction.Transpose(arr) as well.
 
Last edited:
Upvote 0
Is this a trick question...


All you had to do was to create the ("A1:D10") range, populate it with some data, some of which was duplicated, and run the code for yourself.

That probably would have been the best approach.

It's a serious question. Last month I searched for a transposition function on many websites, and all I found was function with for syntax. When I saw this post, I make a try, but the error message says unknown function
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,726
Members
449,465
Latest member
TAKLAM

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