+ Reply to Thread
Results 1 to 6 of 6

Inbetween formula help required

  1. #1
    Registered User
    Join Date
    01-28-2016
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    4

    Inbetween formula help required

    Hi there. Can you please help me with a formula?

    I want a cell to return the word "Write-Off" if a cell is between -$1 and $1. However the formula that I have doesn't work.

    This is the formula I have created that doesn't work =IF(AND(B2>1, B2<-1), "WRITE OFF", "").

    Thank you in advance.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Inbetween formula help required

    You just have the B2's reversed:

    =IF(AND(B2>-1,B2<1),"WRITE OFF","")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Inbetween formula help required

    AND(B2>1,B2<-1) always return FALSE
    i think it should be:
    =IF(AND(B2>-1,B2<1)"WRITE OFF","")
    Or
    =IF(ABS(B2)<1,"WRITE OFF","")
    Quang PT

  4. #4
    Registered User
    Join Date
    01-28-2016
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    4

    Re: Inbetween formula help required

    That worked! Thank you so much

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Inbetween formula help required

    Quote Originally Posted by Tony Valko View Post
    You just have the B2's reversed:

    =IF(AND(B2>-1,B2<1),"WRITE OFF","")
    You could also try =IF(ABS(B2)<=1,"Write Off","")

    If you want the value 1 to be included, Tony's formula needs to be changed to =IF(AND(B2>=-1,B2<=1),"WRITE OFF","")

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Inbetween formula help required

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this 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)

Similar Threads

  1. [SOLVED] Vba to add 4 columns inbetween data
    By webber15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2015, 05:04 PM
  2. [SOLVED] if lessthan greater than inbetween
    By kronikjb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-22-2015, 05:57 AM
  3. Inbetween formula with several variables
    By lhernandez900 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-19-2013, 03:11 AM
  4. [SOLVED] Extracting characters inbetween [ ]
    By CFlack8472 in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 12:11 PM
  5. VBA fill inbetween two points
    By 0mgatr33 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2012, 01:56 AM
  6. =sum inbetween 2 dates used in v lookup
    By Dave_A in forum Excel General
    Replies: 1
    Last Post: 03-02-2007, 10:44 PM
  7. [SOLVED] How can I add rows inbetween?
    By dhjacha in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2006, 03:10 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