+ Reply to Thread
Results 1 to 4 of 4

Creating a formula to display text header

Hybrid View

  1. #1
    Registered User
    Join Date
    01-15-2010
    Location
    Scottsdale
    MS-Off Ver
    Excel 2010
    Posts
    72

    Creating a formula to display text header

    I am trying to create a formula that will display an information sentence.

    Currently my formula is as follows:
    ="as of Wk "&OFFSET(Lookup!$E$4,Lookup!$A$10,)&", ending "&DATE(YEAR(TODAY()-1),MONTH(TODAY()-1),DAY(TODAY()-1))

    Essentially I want it to say : "as of Wk (insert week num), ending (date)"
    For monday of this week it would have said :
    "As of Wk 4, ending 1/26/2014"
    (notice date is actualy one day behind current date assuming this was Monday)

    The offest in the formula is correctly picking up the week. However, the Date part of the formula is formatting as serial number and not date. Suggestions?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Creating a formula to display text header

    I think there are easier ways to get what you want...but, working with your current structure...
    Try this:
    Formula: copy to clipboard
    ="as of Wk "&OFFSET(Lookup!$E$4,Lookup!$A$10,)&", ending "&TEXT(TODAY()-1,"MM/DD/YYYY")

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-15-2010
    Location
    Scottsdale
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Creating a formula to display text header

    Thank you Ron. That will work! I played with the text() but obviously incorrectly. I am always open to hear new and especially easier ways to do the same thing that how I learn. What would you suggest? Thanks again.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Creating a formula to display text header

    I'm thinking that maybe this section (which uses the volatile OFFSET function):
    OFFSET(Lookup!$E$4,Lookup!$A$10

    could be replaced with the non-volatile:
    INDEX(Lookup!$E:$E,Lookup!$A$10+(some numeric value to make the formula get the correct value))

+ 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: 2
    Last Post: 10-13-2012, 03:30 AM
  2. Replies: 4
    Last Post: 02-01-2012, 10:43 AM
  3. (TABLE) Help writing formula to display column header of a result
    By scarch05 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-15-2011, 04:40 AM
  4. Excel 2007 : Creating a formula with display limits
    By grghhn in forum Excel General
    Replies: 4
    Last Post: 10-20-2009, 11:14 PM
  5. [SOLVED] Display result of formula in header?
    By Hubitron2000 in forum Excel General
    Replies: 2
    Last Post: 03-24-2006, 03:30 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