Time stamp using with "if,countif" function...

madhanji

Board Regular
Joined
Jan 6, 2021
Messages
72
Office Version
  1. 2010
Platform
  1. Windows
Dear Seniors.Excel Masters
i have attach the image for your reference,
A column should be "today date stamp" when column B has "NRML" string,
so i used IF condition
IF(B20="","",IF(B20="NRML",now(),"HI"))
it's working fine..
but while drag-down the formula time stamps shows A column but i dont need it..
first date is only ok for entire day...

means as per attached picture
so i tried countif function but not succeed as per my knowledge..
please help...

Thanks in advance..
 

Attachments

  • date test.jpg
    date test.jpg
    43.9 KB · Views: 27
ok sir, i will check tomorrow and revert you sir..

Thanks IN ADVANCE.
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Change the formula to
Excel Formula:
=IF(B2="NRML",IF(A2<>"",A2,TODAY()),"")
Then use conditional formatting to change the font colour to white in the rows where the date is not needed.

Select A2:A100, then go to conditional formatting.
Create a new rule, using a formula. The formula to use will be
Excel Formula:
=A2=A1
Set the font colour and click OK / Apply as applicable to finish setting the rule.
Dear Jason sir, the above code is working as you described with conditional formatting but in this formula Today function shows today date ,means of previous date data also change to today date..
so that A Column fully shows today date ...but my requirement is which day i enter NRML in column B then corresponding column A should be same day date..


Hope you will catch my point sir..
expect solution ...
 
Upvote 0
If you have done it exactly as instructed then the previous dates will not change.
 
Upvote 0
Dear Jason sir, i am not able to succeed , i believe somewhere missing in my side..

anyway Thanks for your CONTINUES support..
if you find any other method to solve this issue please let me know..

Thanks and Happy life...:)
 
Upvote 0
Have you changed the formula? If yes, what have you changed it to?

Is the first formula in A2? If not, where is it? Did you edit the formula to reflect this?

Have you deleted the "NRML" entries from the rows where the date is changing? Re-entering the text will cause the date to change.
 
Upvote 0
Dear Jason, again 2 days fully i tested/checked but not succeed,,issue is TODAY function works today date means yesterday date also changed today date..so A1 column fuly shows TODAY date due to formula contain TODAY..(i guess maybe this make issue)

Thanks dear...
 
Upvote 0
i guess maybe this make issue
No, this is not the issue. It works perfectly for me. Unless you (accurately) answer the questions that I asked, I will be unable to assist further. There is something that you have done incorrectly but you have not provided the information that I asked for in order to try and find the problem. I can not see your screen or read your mind.
 
Upvote 0
Dear Jason sir, i attached a 9mb video file for your reference,of "what i do"for today 19.02.2021

click me

tomorrow i will update another video for next day date ..

Happylife.
 
Upvote 0
The only thing I can see that you have done differently is to start the conditional formatting range at A1 instead of A2, but that doesn't appear to make any difference. Even if it did, it would not change the previous dates, only hide the wrong one behind the white font.

For testing, use this formula in the worksheet and format the cells as hh:mm:ss
Excel Formula:
=IF(B2="NRML",IF(A2<>"",A2,FLOOR(NOW(),TIME(0,0,10))),"")
and change the conditional format font to red instead of white.

The formula works on 10 second intervals, allowing you to do a week of testing in just over a minute. The principle of both methods is the same, so what works or doesn't work will be identifiable from it.
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

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