HR_Excel_User
New Member
- Joined
- Sep 17, 2019
- Messages
- 4
Hey everyone!
I used this formula to add spaces after my text as I am working on a file upload where each field must be a certain length (see formula below):
='Sheet2'!D5&REPT(" ",16-LEN('Sheet2'!D5))
I have the above formula pulling from a different sheet so I wondered if that was causing the error. No matter how I format the date on either spread sheet it pulls as follows (see below):
The date on sheet2 is: 19981008 (the file requires the date as YYYYMMDD), but the above formula pulls in the date as: 3607. I'm currently stuck. I need the field to remain 16 characters so I don't want to mess with the above formula too much. Unless there's something I can add to the formula to tell it to pull the data a certain way?
Any help would be GREATLY appreciated!
Thanks in advance,
HR
I used this formula to add spaces after my text as I am working on a file upload where each field must be a certain length (see formula below):
='Sheet2'!D5&REPT(" ",16-LEN('Sheet2'!D5))
I have the above formula pulling from a different sheet so I wondered if that was causing the error. No matter how I format the date on either spread sheet it pulls as follows (see below):
The date on sheet2 is: 19981008 (the file requires the date as YYYYMMDD), but the above formula pulls in the date as: 3607. I'm currently stuck. I need the field to remain 16 characters so I don't want to mess with the above formula too much. Unless there's something I can add to the formula to tell it to pull the data a certain way?
Any help would be GREATLY appreciated!
Thanks in advance,
HR