+ Reply to Thread
Results 1 to 3 of 3

If question involving 3 variables

Hybrid View

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    81

    If question involving 3 variables

    I have a question regarding the IF formula.

    What I am needing to do is this:

    If B21 equals any cell between A1:A12 enter what is found in E1
    If B21 equals A13 enter what is found in E3
    If B21 equals A14 enter what is found in E5

    I hope this is clear what I am needing.

    Thanks!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If question involving 3 variables

    Try

    =IF(COUNTIF(A1:A12,B21),E1,IF(B21=A13,E3,IF(B21=A14,E5,"")))

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If question involving 3 variables

    Try

    =IF(COUNTIF(A1:A12,B21),E1,IF(A13=B21,E3,IF(A14=B21,E5,"")))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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