+ Reply to Thread
Results 1 to 7 of 7

Generate Date in cell according to values from another sheet cell

  1. #1
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    20

    Generate Date in cell according to values from another sheet cell

    Sir,

    good morning

    In Sheet 1, Column contains date and i want to generate this date to sheet 2 .

    While I am trying to generate date value to sheet 2 from sheet1 using formula ( = value $A1). If there is no date value in sheet 1 but in the sheet2 date value shows 1/0/1900. how can I keep blanket in each cells of sheet2 if there is no date value in sheet 1.


    sample copy attached.
    Attached Files Attached Files

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Generate Date in cell according to values from another sheet cell

    Very simple. Use this formula:

    =IF(Sheet1!$A1="","",Sheet1!$A1)
    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
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    20

    Re: Generate Date in cell according to values from another sheet cell

    Thanks for your reply


    But i am looking to generate date value for whole column ( A) . so that when i am entering date values in sheet1, its will help me to generate date value from sheet 1 to sheet 2

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Generate Date in cell according to values from another sheet cell

    =IF(Sheet1!A1<>"",VALUE(Sheet1!$A1),"")
    Or use the formula given by Ali, =IF(Sheet1!$A1="","",Sheet1!$A1)- you just need to change it to date format.

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Generate Date in cell according to values from another sheet cell

    Quote Originally Posted by fmoiduf View Post
    Thanks for your reply


    But i am looking to generate date value for whole column ( A) . so that when i am entering date values in sheet1, its will help me to generate date value from sheet 1 to sheet 2

    Yes - what's the problem? Copy the formula into A1 of sheet 2 and drag copy it down as far as you need.

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Generate Date in cell according to values from another sheet cell

    you just need to change it to date format.
    Not so - it works fine as it is on the OP's sample sheet.

  7. #7
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    20

    Re: Generate Date in cell according to values from another sheet cell

    Thanks for your great support

+ 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: 1
    Last Post: 10-24-2013, 08:58 AM
  2. Replies: 2
    Last Post: 12-14-2012, 01:17 PM
  3. Generate a list from one cell(updated) from sheet A in sheet B
    By neoz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2011, 09:29 PM
  4. Macro to generate random cell values by pct
    By rbpd5015 in forum Excel General
    Replies: 4
    Last Post: 09-02-2010, 03:32 PM
  5. Generate Zero Based On Other Cell Values.
    By mikello in forum Excel General
    Replies: 3
    Last Post: 08-04-2009, 09:19 AM
  6. generate statement with cell values
    By kaffal in forum Excel General
    Replies: 0
    Last Post: 01-05-2009, 11:53 AM
  7. [SOLVED] Generate an Absolute Date in a Cell
    By nick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2005, 09:00 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