+ Reply to Thread
Results 1 to 13 of 13

Array formula in vba

  1. #1
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Array formula in vba

    hi all
    how to insert these array formulas in vba
    can some body help

    IF(ROWS(A$3:A3)>B$1,"",INDEX(MASTER_SHEET!F:F,SMALL(IF(MASTER_SHEET!F$6:F$18000<>"",IF(ROW(MASTER_SHEET!F$6:F$18000)-ROW(MASTER_SHEET!F$6)+1=MATCH(MASTER_SHEET!F$6:F$18000,MASTER_SHEET!F$6:F$18000,0),ROW(MASTER_SHEET!F$6:F$18000))),ROWS(A$3:A3))))
    IF(ROWS(A$3:A4)>B$1,"",INDEX(MASTER_SHEET!F:F,SMALL(IF(MASTER_SHEET!F$6:F$18000<>"",IF(ROW(MASTER_SHEET!F$6:F$18000)-ROW(MASTER_SHEET!F$6)+1=MATCH(MASTER_SHEET!F$6:F$18000,MASTER_SHEET!F$6:F$18000,0),ROW(MASTER_SHEET!F$6:F$18000))),ROWS(A$3:A4))))
    IF(ROWS(A$3:A5)>B$1,"",INDEX(MASTER_SHEET!F:F,SMALL(IF(MASTER_SHEET!F$6:F$18000<>"",IF(ROW(MASTER_SHEET!F$6:F$18000)-ROW(MASTER_SHEET!F$6)+1=MATCH(MASTER_SHEET!F$6:F$18000,MASTER_SHEET!F$6:F$18000,0),ROW(MASTER_SHEET!F$6:F$18000))),ROWS(A$3:A5))))
    Last edited by eja; 12-12-2021 at 05:20 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Array formula in vba

    Where is the file?

  3. #3
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    I tried but unable to upload file

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Array formula in vba

    Welcome to the forum

    Please see the yellow banner at the top of the page.

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    file uploaded thanks for cooperation
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Array formula in vba

    You might need to change .Formula2 to .Formula, but try:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    thanks for your reply i tried but not working

    test2 showing message (object dosent support this property or method

    test showing in sheet
    #VALUE!
    #VALUE!
    #VALUE!
    #NUM!
    #NUM!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Array formula in vba

    Did you try changing .Formula2 to .Formula?

  9. #9
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    yes i done fromula2 to formula

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Array formula in vba

    You need FormulaArray in XL2010 - try:

    Please Login or Register  to view this content.
    Rory

  11. #11
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    its working THANKS

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Array formula in vba

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will do it for you this time: https://www.mrexcel.com/board/thread...n-vba.1190138/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  13. #13
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Array formula in vba

    i am sorry i don,t know about this rule i dont do this next time thanks for your support

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 10-26-2020, 12:18 PM
  2. Array summing inventory of a specific part (array formula) EXCEL 2007
    By fdirosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2018, 12:51 PM
  3. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  4. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  5. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  6. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1