Find first positive value in a column

G

Guest

I am trying to create a formula that will:
1. Search a column of numbers to find the first row with a positive number
2. Once found, I need to reference another column on the same row which
contains a date.
3. Finally, subtract that date from a fixed date (Jan 1, 2007) to end up
with a number.

I'm fairly new to Excel and wonder if this can be done with a formula or if
I need to get into VB script (hope not) .
Any help would be appreciated.
 
T

T. Valko

Try this array formula** :

A1 = 1/1/2007

B5:B20 = numbers
D5:D20 = dates

=A1-INDEX(D5:D20,MATCH(TRUE,A5:A20>0,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top