Return value for 1st, 2nd, 3rd, 4th occurance

Bany26

New Member
Joined
Apr 10, 2018
Messages
4
Dear all,

could you please help me return different notes for old and new entries considering the date (column A)? I would need for newest row insert note ''valid'' in column C. And for rest - older rows, I would need note ''old'' in column C.



[TABLE="width: 245"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Name[/TD]
[TD]result[/TD]
[/TR]
[TR]
[TD]20.9.2016[/TD]
[TD]Kevin[/TD]
[TD]old[/TD]
[/TR]
[TR]
[TD]7.2.2017[/TD]
[TD]Kevin[/TD]
[TD]old[/TD]
[/TR]
[TR]
[TD]8.5.2017[/TD]
[TD]Kevin[/TD]
[TD]old[/TD]
[/TR]
[TR]
[TD]10.4.2018[/TD]
[TD]Kevin[/TD]
[TD]valid[/TD]
[/TR]
[TR]
[TD]22.3.2018[/TD]
[TD]Alexander[/TD]
[TD]old[/TD]
[/TR]
[TR]
[TD]10.4.2018[/TD]
[TD]Alexander[/TD]
[TD]valid[/TD]
[/TR]
[TR]
[TD]10.4.2018[/TD]
[TD]Mike[/TD]
[TD]valid
[/TD]
[/TR]
</tbody>[/TABLE]


thank you in advance
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
this works if column A is true dates, (e.g. replace the . with - or /);


Excel 2013/2016
ABC
1DateNameresult
220/09/2016Kevinold
307/02/2017Kevinold
408/05/2017Kevinold
510/04/2018Kevinvalid
622/03/2018Alexanderold
710/04/2018Alexandervalid
810/04/2018Mikevalid
Sheet2
Cell Formulas
RangeFormula
C2{=IF(MAX(IF($B$2:$B$8=B2,$A$2:$A$8))=A2,"valid","old")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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