ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   seperating dates & values (https://www.excelbanter.com/excel-discussion-misc-queries/39210-seperating-dates-values.html)

rocket0612

seperating dates & values
 

2 questions,

If in Cell A1 I have a date in the formay DD/MM/YY, how do I seperate
this so in B1 it shows DD, C1 shows MM & D1 shows YY.

additioanly, I have a value £1234.56 in cell A1, how to I get the
pounds to show in B1 & the pence in C1?

many thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=393789


Max

"rocket0612" wrote:

If in Cell A1 I have a date in the formay DD/MM/YY, how do I seperate
this so in B1 it shows DD, C1 shows MM & D1 shows YY.


Put in:

B1: =TEXT(A1,"dd")
C1: =TEXT(A1,"mm")
D1: =TEXT(A1,"yy")

additionally, I have a value £1234.56 in cell A1, how to I get the
pounds to show in B1 & the pence in C1?


Assuming the " £1234.56 " in A1 is actually a number: 1234.56
with A1 formatted to display in currency

Put in B1: =TRUNC(A1)
Format B1 as number to zero dp

Put in C1: =A1-B1
Format C1 as number to 2 dp

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--



rocket0612


many, many thanks :)


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=393789


Max

You're welcome !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--




All times are GMT +1. The time now is 11:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com