+ Reply to Thread
Results 1 to 4 of 4

Using multiple arguments

  1. #1
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Using multiple arguments

    Hello,

    I have cell A3 as a drop down list & cell B3 as a drop down list.

    Each list contains 15 items.

    so in theory, there is 225 different combinations that A3 & B3 could show.


    I need a formula (or another easier method) for these combinations..

    eg;

    =IF(A3="item1" AND B3 = "item1","green book",IF(A3="item1" AND B3="item3","Red book",IF(........................etc


    How do i check 2 criteria to then return a true or false?

    I have a table ready which will look similar to this:

    ITEM1 ITEM1 GREEN BOOK
    ITEM1 ITEM2 YELLOW BOOK
    ITEM1 ITEM3 RED BOOK
    ITEM1 ITEM4 BLUE BOOK
    ITEM1 ITEM5 BLACK BOOK
    .
    ..
    ...
    ITEM15 ITEM1 GREEN CASE
    ITEM15 ITEM2 YELLOW CASE
    .
    etc etc..


    please help
    Last edited by Robotacha2010; 06-21-2011 at 04:18 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Using multiple arguments

    You can do this with helper columns and VLOOKUP.

    In the attachment, the helper cells are in yellow and concatentate the two individual values into a composite. The composite value is then used for look up.
    Attached Files Attached Files
    Martin

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

    Re: Using multiple arguments

    i'd use an index match approach with all combinations listed
    see attached
    Attached Files Attached Files
    "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

  4. #4
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Using multiple arguments

    Both of them ways worked great for me. exactly what I was looking for.

    Once you jogged my memory and I saw 'validaton list' all my advanced excel training course came flooding back!

    been a while since Ive used it and my memory aint the best ( I fill it with useless, random stuff!)

    Ive even implemented a time based VLOOKUP aswell, which will diplay different data based on the date & time, got this idea from a thread recently about the NOW function.



    Thankyou both,


    regards,

    Mike

+ 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