Formula Referencing Columns By Date

R

Rob

Hi, I'm trying to get a formula to reference a column for values depending
on the corresponding date headers. My layout is below

In A2 is TODAY()
In J4 thru AJ4 is =IF(J8<>"",I4+1,"")
In I4 is 11/1/2009
In E7 is =J7/J28
In E8 is =J8/J28
In E9 is =J9/J28
Etc...

What I'd like to do is to have the formula look at A2 and find the
corresponding date in J4 Thru AJ4 so that it'll only use the numbers in a
given column that are derrived from today only.

As you can tell my formula is simple but I'm beginging to think what I am
looking for is a tad more.


Thanks in Advance,
Rob
 
J

Jacob Skaria

I am not sure I understood you query correctly.

The below will return the column index
=MATCH(A2,J4:AJ4,0)

Using the below two formulas you can refer to the 3rd row of the array
J4:AJ100 which is row number 6

=HLOOKUP(A2,$J$4:$AJ$100,3)
=INDEX($J4:$AJ$100,3,MATCH($A$2,$J$4:$AJ$4,0))



If this post helps click Yes
 
R

Rob

This formula works perfectly!

=INDEX($J4:$AJ$100,3,MATCH($A$2,$J$4:$AJ$4,0))

Thanks!!!!!!!
 

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