+ Reply to Thread
Results 1 to 4 of 4

look up value in column

  1. #1
    Registered User
    Join Date
    08-13-2008
    Location
    Australia
    Posts
    3

    look up value in column

    I have a spreadsheet of data and I have one column sorted from highest to lowest number. From the top of my spreadsheet I want to search down this column till I get to the first instance of the number 1 or less, and then stop.

    I can't use the value of 1 to search for, as sometimes the first number less than 1 might be 0.02, or 0.01, or .....

    So using VBA, I can select the first cell, Q2, but how do I check the value of this cell =3,and if not, move on to Q3, Q4 etc.

    Thanks,

  2. #2
    Registered User
    Join Date
    08-13-2008
    Location
    London, UK
    Posts
    8
    You need a loop and to use offset to move you down a line.
    Please Login or Register  to view this content.
    Last edited by royUK; 08-13-2008 at 08:23 AM.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    lauraGB, please use Code Tags when posting code.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try

    Please Login or Register  to view this content.

+ 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