+ Reply to Thread
Results 1 to 9 of 9

If and or query (Office 365 - Latest Excel)

  1. #1
    Registered User
    Join Date
    05-20-2022
    Location
    Cheshire
    MS-Off Ver
    11
    Posts
    4

    If and or query (Office 365 - Latest Excel)

    Hi All

    Tried my best to solve this with no joy wondering if someone could help me solve this - please.

    IF CELL B24 is 500000 and less than 750000 and Cell B28 is >2.25 return "FAIL" if not "PASS",
    and IF CELL B24 is 750000 and less than 10000000 and Cell B28 is >2.5 return "FAIL" if not "PASS"
    and IF CELL B24 is 1000000 or > and Cell B28 is >3 return "FAIL" if not "PASS"
    Last edited by Robert Hulse; 05-20-2022 at 01:56 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: If and or query

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version of Excel, but indicates your Windows version.
    Thanks
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: If and or query (Office 365 - Latest Excel)

    Most straightforward:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    What do you want to happen if B4 is less than 500.000? This formula will give you PASS.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    05-20-2022
    Location
    Cheshire
    MS-Off Ver
    11
    Posts
    4
    Thanks, when i paste it in to the cell is doesnt work?
    Last edited by AliGW; 05-23-2022 at 03:56 AM. Reason: PLEASE don't quote unnecessarily!

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: If and or query (Office 365 - Latest Excel)

    While it was nice of you to place your version in the title, it is most beneficial that you place it in your profile settings so that it is available every time you log into this site. Additionally, the term "doesn't work" doesn't help us to help you resolve the issue. Did it give you a result that is incorrect. Please amplify. Also, Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: If and or query (Office 365 - Latest Excel)

    Quote Originally Posted by Robert Hulse View Post
    Thanks, when i paste it in to the cell is doesnt work?
    It works for me. When it doesn't work: what are the values in B24 and B28, what result are you getting, and what result are you expecting?

  7. #7
    Registered User
    Join Date
    05-20-2022
    Location
    Cheshire
    MS-Off Ver
    11
    Posts
    4

    Re: If and or query (Office 365 - Latest Excel)

    Thanks Jeff, that works - legend.

  8. #8
    Registered User
    Join Date
    05-20-2022
    Location
    Cheshire
    MS-Off Ver
    11
    Posts
    4

    Thumbs up Re: If and or query (Office 365 - Latest Excel)

    All sorted now, thanks for everyone's help :-)

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,727

    Re: If and or query (Office 365 - Latest Excel)

    No - not all sorted yet.

    You have not yet updated your forum profile as requested in posts #2 and #5 - please do this NOW.

    Please read our rules about acceptable thread titles before posting here again - your title should tell us WHAT you are trying to do (not HOW) and not be generic - the title in this thread does not fit the bill, I am afraid.

    Finally, if that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  2. Refresh all Power Query Pivots performing only 1 Query and stops
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2019, 04:49 AM
  3. Replies: 0
    Last Post: 03-22-2016, 05:14 PM
  4. Replies: 1
    Last Post: 09-08-2015, 08:12 PM
  5. Replies: 2
    Last Post: 02-01-2013, 04:21 PM
  6. Problem with selecting range with in query table after query refresh
    By shooter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2012, 11:55 AM
  7. Web Query - Change a word in query to form a new query
    By scottymelloty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 04:13 AM

Tags for this Thread

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