# Time value to contain Months/Date/Year Hour:Minutes:Seconds AM/PM

#### hsandeep

##### Well-known Member
I need time containing Months/Date/Year Hour:Minutes:Seconds AM/PM as shown in I2 with input cells being B2:G2
How to accomplish?
I am using Excel 2007
Sheet1

 B C D E F G H I 1 mm dd yyyy hh mm ss 2 10 16 2019 9 30 0 10/16/2019 9:30:00 AM

<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 40px"><col style="WIDTH: 40px"><col style="WIDTH: 40px"><col style="WIDTH: 40px"><col style="WIDTH: 40px"><col style="WIDTH: 40px"><col style="WIDTH: 12px"><col style="WIDTH: 148px"></colgroup><tbody>
</tbody>

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying

#### Scott R

##### Active Member
=date(c2, a2, b2) + time(d2, e2, f2)

#### hsandeep

##### Well-known Member
=date(c2, a2, b2) + time(d2, e2, f2)

Not getting..may be because of a2!!

#### Scott R

##### Active Member
Oops. Yeah, slide everything one cell to the right. DATE(D2,B2,C2) + TIME(E2,F2,G2)

#### hsandeep

##### Well-known Member
Oops. Yeah, slide everything one cell to the right. DATE(D2,B2,C2) + TIME(E2,F2,G2)
Thats it..IT WORKS. Thanks Scott R

Replies
15
Views
233
Replies
6
Views
386
Replies
5
Views
536
Replies
11
Views
757
Replies
9
Views
124

1,141,865
Messages
5,709,076
Members
421,613
Latest member
wyzco

### 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.

### Which adblocker are you using?

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

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