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
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
@ Pooja.

Pls clear out your message inbox.
I cannot reply to your PM due to this.


Pooja Patel has exceeded their stored private messages quota and cannot accept further messages until they clear some space.


However my reply was:

Gerald Higgins replied asking for your expected output.
This looks like you want to know when data is changed. This would require a VBA solution but that's not my area of expertise.
 
Upvote 0
Create a formula on below boxes.

[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 - Write this date manual. It Called Name - B2[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:08:00 AM - this will come automatic according to above date.[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]01/17/2018 12:07:00 AM - this will come automatic according to above date.[/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 - if Column A "XYZ" name change from "ABC" then Again write Same Date from B2[/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 - if Column A "ASAF" name change from "XYZ" then Again write Same Date from B2[/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]
 
Upvote 0
OK, so it LOOKS LIKE the requirement is as follows -

For each change in name in column A, make the date and time be the same as the first entry in the list.
For each entry in column A which is the same as the preceding entry, make the time be 1 minute earlier than the previous entry.

Is that correct ?

If yes, this should be fairly simple.
 
Upvote 0
Hi,

Is this what you need?


Book1
AB
1Name - Column ADate - Column B
2abc01/17/2018 12:09:00 AM
3abc01/17/2018 12:08:00 AM
4abc01/17/2018 12:07:00 AM
5abc01/17/2018 12:06:00 AM
6Xyz01/17/2018 12:09:00 AM
7Xyz01/17/2018 12:08:00 AM
8Xyz01/17/2018 12:07:00 AM
9Xyz01/17/2018 12:06:00 AM
10ASAF01/17/2018 12:09:00 AM
11ASAF01/17/2018 12:08:00 AM
12ASAF01/17/2018 12:07:00 AM
13ASAF01/17/2018 12:06:00 AM
14ASAF01/17/2018 12:05:00 AM
15ASAF01/17/2018 12:04:00 AM
16ASAF01/17/2018 12:03:00 AM
Sheet15
Cell Formulas
RangeFormula
B3=IF(A3=A2,B2-"0:01",B$2)


B2 manually entered, B3 formula copied down.
 
Upvote 0
Thanks for the reply.

I try above formula but show me error like #VALUE ! in B3 cell.


I use time formula as below but its only work with time mention. When I apply with date then its not work.

=IF(A3=A2,B2-TIME(0,1,0),B$2)


Can you suggest some other formula?
 
Upvote 0
Thanks for the reply.

I try above formula but show me error like #VALUE ! in B3 cell.


I use time formula as below but its only work with time mention. When I apply with date then its not work.

=IF(A3=A2,B2-TIME(0,1,0),B$2)


Can you suggest some other formula?

As you can see, my formula works in my sample, you should check your cell formatting for Column B, it should be custom formatted:

mm/dd/yyyy hh:mm:ss AM/PM
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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