New User - Unique flag

dcheney

New Member
Joined
Oct 21, 2014
Messages
1
Hi,

I'm trying to figure out how to have a calculated column flag just the first time (by date) and last time a user logs in. The problem I'm running into is that a user can log in 2 or more times on that first day they log in. I don't really care which of those lines gets flagged with a "1" but I need just one.
Same thing for the last day they have logged in. I then use these flags (with another calculated column) to determine the time between their last login and second to last login, and so on.

This is what I have so far (but if flags ALL login rows on that first day)
=IF(calculate(min(Table1[Date]),All(Table1),Table1[Name]=EARLIER(Table1[Name]))=[date],1,0)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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