+ Reply to Thread
Results 1 to 2 of 2

return cell references based on criteria

  1. #1
    Registered User
    Join Date
    07-18-2008
    Location
    Texas
    Posts
    5

    return cell references based on criteria

    Excel's T-test function requires that the cell ranges entered for the first 2 arguments be contiguous. I have gotten around that by using the MakeArray formula, so that non-contiguous cells can be combined into one array (http://support.microsoft.com/kb/213403).

    However, now I need to figure out how to only pass cells to the MakeArray function when a certain criteria is met.

    Please Login or Register  to view this content.
    For example, if I want to pass only cells from column D to the MakeArray function when there is a 1 in either column A or C, how would I do this? That is, the result of MakeArray should be (30, 20, 50, 10).

    I tried the following but no luck.
    {=MakeArray(IF(A1:A5+C1:C5=1,D1:D5))}

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't know too much about the TTEST() function... but perhaps

    =TTEST(IF($A$1:$A$5+$C$1:$C$5=1,$D$1:$D$5,""),G2:K2,1,1)

    Where G2:K2 is array2 and 1 is Tails and 1 is Type... change as necessary...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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