+ Reply to Thread
Results 1 to 6 of 6

using if/or

  1. #1
    Registered User
    Join Date
    12-01-2015
    Location
    ballarat
    MS-Off Ver
    2013
    Posts
    85

    using if/or

    Hello,
    Hoping someone can assist me please with a query re the if/or command. One of the cells AB13 can either be filled with a name or #NA
    I wish to combine the following statements with the result going into AE13:
    If AB13= #NA
    or
    AB14>11

    With the result being
    If either of those are correct then 5000
    If none are correct AB14

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,240

    Re: using if/or

    =if(or(ab13="#na",ab14>11),5000,ab14)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: using if/or

    if AB13 = #NA error try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if AB13 = "#NA" value try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by jewelsharma; 01-10-2016 at 04:46 AM. Reason: typo

  4. #4
    Registered User
    Join Date
    12-01-2015
    Location
    ballarat
    MS-Off Ver
    2013
    Posts
    85

    Re: using if/or

    Hello,
    Thank you both for such a prompt response.
    The name in AB13 is checked against a list using a formula and if it is not there #NA ends up in the cell.
    So does this mean that it is an #NA error as in Jewelsharma's first example?
    I have not tried as yet but will there be any difference in treating the #N/A as a value "#N/A"

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: using if/or

    If the #N/A is an Excel error message, you will normally get a little green triangle in the top left of the cell. If this is the case, then use jewelsharma's first formula.
    If the #N/A is being generated 'manually' (that is, you've specified "#N/A" to be a result from a formula) then use the second formula.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: using if/or

    Happy to help. Please do mark the thread as SOLVED.

+ 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