How to Use this format in my formula. dd/mm/yyyy hh:mm

Pooja Patel

New Member
Joined
Jan 17, 2018
Messages
7
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name - Column A[/TD]
[TD]Date - Column B[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:09:00 AM[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:08:00 AM[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:07:00 AM[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:06:00 AM[/TD]
[/TR]
[TR]
[TD]Xyz[/TD]
[TD]01/17/2018 12:09:00 AM[/TD]
[/TR]
[TR]
[TD]Xyz[/TD]
[TD]01/17/2018 12:08:00 AM[/TD]
[/TR]
[TR]
[TD]Xyz[/TD]
[TD]01/17/2018 12:07:00 AM[/TD]
[/TR]
[TR]
[TD]Xyz[/TD]
[TD]01/17/2018 12:06:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:09:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:08:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:07:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:06:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:05:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:04:00 AM[/TD]
[/TR]
[TR]
[TD]ASAF[/TD]
[TD]01/17/2018 12:03:00 AM[/TD]
[/TR]
</tbody>[/TABLE]


Dear Friends,

Need Urgent Help. I need help for create automatic formula for "DATE" in column B.

In Column A, There are equal type of name coming.

is there any method or formula for automatic date change when name change in Column A.

Thanks In Advance.

Regards,
Excel Beginner User
 
Dear jtakw,

Thanks for your kind help.

I have checked the cell format. It is show like that
mm/dd/yyyy hh:mm:ss AM/PM

Your formula work when name changed different in Column A, When Name coming same text then its not subtract from Column B.


[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]Name - Column A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="width: 256"]Date - Column B[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]abc[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]Xyz[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]abc[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]abc[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256, align: center"]#VALUE![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]abc[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256, align: center"]#VALUE![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]abc[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256, align: center"]#VALUE![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]Xyz[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]ASAF[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 116"]
<tbody>[TR]
[TD="width: 116"]Xyz[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl65, width: 256"]01/17/2018 12:09:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Works for me:


Excel 2010
ABCD
1Name - Column ADate - Column B
2abc01/17/2018 12:09:00 AMTRUE
3Xyz01/17/2018 12:09:00 AM
4abc01/17/2018 12:09:00 AM
5abc01/17/2018 12:08:00 AM
6abc01/17/2018 12:07:00 AM
7abc01/17/2018 12:06:00 AM
8Xyz01/17/2018 12:09:00 AM
9ASAF01/17/2018 12:09:00 AM
10Xyz01/17/2018 12:09:00 AM
Sheet8
Cell Formulas
RangeFormula
D2=ISNUMBER(B2)
B3=IF(A3=A2,B2-"0:01",B$2)


Besides checking that Column B formatting is mm/dd/yyyy hh:mm:ss AM/PM, you need to input your date/time correctly, in an unused cell (in my sample D2) put =ISNUMBER(B2), if it doesn't return TRUE, you have entered B2 as TEXT, and the formula will NOT calculate.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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