+ Reply to Thread
Results 1 to 3 of 3

working with array

  1. #1
    Registered User
    Join Date
    09-01-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    44

    working with array

    Trying to get the sum of all the survey of the customer (to be placed on B10, B11, B12) based on their score in Worksheet Data. After that It would match the result of B10 to B7, B11 to C7 and B12 toD7. If they match it would provide a result of Correct if not Incorrect (to be placed on C10, C11, C12 respectively).



    Thanks
    Last edited by jamesjessie117; 09-07-2012 at 02:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: working with array

    Try in B10:B12

    =SUM(COUNTIF(Data!$B$2:$B$21,{"9","10*"}))

    =SUM(COUNTIF(Data!$B$2:$B$21,{"7","8"}))

    =SUM(COUNTIF(Data!$B$2:$B$21,{"0*","6"}))

    Then in C10:C12

    =IF(B10=B7,"Correct","Incorrect")

    =IF(B11=C7,"Correct","Incorrect")

    =IF(B12=D7,"Correct","Incorrect")
    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.

  3. #3
    Registered User
    Join Date
    11-16-2011
    Location
    San Diego, California
    MS-Off Ver
    2007
    Posts
    78

    Re: working with array

    Here is what I came up with for B10:B12

    =SUM(IF(Data!B2:B21=10,1,IF(Data!B2:B21=9,1,0)))
    =SUM(IF(Data!B2:B22=8,1,IF(Data!B2:B22=7,1,0)))
    =SUM(IF(Data!B2:B21<=6,1,0))

    You need to make each cell an array formula so hit cntrl+shift+enter to leave the cell

    My C10:C12 were the same as NBVC
    ** I'll get you next time Gadget! **

+ 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