+ Reply to Thread
Results 1 to 5 of 5

Consolidate information in each row of database

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Consolidate information in each row of database

    I am trying to consolidate information in a database that is not very user friendly.

    Column A contains a list of products. Columns B1:Q1 contains a list of invoice numbers.

    For each product, I want to show/list all the invoices that contain the product in question. For example, apples were sold on invoices 33333, 77777, and 4. I want to list on another sheet:

    Cell A1 = Apples
    Cell B1 = 33333
    Cell C1 = 77777
    Cell D1 = 4

    For oranges it would be
    Cell A2 = Oranges
    Cell B2 = 11111
    Cell C2 = 55555
    Cell D2 = 7

    I have attached a small sample of raw data file and desired output. Thanks in advance for any comments.
    Attached Files Attached Files
    Last edited by maacmaac; 10-01-2011 at 10:42 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Consolidate information in each row of database

    hi, maacmaac, please check attachment, run code "test"
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Re: Consolidate information in each row of database

    The code works fine for sample I sent but the raw data file is actually 1334 columns wide.
    Please Login or Register  to view this content.
    It appears to be picking up everything up to column 1296 but nothing after that column. I tried to force the column by changing one line of code from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    That didn't work either. I can't figure out why it won't pick up any data after column 1296. I have attached another sample with 1334 columns of data. Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Consolidate information in each row of database

    please check attachment
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Re: Consolidate information in each row of database

    works great. Thanks for all your help

+ 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