+ Reply to Thread
Results 1 to 7 of 7

Evaluate numbers in a text-number string

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    New York, NY
    MS-Off Ver
    Office for Mac 2011
    Posts
    5

    Evaluate numbers in a text-number string

    Hi there,

    I am using Webtrends to identify browser sizes. It provides output in the following form:

    Browser Size Visits
    1000x800 2000
    1024x660 3000
    300x400 4000
    etc.

    I want to easily be able to enter a pixel size (eg, "600") and determine whether the Left number, Right Number, or Either number in the text string in the Browser Size column (left or right of the "x") is greater than the number I enter. If the numbers in the text string are greater than the number I enter, it should display the data in the column to the right (Visits). If not, it should display 0.

    For example, if I enter "600", I should see 2000 visits, 3000 visits, and 0 in the third row. Please see attached sheet and let me know if you have any questions. Thanks!

    Text-Number Excel File.xlsx

  2. #2
    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,946

    Re: Evaluate numbers in a text-number string

    Not sure if the last part in these is what you want, so change it as needed.

    Left =
    =IF($B$2<--LEFT(A8,FIND("x",A8,1)-1),1,0)
    Right =
    =IF($B$2<--RIGHT(A8,LEN(A8)-FIND("x",A8,1)),1,0)
    Both =
    =IF(AND($B$2<--LEFT(A8,FIND("x",A8,1)-1),$B$2<--RIGHT(A8,LEN(A8)-FIND("x",A8,1))),1,0)
    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

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Evaluate numbers in a text-number string

    in C8

    =IF(LEFT(A8,FIND("x",A8)-1)+0>=B$2,1,0)

    In D8

    =IF(RIGHT(A8,LEN(A8)-FIND("x",A8))+0>=$B$2,1,0)

    In E8

    =IF(SUM(C8:D8)=2,1,0)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Evaluate numbers in a text-number string

    This is my interpretation of your problem:

    Left:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Either side:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    06-25-2014
    Location
    New York, NY
    MS-Off Ver
    Office for Mac 2011
    Posts
    5

    Re: Evaluate numbers in a text-number string

    Brilliant - these all appear to work. I simply had to swap out the Value If True with the cell information I wanted to display. Thanks!

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

    Re: Evaluate numbers in a text-number string

    Happy to help and thanks for the feedback

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Evaluate numbers in a text-number string

    Thanks for the feedback.

    Good luck with the solution of your choice.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  2. Picking out text and numbers within a number string
    By J_007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2012, 12:57 PM
  3. Extracting a number (part of a series of numbers) from a text string
    By dannyjoer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-09-2012, 10:17 AM
  4. Extracting numbers from a combined text & number string
    By astrikor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2007, 08:45 AM
  5. Evaluate text string as a function
    By benb in forum Excel General
    Replies: 3
    Last Post: 07-19-2006, 09:45 AM

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