+ Reply to Thread
Results 1 to 15 of 15

Custom data formatting

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Custom data formatting

    Hi everyone, i need help with my spreadsheet.

    In Column J2 I need to have the same date format as column I2 but for some reason id does not work.

    If i right click on J2 go to "format cell" -"Custom" and select "yyymmdd" the date format showed in the "Sample" field do not change. I tried with everysingle custom type and do not change.

    If I do the same process with column I2 i get the result of what i want.

    could you please anyone advise what i am missing? test_W.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Custom data formatting

    Hi

    Use TEXT to Columns in column H ,of BNP sheet to convert the dates there to the format that you like and then J2 will works fine.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Custom data formatting

    Hi,

    Check the formula in cell I2 : =IF(OR(B2="RVP",B2="DVP"),BNP!G2,"ERROR")

    and in J2 : =IF(OR(B2="RVP",B2="DVP"),BNP!H2,"ERROR")

    If you change, formula in J2 to BNP!G2 instead of BNP!H2
    You will get the result as desired.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Hi Fotis, could you please be more specifc? there are different options when i select Text to column - delimited

    thx

  5. #5
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Paresh, thank you but I want to read BNP!H2 as the value is different.

    the formula is correct (Reads the correct value) but for some reason the formatting is not.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Custom data formatting

    jUST FOLLOW THE LINK THAT I PROVIDED IN MY PREVIOUS POST

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Yes sorry, I didnt see that.

    thx

  8. #8
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Custom data formatting

    Hi albertoro,

    Please check the date format in send Sheet for I column its yyyymmdd, so according to which your yr = 2014, mm = 12, dd = 06

    If you check date format in BNP sheet for G column its dd-mm-yyyy, so according to that your dd = 06, mm = 12, yyyy = 2014.

    But you have same format for H column in BNP sheet, so your dd = 06, mm = 17 and yyyy = 2014 and hence you dont get what you desired in send sheet since your date is wrong in H column of BNP sheet, Try entering 17-06-2014 in H column and check. Hope this will resolve your problem.


    Regards,
    Paresh J

  9. #9
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Fotis, followed the procedure in the link but nothing happen.

  10. #10
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Custom data formatting

    Hi,

    Check with my above solution in post #8. Hope it will help.

  11. #11
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Pareshj, have you tried to select BNP H2 right click on it and Format cell. go to custom. if you select any custom setting do you see the Sample changing? I dont, it always stay the original.

  12. #12
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Custom data formatting

    Hi,

    The reason H2 date format is not changing since you have wrongly entered the date, according to format in G2 06 is dd and 12 is mm but in H2, 06 is dd and 17 is mm and hence date format is not getting applied on that cell.

    Checked the attached wrkbook :

    test_W.xlsx
    Last edited by pareshj; 06-13-2014 at 11:45 AM.

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Custom data formatting

    This is what i have.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Custom data formatting

    Quote Originally Posted by pareshj View Post
    Hi,

    The reason H2 date format is not changing since you have wrongly entered the date, according to format in G2 06 is dd and 12 is mm but in H2, 06 is dd and 17 is mm and hence date format is not getting applied on that cell.

    Checked the attached wrkbook :

    Attachment 325219
    Pareshj thank you for the time. i will review as soon as i can. not home now.

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Custom data formatting

    The formula in send!J2 is referring to BNP!H2. This value is TEXT. Click on BNPW!H2, then click on the Data tab, Text to columns, Next, Next, Date MDY, Finish. The date will be changed to a real date. Now, the date in send!J2 will format as yyymmdd as you want.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Trying to make a custom conversion program/forumla between custom data.
    By smurphy619 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-23-2014, 08:06 PM
  2. Custom Data Label and Formatting in Chart
    By aderougemont in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-24-2008, 05:08 AM
  3. Custom Data Label and Formatting in Chart
    By aderougemont in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2008, 10:56 AM
  4. Data validation with custom number formatting
    By rbekka in forum Excel General
    Replies: 1
    Last Post: 06-19-2006, 03:35 AM
  5. Replies: 1
    Last Post: 03-10-2006, 11:30 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