+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    03-11-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2007
    Posts
    6

    IF formula with multiple variables

    Hello,

    I'm relatively new with Excel so I'm having problems with IF formula.

    I created two drop-down menus. One with 5 values and the other with 3 values. So there's 15 variations all together. For every variation there's a certain value and I need to show it in one cell.
    In very simple words it would look like: If C1=dog and C2=cat, then D1=dogcat. If C1=mouse and C2=cat, then D1=mousecat and so on.
    How can I accomplish this? I guess I need one big function? Wouldn't here be too many IF's ?

    Thanks in advance
    Last edited by agu666; 03-12-2010 at 08:33 PM.

  2. #2
    Forum Moderator ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2003 & 2010
    Posts
    1,797

    Re: IF formula with multiple variables

    Hi,

    Welcome to the forum!

    Try this in cell D1:

    Code:
    =CONCATENATE(C1,C2)
    Cheers,
    Docendo discimus.

    Please consider:
    • Thanking those who helped you. Click the reputation icon in the contributor's post and add Reputation.
    • Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: IF formula with multiple variables

    Hi,
    as ConneXionLost said you can use concatenate if you are just jining the values together. My guess from your post is that you have something more complicated.

    On the attached sheet I have given two possible solutions:
    1. A long if statement but this will get unwieldy
    2. An illustration of using a table to lookup the answer

    Regards and welcome.
    Attached Files Attached Files


    Hope this was useful or entertaining.

  4. #4
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: IF formula with multiple variables

    Tony, the OP might be more comfortable with an .xls file
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  5. #5
    Registered User
    Join Date
    03-11-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: IF formula with multiple variables

    Thank you so much Tony h. That table version really is what I needed. Big thanks again!

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.2.0