+ Reply to Thread
Results 1 to 3 of 3

Additional help with Sumproducts

  1. #1
    Registered User
    Join Date
    07-23-2005
    Posts
    23

    Additional help with Sumproducts

    I understand the logic behind the following formula which captures "responses" from codes below that end in "7" on worksheet 1.

    =SUMPRODUCT( (RIGHT($A$1:$A$6, 1)="7") * $B$1:$B$6)

    However, what if I want to pull the responses from worksheet 1? Is there a lookup formula that can be added to the noted sumproduct formula to help me pull data from worksheet 1 to worksheet 2?

    Worksheet 1
    Codes:-------- Responses:
    601BF5 -------- 200
    601BF6 -------- 400
    601BF7 -------- 500
    601BZ5 -------- 200
    601BZ6 -------- 400
    601BZ7 -------- 500

    Worksheet 2
    Need to pull all responses with codes that end in 7.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Additional help with Sumproducts

    To start with, as was highlighted on your other thread, to do the Summation you need not use a Sumproduct, a standard SUMIF will suffice and will be quicker:

    =SUMIF(Worksheet1!$A$1:$A$6,"*7",Worksheet1!$B$1:$B$6)

    If you want do extraction of entire records I would strongly advise you add a column to Worksheet 1 that extracts the last char, eg:

    Worksheet1!C1: =RIGHT($A1,1)
    copied down to C6

    Then use a Pivot Table with Range A1:C6, Column C as your PAGE Field, Column A as your ROW field and Column B as your DATA Field.

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

    Re: Additional help with Sumproducts

    First, enter this formula in Sheet2, say cell A1:

    Please Login or Register  to view this content.
    Then use this formula to extract the relevant data:

    Please Login or Register  to view this content.
    which you must confirm with CTRL+SHIFT+ENTER not just ENTER, then copy over 1 column and down as far as you want to extract all data.

    If you adjust ranges, you need to reconfirm with CTRL+SHIFT+ENTER before copying across and down again
    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