+ Reply to Thread
Results 1 to 8 of 8

Help with an IF OR Function

  1. #1
    Registered User
    Join Date
    11-13-2011
    Location
    England
    MS-Off Ver
    Office 2019
    Posts
    33

    Help with an IF OR Function

    Hi I have two columns of data that contain values from 1 to 9 as well as the value "U". In a third column, i'm trying to determine whether a cell is equal to or above 7 in the either of the columns and if it is enter an "e" and if not " enter a "-". I am using the formula below however if the it is still it is not working in that when a "U" is present it still enters an "e" instead of a "-". I have attached an example and a fourth column of what it should be showing. If someone could help i would really appreciate it.

    =IF(OR(A2>=7,B2>=7),"e",IF(OR(A2="U",B2="U"),"-","-"))
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Help with an IF OR Function

    Try this,

    =IF(OR(N(A2)>=7,N(B2)>=7),"e",IF(OR(A2="U",B2="U"),"-","-"))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,883

    Re: Help with an IF OR Function

    Try

    =IF(OR(AND(N(A2),A2>=7),AND(N(B2),B2>=7)),"e","-")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    11-13-2011
    Location
    England
    MS-Off Ver
    Office 2019
    Posts
    33

    Re: Help with an IF OR Function

    Hi they both work thanks! If you don't mind, so that i can understand it, what does the N do before the cell references?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Help with an IF OR Function

    Incidentally, can you check (and amend, if needed) your profile to show your current Excel product & (if O365) version?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,622

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Help with an IF OR Function

    If you DO have a recent version of O365, this can do the lot in one calculation:

    =MAP(A2:A11,B2:B11,LAMBDA(x,y,IF(OR(AND(N(x),x>=7),AND(N(y),y>=7)),"e","-")))

    N converts text to blank and leaves numbers as numbers.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-13-2011
    Location
    England
    MS-Off Ver
    Office 2019
    Posts
    33

    Re: Help with an IF OR Function

    Great thanks! I don't have Office 365 only Office 2019

    Thanks
    Last edited by holykimura; 03-09-2023 at 06:38 AM.

+ 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: 1
    Last Post: 02-10-2023, 10:18 AM
  2. [SOLVED] Left function, Right Function, or Mid Function to extract values to three decimal places
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2023, 03:22 AM
  3. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  4. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  5. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  6. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

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