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

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Best guess based on the information provided, I've assumed that the first Date stamp (a Time stamp has time as well as date) will be in A2 and the first "NRML" in B2.

This is only possible with circular references, so it needs to be set up properly or it will not work.

Note that you need to go to Formulas tab of your Excel options and check the box to 'Enable iterative calculations' before entering the formulas.
Also, you must clear any existing "NRML" entries from column B before entering the formulas.

If you do not follow the steps above then this will not work.

Formula to enter into A2 and fill down,
Excel Formula:
=IF(B2="NRML",IF(A2<>"",A2,IF(COUNTIF(A$1:A1,TODAY()),"",TODAY())),"")
 
Upvote 0
Dear Jasonb75,Thanks for prompt reply and solution,
S,it.'s working well ...even will check tomorrow and revert you sir..

Happy life. :)
 
Upvote 0
HII DEAR JASONB75,
=IF(B2="NRML",IF(A2<>"",A2,IF(COUNTIF(A$1:A1,TODAY()),"",TODAY())),"")
above your formula works yesterday nly, today it shows wrong means exact/required output not get...please see attached picture for your reference ..

Please help to resolve it sir..

Happy life.
 

Attachments

  • date.jpg
    date.jpg
    32.9 KB · Views: 8
Upvote 0
Dear seniors /Excel Masters..
please look into my request of post no1 ,jasonb75 provided half solution in post no2, but not succeeded .please..

Happy Life
 
Upvote 0
As far as I can see, the solution that I provided is correct for what you have asked for.

I can not understand what you are trying to say is wrong with it.
 
Upvote 0
Dear Jasonb75 sir,please look into post no:4/attached picture here sir,i indicate the error in attached picture..
even please see in my post no 1 attached picture , i noticed extra date in same day should be trim sir..
but your formula gives extra date in same day removed ,its well, next day in B COLUMN "NRML" entered A COLUMN date appear below the yesterday date instead of today NRML corresponding A column
i noticed error in attached picture here.

hope maybe i explain correctly...

Happy life







;
 

Attachments

  • date.jpg
    date.jpg
    33.6 KB · Views: 4
Upvote 0
The image in post 1 shows the last 2 dates for 11/02/2021 crossed out with a red line which indicates that the date should be next to the first "NRML" entered on that date.

In your latest image it appears that you want the date to be next to the last "NRML" for the day instead of the first. Is this correct?
 
Upvote 0
The image in post 1 shows the last 2 dates for 11/02/2021 crossed out with a red line which indicates that the date should be next to the first "NRML" entered on that date.
the crossed red line of extra date on same day no need, so should be trim.
In your latest image it appears that you want the date to be next to the last "NRML" for the day instead of the first. Is this correct?
s sir. now you catch up my point..
please give me a solution...
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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