Results 1 to 8 of 8

Parsing a string into numeric values

Threaded View

  1. #1
    Registered User
    Join Date
    03-07-2004
    Location
    St. John's, NFLD
    Posts
    11

    Parsing a string into numeric values

    Hi,

    Its been a long while since I've done much with excel/VBA. I'm wondering if anybody could help point me in the right direction.

    The user enters a series of numeric values (comma seperated) into a text box called txtmeasures on a form.

    These values are all stored as a string in a variable called 'txtval'.

    I want to be able to take each individual value stored in that string and compare it to a range.

    The range is pre-determined based on a previous selection from a dropdown box.

    The range can appear as any of the three scenarios below:

    > X

    < X

    X < Y < Z

    Where X and Y and Z are integers


    A calculation is then carried out based on the following:

    X = [Sum only those values that fall within the specified range] / [Sum all entered values]

    My real issue comes from parsing those values stored in 'txtval' and figuring out how to store and compare them to the range and thus obtaining the result of my calculation.

    If I can get any help that would be greatly appreciated.

    Thank you!
    Last edited by Excel-erate2004; 06-25-2007 at 07:46 PM.

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