+ Reply to Thread
Results 1 to 3 of 3

Populating fields in multiple cells based on criteria in multiple columns

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    2

    Populating fields in multiple cells based on criteria in multiple columns

    To All Excel Gurus out here,

    Your help will be greatly appreciated! Im struggling to find a formula to populate cells based on values to be checked in two fields (ICODE, COMPANY) as shown below.
    In the example here, all records where ever the ICODE = 49, i need to populate the fields(columns) AD1,AD2,AD3 or AD4 with the product name of the same company where the ICODE <> 49. There could be between 1-7 products per company.

    CURRENT SHEET

    ICODE PRODUCT COMPANY AD1 AD2 AD3 AD4
    89 PENS ABC STATIONERY CO LLC

    49 PENCILS ABC STATIONERY CO LLC

    49 ERASER ABC STATIONERY CO LLC

    94 OVEN WORLD KITCHENWARE

    90 CABINETS WORLD KITCHENWARE

    49 COOKING RANGE WORLD KITCHENWARE

    49 S. S. TABLE WORLD KITCHENWARE

    49 DISHWASHER WORLD KITCHENWARE

    91 TABLES GENUINE FURNITURE SUPPLIES

    49 CHAIRS GENUINE FURNITURE SUPPLIES

    89 PIPES RELIABLE PLASTICS CO

    90 CHAIRS RELIABLE PLASTICS CO

    24 BUCKET RELIABLE PLASTICS CO

    93 TABLES RELIABLE PLASTICS CO

    24 TOYS RELIABLE PLASTICS CO

    49 BOTTLES RELIABLE PLASTICS CO


    FINAL REQUIRED SHEET


    ICODE PRODUCT COMPANY AD1 AD2 AD3 AD4
    89 PENS ABC STATIONERY CO LLC

    49 PENCILS ABC STATIONERY CO LLC PENS

    49 ERASER ABC STATIONERY CO LLC PENS

    94 OVEN WORLD KITCHENWARE

    90 CABINETS WORLD KITCHENWARE

    49 COOKING RANGE WORLD KITCHENWARE OVEN CABINETS

    49 S. S. TABLE WORLD KITCHENWARE OVEN CABINETS

    49 DISHWASHER WORLD KITCHENWARE OVEN CABINETS

    91 TABLES GENUINE FURNITURE SUPPLIES

    49 CHAIRS GENUINE FURNITURE SUPPLIES TABLES

    89 PIPES RELIABLE PLASTICS CO

    90 CHAIRS RELIABLE PLASTICS CO

    24 BUCKET RELIABLE PLASTICS CO

    93 TABLES RELIABLE PLASTICS CO

    49 TOYS RELIABLE PLASTICS CO PIPES CHAIRS BUCKET TABLES

    49 BOTTLES RELIABLE PLASTICS CO PIPES CHAIRS BUCKET TABLES

    The attached example file may be a better alternative to view this problem.
    Request you Excel gurus out there to please help me with this. Thanks in advance. Attached sample Excel file too.
    Attached Files Attached Files
    Last edited by excelalways; 02-25-2014 at 02:24 AM.

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Populating fields in multiple cells based on criteria in multiple columns

    You can try this formula for Cell D3
    Please Login or Register  to view this content.
    You can define the name (click mouse the cell D3)
    SP=SUMPRODUCT(($A$1:$A3<>49)*($C$1:$C3=$C3))
    Above formula should be :
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Populating fields in multiple cells based on criteria in multiple columns

    Greetings Soledad, You are indeed a Genius! Thanks a million! as you are truly a Guru and have shown me light in the right path. The first formula worked fine for the first instance of the product type. Please, I could not understand the second part of the formula you suggested where SP=sumproduct etc. Also if you can help me populate the AD2, AD3, AD4 Fields accordingly. Your help would be greatly appreciated. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 05-19-2015, 11:53 PM
  2. Filter multiple columns based on multiple data validation fields
    By Jhunnieboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2014, 03:41 PM
  3. [SOLVED] VBA fill in cells in a new column in table based on multiple criteria from other columns
    By HRA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 06:48 AM
  4. Populating Cells Based On Multiple Criteria
    By LordAcoustic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2013, 12:05 PM
  5. Replies: 1
    Last Post: 11-20-2010, 05:38 AM

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