+ Reply to Thread
Results 1 to 7 of 7

struggling with multiple logical statements

  1. #1
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    struggling with multiple logical statements

    Hi all.

    in each row I have 3 columns which might or might not contain the single character R.

    In another column I need to return an R if one (and only one) of those 3 columns has an R in it. If there are none at all I leave the cell blank, if there are 2 R's in the row I need to flag an error, eg the character E.

    I've struggled with this awhile, but am getting confused (it happens a lot).

    Can you help please?

    Thanx as always

    KK

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

    Re: struggling with multiple logical statements

    Hi,

    an attempt using non adjacent ranges: columns A-C-E could house R

    =IF((A1="R")+(C1="R")+(E1="R")=1,"R",IF((A1="R")+(C1="R")+(E1="R")>1,"E",""))

    Regards
    -----------------------------------------------------

    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 Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: struggling with multiple logical statements

    Hi and thanks, I will try it.

  4. #4
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: struggling with multiple logical statements

    Hi again & yes this works nicely, deep respect KK

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: struggling with multiple logical statements

    another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  6. #6
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: struggling with multiple logical statements

    Hi and this looks good as well, thx, KK

  7. #7
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: struggling with multiple logical statements

    Hi and yes it's good, and with the deepest respect, simpler.

+ 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. [SOLVED] Replacing too many logical statements in IF-ELSE Condition
    By ykobure in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2015, 08:32 AM
  2. Combining Multiple if statements using logical operators
    By arahant16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2014, 03:49 AM
  3. logical statements and minimum values
    By fpalmay in forum Excel General
    Replies: 1
    Last Post: 04-20-2009, 12:30 PM
  4. If Statement Logical Statements
    By klinrya in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2007, 03:31 PM
  5. Intervals as logical statements
    By xnadeau in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2005, 04:05 PM
  6. Logical ELSE statements
    By Ruth in forum Excel General
    Replies: 2
    Last Post: 06-23-2005, 11:05 AM
  7. [SOLVED] Logical Function - Multiple IF statements
    By vnsrod2000 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-04-2005, 08:06 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