+ Reply to Thread
Results 1 to 5 of 5

Consolidating Data Based on Coding Structure

Hybrid View

addie Consolidating Data Based on... 03-22-2009, 03:54 PM
rylo Re: Consolidating Data Based... 03-22-2009, 06:29 PM
addie Re: Consolidating Data Based... 03-22-2009, 10:22 PM
rylo Re: Consolidating Data Based... 03-23-2009, 04:56 AM
royUK Re: Consolidating Data Based... 03-23-2009, 06:22 AM
  1. #1
    Registered User
    Join Date
    07-23-2005
    Posts
    23

    Consolidating Data Based on Coding Structure

    How would I create a formula which consolidates response data based on the 6th character of the following series of codes?

    Codes ------------------ Responses
    R0801Z0.5-----------------400
    R0801Z0.6-----------------500
    R0801Z0.7-----------------600
    R0802BZ.1-----------------220
    R0802BZ.2-----------------506
    R0802BZ.3-----------------200
    R0603BA.3-----------------640
    R0603BA.4-----------------820
    R0603BA.5-----------------307
    R0603BA.6-----------------912

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Consolidating Data Based on Coding Structure

    Hi

    Assuming your data is in the range A1:B11 then try

    =SUMPRODUCT(--(MID(A2:A11,6,1)="Z"),(B2:B11))
    and
    =SUMPRODUCT(--(MID(A2:A11,6,1)="B"),(B2:B11))

    rylo

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

    Re: Consolidating Data Based on Coding Structure

    Thanks for providing a solution, rylo.

    What if I wanted to pull data from another worksheet? Is there a way to combine the sumproduct formula with a vlookup formula?

    Thanks,

    Addie

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Consolidating Data Based on Coding Structure

    Hi

    Care to give some more detail on the setup? What are you trying to bring back with the vlookup?

    Build a small example workbook with 2 sheets and explain what you want to do.

    rylo

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Consolidating Data Based on Coding Structure

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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