+ Reply to Thread
Results 1 to 7 of 7

Inserting Yesturday's date before Numric data

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Inserting Yesturday's date before Numric data

    I have column which contain hours date (like 12:45), I want to put yesterday's date before that hour.
    my col looks like this
    12:45
    13:40
    14:55
    17:40

    it should be like this, considering today's date is 11/20/2013
    11/19/2013 12:45
    11/19/2013 13:40
    11/19/2013 14:55
    11/19/2013 17:40

    I tried with concatenate with today()-1 but its not working. I want a formula which I can use for whole col as there is more than 5000 row in it.

    Thanx in advance...

  2. #2
    Registered User
    Join Date
    07-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Inserting Yesturday's date before Numric data

    Try this:

    =TEXT(TODAY()-1,"mm/dd/yy")&" "&TEXT(A1,"hh:mm")

    If your time is in A1, it should pull it out as you wanted.

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Inserting Yesturday's date before Numric data

    I think today()-1 will give you a number, maybe try:
    =concatenate(A1,text(today()-1,"DD/MM/YYYY"))
    or
    =A1 & TEXT(TODAY()-1,"DD/MM/YYYY")

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Inserting Yesturday's date before Numric data

    =TEXT(TODAY()-1+A1,"mm/dd/yyy hh:mm")

  5. #5
    Registered User
    Join Date
    11-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting Yesturday's date before Numric data

    Awesome !!!!
    Thanx M1234, It worked.

  6. #6
    Registered User
    Join Date
    11-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting Yesturday's date before Numric data

    Hello Ghozi,

    Its returning numeric value, neways thanx lot for your time on my prob :-)

  7. #7
    Registered User
    Join Date
    11-20-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Inserting Yesturday's date before Numric data

    Yudlugar,

    ys its returning numeric, thanx for ur effort n time. M1234 suggestion workd for me.

+ 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. Inserting blank rows to seperate data by Date
    By Bytor47 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 02:11 PM
  2. Replies: 6
    Last Post: 08-29-2010, 08:15 AM
  3. Replies: 1
    Last Post: 08-19-2009, 05:22 AM
  4. Inserting data after a date has passed
    By THTABE in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-16-2007, 06:14 PM
  5. Match two row numric
    By Tufail in forum Excel General
    Replies: 4
    Last Post: 07-15-2006, 02:25 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