Forum Discussion

akram1400's avatar
akram1400
Copper Contributor
Nov 27, 2022

The problem data to a Word file

I have an Excel file that contains the Gregorian date  I did the following  The date was converted to Hijri   the difference between the two dates was calculated (calculating the age)  My question is the following  When transferring data to Word through correspondence, only the Gregorian date appears for me  as well as the difference between the two dates with commas  and it is not like the existing one In Excel 

there are pictures of the problem

 

3 Replies

  • SnowMan55's avatar
    SnowMan55
    Bronze Contributor

    akram1400 We don't know what software and processing is involved in "transferring data to Word through correspondence".  Perhaps you could describe those.

     

    Alternatively, perhaps you could fix the problem by changing the Excel worksheet, in one of two ways.  But let me mention that:

    • You did not identify which columns those sample data are in.  My example will use column F for DATE H and column G for DATE M.
    • You did not identify the "Locale (location)" for what I presume is your Hijri date formatting.  My example will use "Arabic (Saudi Arabia)".
    • You did not identify how the DATE H column obtains its value.  Is it direct data entry (i.e., typing, or copying and pasting)?  Is it a formula that copies the DATE M cell for that row, but the cell formats it as a Hijri date?  Or is it loaded via some other technique?

    So two possible solutions are to:

    • add a column that stores a copy of DATE H as text, rather than as a date.  That formula -- for row 25, for example -- would be simply:

     

    =TEXT(F25, "[$-,106]B2d/mm/yyyy;@")​

     

    The concern with this technique is whether your existing software and processing could readily be changed to use the new column.

     

    • store the DATE H column value itself as text rather than a date.  This could work, e.g., if the DATE H column contains a formula referring to the DATE M value.  In this case, the formula -- for row 25, again -- might be almost identical to the one shown above: 

     

    =TEXT(G25, "[$-,106]B2d/mm/yyyy;@")

    But other parts of your worksheet might rely on DATE H being a date value.

     

     

    • akram1400's avatar
      akram1400
      Copper Contributor

      SnowMan55 Thank you very much for the answer
      First, the language of the site and the program is in Arabic and the state of Kuwait
      Secondly, the data is filled in or withdrawn from the Form program from the Office group
      Thirdly, the column format has been changed to text, number, or general, and the same problem appears in the Word program
      Data is dragged or taken from Excel to Word through the mailing list command, then using a list I have
      I will try your explanation method and reply to you whether it was solved or not

Resources