+ Reply to Thread
Results 1 to 5 of 5

Using the if function

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Using the if function

    Afternoon,

    I am struggling with the If function. I am trying to look into cell A2, and if the values C+,B-,B,B+,A-,A,A+ or A* are present are want it to return True or Yes, and if not False or No.

    Any help would be gratefully appreciated.

    Thanks
    Last edited by Cmorgan; 05-20-2014 at 08:46 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Using the if function

    Hi,

    maybe

    Please Login or Register  to view this content.

    in order to get TRUE or FALSE

    Regards
    Last edited by canapone; 05-20-2014 at 07:23 AM. Reason: OR
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Using the if function

    Hi again,

    more or less same formula in order to get "YES" or "NO"

    Please Login or Register  to view this content.
    Hope it helps

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Using the if function

    you could also try in B1
    =SUMPRODUCT(--(A1={"C+";"B-";"B";"B+";"A-";"A";"A+";"A*"}))>0
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Using the if function

    you could also try in B1
    =SUMPRODUCT(--(A1={"C+";"B-";"B";"B+";"A-";"A";"A+";"A*"}))>0

    or go to formula tab--> Name manager ---> new name ---> give new name as List
    and in the source copy paste ={"C+";"B-";"B";"B+";"A-";"A";"A+";"A*"}

    then use =SUMPRODUCT(--(A1=list))>0

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Using the if function

    Hi,

    Sample.xlsx

    I think will be more easy.

    Punnam

  7. #7
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Using the if function

    Many thanks.

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Using the if function

    You are welcome and Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  2. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  3. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 PM

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