+ Reply to Thread
Results 1 to 11 of 11

Formula=IF((AND(A1>=1,A1<=300)),190)

  1. #1
    Registered User
    Join Date
    06-30-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    4

    Formula=IF((AND(A1>=1,A1<=300)),190)

    Hello,
    Im new around here, Im trying to make a formula that if A1 has a value between 1 and 300 then B2 equals 190, but so far is not working. I have office 2013.

    This is what I have done
    =IF((AND(A1>=1,A1<=300)),190)

    Thannks!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    Hi & welcome to the board
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    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,879

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    You are missing the false action of the statement.

    What do you want B2 to equal if the result of the And statement is false.

    The syntax is =If(criteria, true action, false action)
    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

  4. #4
    Registered User
    Join Date
    06-30-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    Thanks, That was fast. But dosenīt work

  5. #5
    Registered User
    Join Date
    06-30-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    Thanks, But didnt work

  6. #6
    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,879

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    Didn't work does not help us to help you. What do you want B2 to be if the result is false. Perhaps you need to provide a sample workbook with a before and after scenario mocked up.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    In what way doesn't it work?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    I agree with Alan above.

    You could also do a formula like:

    =IF(AND(A1>=1,A1<=300),190,"")

    Which would give a blank instead of zero.

    There is a chance that the stuff in A1 looks like a number but is really text . Then perhaps this would work for you.

    =IF(AND(VALUE(A1)>=1,VALUE(A1)<=300),190,0)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  9. #9
    Registered User
    Join Date
    06-30-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    If B2 is false it could show 0

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    could you answer my question in post#7

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula=IF((AND(A1>=1,A1<=300)),190)

    Are you sure that A1 does actually contain a number/value and not text that looks like a number?
    Test with =isnumber(A1)...false indicates text and we will need to convert it

    Aslo, an answer to some of the previously asked questions, would help, too
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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