+ Reply to Thread
Results 1 to 5 of 5

between numbers formula

  1. #1
    Registered User Pivotrend's Avatar
    Join Date
    12-19-2003
    Posts
    47

    between numbers formula

    hello

    i have the number 45.12 in A1
    & the number 45.20 in A2
    & 45.18 in C1

    i want a formula that gives me "1" if the number in C1 is between the numbers in A1 & A2 & gives "0" if not

    thank you

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =(C1>=A1)*(C1<=A2)

  3. #3
    Registered User Pivotrend's Avatar
    Join Date
    12-19-2003
    Posts
    47
    thanx

    & if i wanted it to show nothing ""
    if not between the numbers what do i use ?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =IF(AND(C1>=A1,C1<=A2),1,"")

  5. #5
    Registered User Pivotrend's Avatar
    Join Date
    12-19-2003
    Posts
    47
    thank you.

+ 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