+ Reply to Thread
Results 1 to 3 of 3

Thread: Alternative to Vlookup

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Alternative to Vlookup

    Hello

    I am working on a spreadsheet, and need to convert a list of suppliers materials on different rows, so they are displayed in columns, if this makes sense

    - I have attached a spreadsheet showing the issue.

    I need to get the "Overview" sheet to list the materials each supplier supplies in horizontal order, I have done V lookups on the first two sheets, so the material supplied is on the "supplier and codes" tab and the supplier is on the "Codes and Materials" tab.

    The reason behind doing this is so that I can send out an email (as a mail merge) and the supplier will recieve one email with a list of materials rather than several emails, one for each material.

    Hope someone can help me... it would literally save me DAYS!!!!
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: Alternative to Vlookup which doesn't seem to work for me

    Here,try this:
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

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

    Re: Alternative to Vlookup which doesn't seem to work for me

    Try this:

    In the first tab, D2 enter:

    =B2&"_"&COUNTIF($B$2:B2,B2)
    copied down.

    Then in the Overview tab insert a new column before column F and in the new Column F at F2 enter:
     =COUNTIF('Supplier and Materials'!B:B,A2)
    copied down

    Then in G2:

    =IF(COUNTIF($G$1:G$1,"*Code")>$F2,"",INDEX('Supplier and Materials'!$A:$C,MATCH($A2&"_"&COUNTIF($G$1:G$1,"*Code"),'Supplier and Materials'!$D:$D,0),IF(RIGHT(G$1,4)="Code",1,3)))
    copied down and across.
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0