+ Reply to Thread
Results 1 to 3 of 3

VBA Find method to actually find the row containing THE RANGE for specified integer

  1. #1
    Registered User
    Join Date
    01-26-2009
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    VBA Find method to actually find the row containing THE RANGE for specified integer

    I have a spreadsheet with two columns, E and F. E is the "from", F is the "to", as in - a range.

    So in one row, for example, column E will say 500 and column F will say 510.

    The unfortunate user who needs to find the row corresponding to "508" will have to visually identify this row where the From and To columns, when taken as such, constitute the range.

    I've looked at VB code for Find method, looked at finding a number WITHIN a range, banged my head against my desk thinking of how to use VLOOKUP to accomplish this, but can't seem to do it =-

    I want the user to be able to type "508", and be taken to the row where column E is the lower limit of the range and column F is the upper limit of the range - WITHIN WHICH FALLS THE SEARCHED-FOR ITEGER, "508"

    ahhh! please help

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: VBA Find method to actually find the row containing THE RANGE for specified integ

    See if this gives you any ideas.

    Your problem may be more complicated than that, but if so, you didn't really specify many conditions. If that doesn't work, let me know and we'll figure something out!

    mew!

    EDIT:
    Second attachment is a vertical version.
    Last edited by mewingkitty; 01-26-2009 at 06:51 PM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: VBA Find method to actually find the row containing THE RANGE for specified integ

    Also, if you're dead-set on VBA, what you're looking for is

    cells(x, y).address

    as opposed to cells(x, y).value

    which is the default if left as cells (x, y)

+ 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