+ Reply to Thread
Results 1 to 6 of 6

Lookup ..... with a twist perhaps?

  1. #1
    Registered User
    Join Date
    03-09-2014
    Location
    Greater Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    12

    Question Lookup ..... with a twist perhaps?

    Hi,

    I wonder if someone could help me please.....my brain is about to implode.

    I've drafted out a very simplified version of what I require (see attached spreadsheet with three tabs).

    Basically, I need column E on the "Results" tab to give me the relevant "Acc CC" from the "Table" tab, but this could be different, depending on the combination of information in rows C & D.

    I don't know if I've included enough of an explanation here, so please feel free to shout at me if necessary

    Many thanks in advance,

    HtC
    Attached Files Attached Files

  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
    53,048

    Re: Lookup ..... with a twist perhaps?

    Try this, copied down...
    =INDEX(Table!$C$3:$E$12,MATCH($C2,Table!$A$3:$A$12,0),MATCH($D2,Table!$C$2:$E$2,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
    03-09-2014
    Location
    Greater Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Lookup ..... with a twist perhaps?

    I can't thank you enough! It works perfectly! .......

    I will now go away and study that formula carefully, just to see if I can finally try to understand Index Match!

    Thank you!!

  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
    53,048

    Re: Lookup ..... with a twist perhaps?

    To give you a nudge in the right direction...
    Dont consider INDEX/MATCH as 1 formula, it is actually 2 (or 3 in this case) seperate functions

    INDEX() syntax is =index(criteria-to-find,row-to-search-in,column to search in)
    so something like =INDEX(A1:J10,3,5)
    will return the contents of E3 (row 3, column 5)
    Didnt even use MATCH, did we?

    Now, to find the "3" or the "5", we would use the MATCH function...
    MATCH syntax is...=match(criteria-to-find,column-to-search-in,0) 0 returns exact match
    =MATCH("cc",A1"A10,0)
    If "cc" is in A3, this will return 3
    (to find the column number, we use the same thing, just change the range=MATCH(criteria-to-find,row-to-search-in,0)
    =Match("zz",A1:J1,0)
    If "zz" is in E1, then this will return 5

    Put them all together and you have...
    =INDEX(A1:J10,MATCH("cc",A1:A10,0),MATCH("zz",A1:J10))

    Does that make sense?

  5. #5
    Registered User
    Join Date
    03-09-2014
    Location
    Greater Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Lookup ..... with a twist perhaps?

    It certainly looks like something I can practice with, to try to understand it better. I shall give it a try in the morning hopefully. It's almost 1am here now, so I ought to shut down and get some zz myself!

    Many thanks once again..... I love excel (workmates think I'm potty!), but have so much to learn!

  6. #6
    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
    53,048

    Re: Lookup ..... with a twist perhaps?

    Happy to help, and welcome to the potty brigade lol

+ 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. Min If with a Twist
    By david0985 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2014, 06:21 PM
  2. [SOLVED] Multiple lookup with a twist
    By duguerre22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2012, 06:25 AM
  3. #div/0! with a twist
    By Bjordion in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2011, 03:53 PM
  4. Sum with a twist
    By ace4andy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-26-2008, 03:08 AM
  5. Postcode lookup with a twist.
    By Mad101daN in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-01-2007, 11:47 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