geospatial
Active Member
- Joined
- Sep 2, 2008
- Messages
- 290
I have an worksheet that does a few things. First in Cell "A1" I have the formula =if(Sheet1!$B$1=1,MIN(H6:H36),if(Sheet1!$B$1=2,MIN(H37:H64),"")
Column H is a list of dates beginning with "H6" at 1-Jan. So basically if in Cell "B1" I either have the number 1 or 2. If it is 1 it finds the first date of January, and if it is 2 it is the first date of February.
What I really need is a formula to go into Cell "A2" that would look at Cell "A1" find the date and then make that date a number depending on the day of year. So if "A1" is 1-Jan then in cell A2 it would show a 1, if it is 2-Jan it would show a 2 and so on.
Column H is a list of dates beginning with "H6" at 1-Jan. So basically if in Cell "B1" I either have the number 1 or 2. If it is 1 it finds the first date of January, and if it is 2 it is the first date of February.
What I really need is a formula to go into Cell "A2" that would look at Cell "A1" find the date and then make that date a number depending on the day of year. So if "A1" is 1-Jan then in cell A2 it would show a 1, if it is 2-Jan it would show a 2 and so on.