Quick & simple help needed --> Text manipulation

snejsnej

New Member
Joined
May 3, 2010
Messages
45
Hello,

I have a long series of values consisting of 3 concatenated values separated by a "|". Eg:

-215.28|6202721174567002|08/06/2013 11:31

<tbody>
</tbody>

The last value is a datetime in the format "mm/dd/yyyy hh:mm".

After the first concatenation operation, I have a couple of in-between steps after which I perform another concatenation:

"-215.28|6202721174567002|08/06/2013 11:" & "32"

...to produce "-215.28|6202721174567002|08/06/2013 11:32"

I am also performing a simple subtraction in the same operation to reduce the minutes by 1, so the above becomes:

"-215.28|6202721174567002|08/06/2013 11:31"

The problem arises when I try to concatenate minute values less than 10, i.e. 01, 02, 03, 04, etc. When I try to do this, I end up with this:

"-15.96|6202721756259002|08/06/2013 11:4"

...instead of this:

"-15.96|6202721756259002|08/06/2013 11:04"

This is the formula I'm using:

Code:
=IF(L37="N/A","N/A",CONCATENATE(M37,(L37-1)))

I tried this operation with L37 formatted as TEXT with no luck.

Appreciate any help,
Jens
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top