Help with formula

G

Guest

Is there any way to do this.
I have a column of dates. The dates are at regular weekly intervals starting
from 1990 until now and they are always a Friday. In a separate worksheet I
would like a formula in a cell to return the row number of the first date
that appears for 1990.
Another cell will have the row number of the first date that appears for
1991 and so on for all years up to now. Could anybody suggest an appropriate
formula.
Thank you in advance.
 
G

Guest

Ben,

On each row of Sheet1 with your dates put the row number. The =ROW()
function will do nicely.

For the rest of this I'll assume that your dates are in Sheet1 column A
and the row numbers are in column B.

On Sheet2 in column A create a list of years, 1990 through 2005.

In column B, create the first day of each year along the lines of this
formula
=DATE(A2,1,1), copying the formula down alongside your list of years.

Then in Sheet2 column C use the VLOOKUP function to lookup the row
numbers from Sheet1. It should look something like this.

=VLOOKUP(B2,'Sheet1'A:B,2,TRUE)
 

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

Similar Threads

Excel Formula for years and months 2
Compiling to one sheet 2
Formula Excel 2
repeating functions 2
Offset Formula or Better Way 1
Excel Formula to update itself automatically. 10
Formula help 2
countif conditional 1

Top