![]() |
|
#1
|
|||
|
|||
![]() Hello, I’m looking for a formula (or vba) to fill in a range of years. For example if A1 is 1995-2004 then B1 would be 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004. If A2 is 1968-1972 then B2 would be 1968 1969 1970 1971 1972. Thanks |
#2
|
||||
|
||||
![]()
Is there a reason why you should want different years in the same cell?
|
#3
|
|||
|
|||
![]()
Hello, thanks for responding. I need to create a field that can be searched from any one of the years in the range. The field to be searched will not be in Excel.
|
#4
|
||||
|
||||
![]()
In the attached, update your table in column A, then right-click the table in column C and choose Refresh.
|
#5
|
|||
|
|||
![]()
What the .... How did you make that?? I don't see any VBA code, but I also don't see any Formulas...
|
#6
|
||||
|
||||
![]()
Right-click the result table, choose Table then Edit query.
|
#7
|
|||
|
|||
![]()
Very nice! I didn't even know that was a thing...
|
#8
|
|||
|
|||
![]()
For those having access to TEXTJOIN and SEQUENCE:
=TEXTJOIN(" ",TRUE,TRANSPOSE(SEQUENCE(RIGHT(A2,4)-LEFT(A2,4)+1,, --LEFT(A2,4)))) |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Benali | Excel | 6 | 05-05-2020 03:47 AM |
Formula to calculate fill need between two circles | wolfgrrl | Excel | 2 | 07-08-2019 04:10 AM |
![]() |
14spar15 | Excel Programming | 9 | 03-19-2018 01:15 AM |
Formula for number sequence | 14spar15 | Excel Programming | 4 | 03-18-2018 07:00 PM |
![]() |
jyfuller | Excel Programming | 3 | 02-27-2013 10:32 PM |