+ Reply to Thread
Results 1 to 8 of 8

Index and Match 3 entries in a Database

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Index and Match 3 entries in a Database

    Hi

    I now have completed a database (thanks to NBVC in other post) which I need to be used to pull information from.

    On the "userform" sheet the user will only select two variables, Customer and Month.

    In the cells F15:F174 I require an index and match formula which matches the following on the “usersheet”:
    • The Customer Name (Cell C3)
    • The Month (Cell C5)
    • And the products (Cells B15:E174)

    With the corresponding cells on the M2 sheet where the database is held. These can be found in the following locations:
    • The Customer Name (Column D)
    • The Month (Column E)
    • The products (Row 3 which uses concatenate already)

    Can anyone please help with a formula?
    Attached Files Attached Files
    Last edited by pauldaddyadams; 01-18-2012 at 06:17 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index and Match 3 entries in a Database

    Hi,

    A couple of Qs first.
    Why do the concatenate cells on sheet M2 row F use rows 4,5,6 & 8, and not 4,5,6, & 7 which are the values in columns B:E of the user sheet?
    You would simplify the MATCH() function that will be required if you had a helper column on the M2 sheet which concatenated the Customer Name and Month. Is that allowable?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Index and Match 3 entries in a Database

    There is no column in UserSheet for row 8 headers in M2 sheet, which is part of the concatenated cells in row 3 of M2...
    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.

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index and Match 3 entries in a Database

    That was an error, it should be =CONCATENATE(F4,F5,F6,F7,F8)

    I have updated the "userform" sheet to include a helper column.

    I dont have any set way which I need it to be done so I am open to any suggestions
    Attached Files Attached Files

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

    Re: Index and Match 3 entries in a Database

    Once you correct the formula in all the row headers in row 3 of M2 sheet, then try:

    =SUMPRODUCT(('M2'!$D$9:$D$44=$C$3)*('M2'!$E$9:$E$44=LEFT($C$5,3))*('M2'!$F$3:$FI$3=$B15&$C15&$D15&$E15&$F15),'M2'!$F$9:$FI$44)

    copied down..

    No need for the helper in column A.

    Also, the #N/A in D10:F10 is due to the April in your list at W1 having a trailing space... correct that and reselect April from your drop down to get results.
    Last edited by NBVC; 01-17-2012 at 04:45 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index and Match 3 entries in a Database

    Regarding D10:F10, thank you! I would have never spotted that!

    When I drag the main formula down it only returns an entry in G15 - the rest are zero, why would this be?

    I have uploaded and example
    Attached Files Attached Files

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

    Re: Index and Match 3 entries in a Database

    Have you taken the updated Concatenate formula and copied across row 3 of the M2 sheet?

  8. #8
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index and Match 3 entries in a Database

    I hadn't - thanks NBVC

+ 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