VBA 365 functions

Ezguy4u

Active Member
Joined
Feb 10, 2010
Messages
366
Office Version
  1. 365
Platform
  1. Windows
So I just got Excel 365 and took a short class on the new 365 functions. I am going to use Filter and Unique. I don't know why but in cell C7 the formula is actually =@UNIQUE(A2:A17) when I ran the program. So the question is how do I get that unique formula in C7 without getting that implicit intersection @?
Thank you for your time

VBA Code:
Sub Prog02()

Range("C7").Formula = "=UNIQUE(A2:A17)"

End Sub

new 365 functions using VBA rev a.xlsm
ABC
1DivisionDivision
2UtilityUtility
3UtilityProductivity
4UtilityGame
5UtilityHealth
6Utility
7ProductivityUtility
8Productivity
9Productivity
10Productivity
11Productivity
12Game
13Game
14Game
15Game
16Game
17Health
UNIQUE
Cell Formulas
RangeFormula
C2:C5C2=UNIQUE(A2:A17)
C7C7=UNIQUE(A2:A17)
Dynamic array formulas.


I will add filter to the problem in hopes of the solution will be for both unique and filter. Again =@FILTER(A6:C20,C6:C20>G11) is in cell E11

VBA Code:
Sub Prog05A()

Range("E11").Formula = ("=FILTER(A6:C20,C6:C20>G11)")

End Sub

new 365 functions using VBA rev a.xlsm
ABCDEFG
1DivisionRegionRevenue
2UtilityNorth America44,196
3UtilitySouth America20,898Revenue greater than:45,000
4UtilityAsia46,994
5UtilityEurope43,695UtilityAsia46994
6UtilityAustralia34,196ProductivityEurope45540
7ProductivityNorth America34,155GameEurope46336
8ProductivitySouth America24,396GameAustralia49656
9ProductivityAsia29,276
10ProductivityEurope45,540
11ProductivityAustralia29,277Utility
12GameNorth America44,675
13GameSouth America42,569
14GameAsia43,784
15GameEurope46,336
16GameAustralia49,656
FILTER
Cell Formulas
RangeFormula
E5:G8E5=FILTER(A2:C16,C2:C16>G3)
E11E11=FILTER(A6:C20,C6:C20>G11)
Dynamic array formulas.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
And it is just that easy. Thank you Peter. I will look at that link and understand it better.
 
Upvote 0
You're welcome. Good luck with the transition to 365! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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