Jul 03 2024 08:55 AM
Hello Community,
I am looking to have a SEQUENCE populating the values from a specific column. Example below:
The line one should start in Jan-2024, while the second in Sep-2024 and the third on Oct-2024.
How can I have the SEQUENCE to just start on a specific column? I already have another field in this table with the month that should start, so I could check if it is the same as the column, but I don't know how to achieve it.
Thanks for helping.
Jul 03 2024 09:57 AM
Hi @K_PR24
Not top clear to me so this might not be exactly what you expect. As you can see below I used 3 columns on the left to define the parameters per row: When to Start; For how many Months; The value for each month. With Dates in D1:X1:
in D2:
=IF((D$1:X$1 >= A2) * (D$1:X$1 < EDATE(A2, B2)), SEQUENCE(,B2 +XMATCH(A2,D$1:X$1) -1, C2,0), "")
Jul 04 2024 12:11 AM - edited Jul 04 2024 12:40 AM
Hi @Lorenzo
Thanks for sharing your experience. My rule currently is the following: =IF(L2=AZ1#, TEXT(SEQUENCE(1,VLOOKUP(Y2,Table9[#All],4,0)),"")&AA2, TEXT(SEQUENCE(1,VLOOKUP(Y2,Table9[#All],4,0)),"")&AA2)
The problem is that it is not starting populating from the column/month that I want. Each line is supposed to start the sequence in a different column (month). Any hints? Thanks.
Jul 04 2024 12:57 AM
Hi @K_PR24
Each line is supposed to start the sequence in a different column (month). Any hints?
With formulas I don't see an option. With Power Query, probably... but that won't be dynamic (a query can be configured to auto-refresh every n minute(s) though). If you're interested could you share a sample file as I'm not quite clear on your setup?
BTW, interesting to note you use VLOOKUP, not XLOOKUP
Jul 04 2024 06:21 AM - edited Jul 04 2024 06:22 AM
Hi @Lorenzo
Thanks for taking the time to reply.
I created the following formula, which is populating from the expected month, but only that month, not the following ones:
=IF((AZ$1:BW$1 = $L2),SEQUENCE(1,VLOOKUP($Y2,Table9[#All],4,0),$AA2,0),"")
If I try to use the >=, it mess up the values:
I noticed that the issue is with the IF function, but I am not sure how could I do different and still get the result I am looking for.
Thanks,
KP
Jul 09 2024 12:41 AM