+ Reply to Thread
Results 1 to 10 of 10

Formula to spill Days and dates

  1. #1
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Formula to spill Days and dates

    Hello

    I was wondering if it is possible to spill data (days/dates) in ranges "A5:B11" & "A15:B21" from one formula living in B5. It would take the start date from whatever is entered in B1.

    Thank you

    Jay
    Attached Files Attached Files
    Last edited by Jay325; 04-08-2024 at 10:31 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,729

    Re: Formula to spill Days and dates

    Not in ONE, no, because there is manual data in the way, but in TWO:

    =SEQUENCE(7,,B1,1)

    and:

    =SEQUENCE(7,,B1+7,1)
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Re: Formula to spill Days and dates

    Thank you ALiGW!. I was wondering if it is possible to pull days of the week (A5:A11 & A15:A21) from the dates by adding to the formulas in B5 and B15.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,873

    Re: Formula to spill Days and dates

    Since the day of the week is just the presentation (same data), you could use the same formula Ali gave you in column A (in other words, in A5 enter:
    =SEQUENCE(7,,$B$1,1)
    (you could also just put this in A5)
    =B5#

    then format the cell by choosing "Custom" and in the "Type" field, enter ddd

    see attached.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Formula to spill Days and dates

    If you remove the values in B5:B21, but leave the formatting, then this single formula in cell B5 should do what you asked for...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Re: Formula to spill Days and dates

    Thank you for showing me that Gregb11.

  7. #7
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Re: Formula to spill Days and dates

    Thank you for showing me that Rick take care.

  8. #8
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Re: Formula to spill Days and dates

    Hi Rick is there a way to add to your formula in B5, to show days of the week in A5:A11 & A15:A21?

  9. #9
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Formula to spill Days and dates

    No, you cannot have a formula in cell B5 that puts values in Column A (at least I do not know a way to do that); however, you can clear the contents in A5:B21 (but leave the formatting as is) and put this formula in cell A5 to fill out your table...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    BUT, the formatting of the text "Week#2" (Center Across Selection) will not be retained. So if you wish to do this with a single formula (which I really do not see a need for... there is nothing wrong with two separate formulas, one for each week), you will have to put the text "Week#1" and "Week#2" in Column A.

  10. #10
    Registered User
    Join Date
    02-25-2024
    Location
    Canada
    MS-Off Ver
    Office 365 V2401
    Posts
    33

    Re: Formula to spill Days and dates

    Thank you Rick

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 07-19-2022, 06:16 AM
  2. Replies: 5
    Last Post: 07-14-2022, 05:29 AM
  3. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  4. Replies: 10
    Last Post: 02-19-2019, 03:28 AM
  5. Formula to calculate days, dates
    By matthewhinds in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2014, 01:16 AM
  6. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  7. What is the Formula for Days remaining between 2 dates?
    By Fayt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2010, 11:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1