+ Reply to Thread
Results 1 to 7 of 7

Need help using "OR" and "IF"

  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    4

    Need help using "OR" and "IF"

    =IF(C6>=0<=150,150000,IF(C6>=151<=160,158000))
    I Need to use "OR" but im not sure how.
    IF C6 is >=0 but <=150, then use 150,000
    IF C6 is >=151 but <= 160, then use 158,000.

    Please help!!!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need help using "OR" and "IF"

    Like this:


    =IF(OR(C6>=0,C6<=150),150000,IF(OR(C6>=151,C6<=160),158000))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    09-29-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    4

    Re: Need help using "OR" and "IF"

    Thank you!

    I tried that one, the value show as "FALSE"

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Need help using "OR" and "IF"

    -------------
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Registered User
    Join Date
    09-29-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    4

    Re: Need help using "OR" and "IF"

    daffodil11. Thanks a lot!!. I started from zero. I see I also was missing a comma.

    THANKS!!!!

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help using "OR" and "IF"

    If it's showing false, then it believes the value in C6 is either less than 0, or greater than 160 or text. I would bet on the last one. In a blank cell, type this formula

    =ISNUMBER(C6)

    If that's false, then Excel is storing your number as text. Can you upload the spreadsheet? (Go Advanced> Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need help using "OR" and "IF"

    No problem, glad we could help out.

+ 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: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 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