+ Reply to Thread
Results 1 to 3 of 3

function - cell value (text and numbers) number is between x and y?

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    function - cell value (text and numbers) number is between x and y?

    Hi,

    anyone can help me out of this. I need an approach towards a cell with both text and number to determine of the number is between a certain range and then display an "@" symbol.

    example:
    A1: "Michael - 6"
    The function needs to determine if the number content (6) is between bigger or equal to 2 and smaller than 10. If yes, then display an "@" symbol.

    I couldnt do it with FIND and a normal IF approach brings no luck since there is also text in the cell.

    Any idea? VBA can be an alternative...
    A2k

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: function - cell value (text and numbers) number is between x and y?

    Hi,

    Maybe: =IF(TRIM(RIGHT(A1,LEN(A1)-FIND("-",A1)))*1>=2,"@","")

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: function - cell value (text and numbers) number is between x and y?

    and a very big thanks goes to the Domski

    A2k

+ 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