+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Return all values based on 2 variables

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Magnolia, TX
    MS-Off Ver
    Office 365
    Posts
    10

    Return all values based on 2 variables

    I want to return a list of names into one cell based on 2 variables preferably separated by commas and spaces. Any help is appreciated.
    Thanks,
    Lee

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Return all values based on 2 variables

    You will have to do a lot better job of explaining what you want. Where are the names coming from? Where are the 2 variables? Is this supposed to be a formula or a UDF() or what?
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Registered User
    Join Date
    07-24-2010
    Location
    Magnolia, TX
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Return all values based on 2 variables

    I have the variables in columns A and B with the list to return in column C to be returned to cell C40. I want to return a list of caladiums based on color and leaf shape. Column A has the colors designated by P,R,W, and Y for pink, red, white and yellow. Column B has the leaf shape with S for strap and F for fancy. Column C has the different variety names. I have formulas to show quantity, sales amount, average price and percentages based on color and leaf shape but wanted to list the varieties that made up each color and leaf shape.
    Thanks,
    Lee

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Return all values based on 2 variables

    Hi Aggie81;

    I think this can be done with a UDF(). I can write it for you. I would call it "ListVarieties". I would need a better description of the column contents, something like this:
    Please Login or Register  to view this content.
    You say you want the results in C40. What cells would contain the choice you want the List for?

    Say you select a Color in C38, and you select a Shape in C39. Then in C40 you would enter the formula =ListVarieties(C38,C39). C40 would automatically change when you changed C38 or C39.

    If that sounds like what you want, then provide a sample of your columns.

+ 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