+ Reply to Thread
Results 1 to 5 of 5

Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

    1. I have a date in cell A40 (7/21/2013).
    2. On cell D2 I have the formula =TEXT($A$40,"m/d")&"-"&TEXT($A$40+6,"m/d") to display 7/21-7/27.
    3. My dillema is how to increase the date range (7/21-7/27) by 7 days in the subsequent columns (E2 to Z2) i.e. E2(7/28-8/3)| F2(8/4-8/10)| G2(8/11-8/7).....Z2.

    I have tried putting =((A40)&"-"&(A40+6))+1 in E2, but it gives me #VALUE! When I put =(A40)&"-"&(A40+6) in cell D2 it displays 41476-41482, which is the date value.

    This is my first post, and I am thanking anyone in advance. I am using this format for my Production and Sales forecast.
    Last edited by clroxas; 08-12-2013 at 07:03 PM. Reason: Problem Solved

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

    Try this in D2 and filled right

    =TEXT($A$40+((COLUMNS($A:A)-1)*7),"m/d")&"-"&TEXT(($A$40+6)+((COLUMNS($A:A)-1)*7),"m/d")

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

    Try this formula in D2 copied across

    =TEXT($A$40+COLUMNS($D2:D2)*7-7,"m/d")&"-"&TEXT($A$40+COLUMNS($D2:D2)*7-1,"m/d")
    Audere est facere

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

    Thank you both Jonmo1 and daddylonglegs. Both solutions worked perfectly. These solutions inspired me to have a more elegant solution to my Forecasts (see below).
    =TEXT(WEEKNUM($A$28+(COLUMNS($D1:D1)*7-7),1),"W###")&"("&TEXT(1+(COLUMNS($D1:D1)-1),"###)")
    =IF(D14>0,($A$28+(COLUMNS($D$15:D$15)*7-1)),"")
    Untitled-1.jpg

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with =TEXT(A40,"m/d")&"-"&TEXT(A40+6,"m/d")

    Glad to help, thanks for the feedback.

+ 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. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  2. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  3. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  4. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  5. Replies: 3
    Last Post: 10-25-2005, 07:05 PM

Tags for this Thread

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