+ Reply to Thread
Results 1 to 5 of 5

Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

  1. #1
    Registered User
    Join Date
    07-21-2020
    Location
    Brandon, MS
    MS-Off Ver
    MS 2013
    Posts
    6

    Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

    I am new to this forum and I have searched low and high through here and google searches. I can not for the life of me figure out how to create/use a formula to where I can, on one row do weeks (1-52/3 weeks but dated). I.E. E/F 5, G/H5 merged cells and so forth. Example of dates would be: In row e/h5 1/1/2021-1/2/2021, 1/3/2021-1/9/2021, 1/10/2021-1/16/2021, .... to 12/26/2021-12/31/2021. I am using these rows to show a weeks worth of income/expenses in one column. I have tried to do 2-3 continuous cells and trying to fill beyond but it skips to 2022 then 2023 and so forth. I hope that my explanation is sound enough, if not poke and prod my blank, caffeine deprived brain.
    Attached Files Attached Files
    Last edited by jbposey86; 07-21-2020 at 09:23 PM.

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    17,888

    Re: Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

    Welcome to the Forum jbposey86!

    First, we discourage merged cells. No wait--merged cells often cause problems. No wait--merged cells are terrible.

    Instead of using two merged cells and using some contrived formula to show two dates, just put one date per cell. Then the formulas are trivial, and you can actually do calculations on the dates if you need to. I cannot see any reason that you need merged cells here, but please provide more information if you do.

    If you are using the DATE function with hard-coded numbers DATE(2021,1,1) you might as well just type in the actual date.

    I would recommend putting Start dates on row 1 and end dates on row 2, but you can also do side-by-side. See attachment for both ways.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,901

    Re: Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

    I totally agree with 6's comments regarding merged cells - avoid at all costs!!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-21-2020
    Location
    Brandon, MS
    MS-Off Ver
    MS 2013
    Posts
    6

    Re: Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

    Thank you for the help. That worked.

  5. #5
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    17,888

    Re: Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. Formula for Wednesdays & Sundays in 2021
    By Stev3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2020, 09:12 AM
  2. Formulating a sentence? I think
    By zoegalbraith in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 04-03-2020, 02:47 AM
  3. Formulating AM to PM automatically
    By SonjaRoark in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-29-2019, 10:33 PM
  4. Formulating a new date
    By hroddy in forum Excel General
    Replies: 1
    Last Post: 02-03-2018, 02:44 AM
  5. Need help in re-formulating the codes
    By wedzmer in forum Excel General
    Replies: 3
    Last Post: 10-13-2017, 07:29 PM
  6. Formulating Textboxes
    By seatownz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2012, 08:00 PM
  7. need help formulating
    By duhbiyung in forum Excel General
    Replies: 1
    Last Post: 04-13-2011, 09:48 PM

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