+ Reply to Thread
Results 1 to 6 of 6

If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    Hello Excel gurus

    My googling is not up to scratch enough today to help me get a grip of what I'm after.

    I have a sheet that has several columns of data.

    I need to find the values in cells in Col C.

    I want to specify a set of searches that return values based on adjoining cells.

    Here's a similar example to what I'm after

    A B C
    1 Cat Breed Cat Height Number of cats
    2 Persian 10cm 72
    3 Persian 15cm 12
    4 Ginger 20cm 10
    5 Ginger 25cm 5


    So I want to say

    Where Breed = Ginger AND Height = 25cm return number of cats

    So it will send me C5 - 5

    I'm guessing it's a VLOOKUP / MATCH combo query of some kind, but I have no idea of the syntax or semantics.


    Can someone help me?

    Thanks in advance,

    Greg

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    Hi,

    This is one way...

    Enter the criteria in the green cells and result will show in the yellow one.
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    Amazingly lightning fast response! I thank you so much for your time. As you've probably guessed I'm not managing a DB of deformed cats, so I will try this with my live-fire data and report back on how it goes.

    Thanks again.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    If cats is your thing, who am I to judge?

    Let me know if you get stuck and need more help.

    S.

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Talking Re: If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    So I had to work out how you aliased the cell ranges (only worked it out after spotting your deliberate spelling mistake) but now I've cracked it.

    The Name Manager will make my life even easier as I can define named ranges for external sheets before they even exist.

    This is awesome. You've just upped my Excel game 100%. Cheers man.

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: If cell in Col A = x and adjoining cell in col B = y then return cell in Col C

    The spelling mistake was there to help you find your way with data ranges.... honest!

    Glad to be of help.
    Just shout if you need anything more.

+ 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