+ Reply to Thread
Results 1 to 14 of 14

index and match issue

  1. #1
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    index and match issue

    Hi people,

    If you've the time please have a look at the image I've attached.

    I'm trying to have the table on the right match the first two columns to display the customer name taken from the table on the right.

    Can anyone please help?
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: index and match issue

    Hi and welcome to the forum

    For future reference, Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    having said that, try this, copied down and across. Your profile says 2003, so....
    =IF(ISERROR(INDEX($C$2:$C$8,MATCH($E2,$B$2:$B$8,0),MATCH(F$1,$A$2:$A$8,0))),"",INDEX($C$2:$C$8,MATCH($E2,$B$2:$B$8,0),MATCH(F$1,$A$2:$A$8,0)))

    If you have 2007 or later, you can shorten that to this...
    =IFERROR(INDEX($C$2:$C$8,MATCH($E2,$B$2:$B$8,0),MATCH(F$1,$A$2:$A$8,0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    That works a treat, thank you so much.

    And apologies for just posting an image, it didn't even occur to me that I should do that. I will remember to in the future.

    Thanks again.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: index and match issue

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  5. #5
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    Ok so it almost works, it will place the names on the right row but not column, mucked around with it for a while and can't see where the problem is. Although as I wasn't bright enough to come up with the formula myself im not that surprised.
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: index and match issue

    try in f2
    =IF(ISNA(INDEX($C$2:$C$8,MATCH(F$1&$E2,INDEX($A$2:$A$8&$B$2:$B$8,0),0))),"",INDEX($C$2:$C$8,MATCH(F$1&$E2,INDEX($A$2:$A$8&$B$2:$B$8,0),0)))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match issue

    This array formula** entered in F2:

    =LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX($C$2:$C$4,MATCH($E2,IF($A$2:$A$4=F$1,$B$2:$B$4),0))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy across to N2 then down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    Thanks for the idea's guys but im not having any luck with those, although it could be because trying on libra office at the moment, will try them again then I get back to my ms2003 system at home.

    But I think FDibbins post may have been closer to the mark.

    I simple cannot see why its not checking the cottage name as well as the date.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match issue

    Here's your file with the formula from post #7 implemented.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    Awesome, thank you tony. I can happily mark this one as Solved

  11. #11
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    Ok sorry one last question. Im assuming the "zzzzz" denotes a text string, what should I replace that with for a numeric string?

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: index and match issue

    not sure what you mean where would the numeric string be? heres #6 working
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-22-2014
    Location
    Wales
    MS-Off Ver
    2003
    Posts
    7

    Re: index and match issue

    Sorry ignore that, basicly for whatever reason if I replace the name with a string of number's it won't display it, unless it also contains a letter.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match issue

    If you're needing to lookup numbers:

    =IF(ISNA(MATCH($E2,IF($A$2:$A$4=F$1,$B$2:$B$4),0)),"",INDEX($C$2:$C$4,MATCH($E2,IF($A$2:$A$4=F$1,$B$2:$B$4),0)))

    Still array entered.

+ 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. [SOLVED] Match Issue - Consolidate Columns of Data With Match/Index/etc?
    By excelsior123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 05:14 PM
  2. Index/Match with IF issue - I think?
    By jdb1981 in forum Excel General
    Replies: 4
    Last Post: 05-22-2014, 02:52 PM
  3. [SOLVED] Index and Match - VBA - Issue
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2014, 07:49 AM
  4. Index-Match Issue (I Think)
    By rormis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2012, 05:43 AM
  5. [SOLVED] Index and match issue
    By Excel-Access in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 08:25 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