How to add Columns in a dynamic range?

Lacan

Active Member
Joined
Oct 5, 2016
Messages
260
Office Version
  1. 365
Platform
  1. Windows
Hello Guys,

Would like to add Columns (with days of week) in a dynamic range.
Can you please help?
Example below.
Thank you very much.👍👍🍻

Fórmula Principal para o Ficheiro VDF.xlsm
ABCDEFGHIJKLMNOPQR
1
2ORIGINAL
310-fev11-fev12-fev13-fev14-fev15-fev16-fev
4
5END RESULTS
610-fevSEG11-fevTER12-fevQUA13-fevQUI14-fevSEX15-fevSÁB16-fevDOM
7
8
9
10
11
12
Folha14
Cell Formulas
RangeFormula
C3:I3C3=TRANSPOSE(SEQUENCE(7,,TODAY()-WEEKDAY(TODAY(),2)+1))
D6,P6,N6,L6,J6,H6,F6D6=UPPER(TEXT(C6,"ddd"))
Dynamic array formulas.
 
How about
Excel Formula:
=LET(a,TOCOL(C3#),TOROW(HSTACK(a,TEXT(a,"ddd"))))
 
Upvote 0
Another option without using C3#
Excel Formula:
=LET(a,SEQUENCE(7,,WORKDAY.INTL(TODAY()+1,-1,"0111111")),TOROW(HSTACK(a,TEXT(a,"ddd"))))
 
Upvote 0
Solution

Forum statistics

Threads
1,226,771
Messages
6,192,919
Members
453,767
Latest member
922aloose

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top