Results 1 to 3 of 3

Thread: VBA Array formula help
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jul 2016
    Posts
    59
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default VBA Array formula help

    I have the below array formula in a spreadsheet that i am currently updating so that most of the data is stored in VBA Arrays rather than in cells. I'm having trouble with this array formula.

    Rather than having the source data in D4:LasTRow2,LCol2 it is now in a 2d array called SA_Corr which is (1 To c, I To c) in size.

  2. #2
    Board Regular James006's Avatar
    Join Date
    Apr 2009
    Posts
    3,444
    Post Thanks / Like
    Mentioned
    19 Post(s)
    Tagged
    1 Thread(s)

    Default Re: VBA Array formula help

    Hello,

    Looks like you forgot to copy your array formula ...

  3. #3
    Board Regular
    Join Date
    Jul 2016
    Posts
    59
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA Array formula help

    Ah Yes, thank you.

    Here it is:
    ws2.Cells(3, 1).FormulaArray = "=STDEV(IF(ROW(D4:" & LCol2 & LastRow2 & ")>COLUMN(D4:" & LCol2 & LastRow2 & "),D4:" & LCol2 & LastRow2 & "))"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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