+ Reply to Thread
Results 1 to 5 of 5

IF formula with multiple variables

Hybrid View

agu666 IF formula with multiple... 03-11-2010, 07:50 PM
ConneXionLost Re: IF formula with multiple... 03-11-2010, 08:38 PM
tony h Re: IF formula with multiple... 03-11-2010, 08:57 PM
teylyn Re: IF formula with multiple... 03-11-2010, 09:40 PM
agu666 Re: IF formula with multiple... 03-12-2010, 09:39 AM
  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 Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF formula with multiple variables

    Hi,

    Welcome to the forum!

    Try this in cell D1:

    =CONCATENATE(C1,C2)
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

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

    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


    click on the * Add Reputation if this was useful or entertaining.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: IF formula with multiple variables

    Tony, the OP might be more comfortable with an .xls file

  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!

+ 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