+ Reply to Thread
Results 1 to 2 of 2

problems doing a lookup because or order

  1. #1
    Registered User
    Join Date
    01-03-2007
    Posts
    31

    problems doing a lookup because or order

    I have dates in column A, and a series of numbers in column B, lets say temperature, with some blank cells representing zeros. The dates are in ascending order. I want to determine the first non zero temperature, and the corresponding date. The dates MUST remain in ascending order
    thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520
    Assuming dates within A1:A10, with blank cells/temperatures within B1:B10

    Place in say, C1, then array-enter the formula by pressing CTRL+SHIFT+ENTER (instead of just pressing ENTER):
    =INDEX(A$1:A$10,MATCH(TRUE,$B$1:$B$10<>"",0))
    Copy C1 to D1. Format C1 as date.

    C1 returns the date corresponding to the 1st non blank cell within B1:B10, while D1 returns the value of that 1st non blank cell, ie the temperature.

    Adapt the ranges to suit ..
    Max
    Singapore

+ 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