Need an Array f(x) I think

Ody

Board Regular
Joined
Oct 14, 2010
Messages
215
Hello all,

I've been stuck the last few days on how to accomplish something. I know it's possible, I'm just not seeing it.

I have 3 columns with data:

Column A has a serial number
Column B has type of account
Column C has a time stamp.

The serial number is assigned to an account when the account is opened and then it gets a time stamp. There can also be more than one type of account opened per session resulting in a serial number having 2 or 3 different types of accounts associated with it; each account gets the same time stamp for the session.

I can get an average time for a single type of account but I don't think its accurate because it potentially factors in other accounts opened in the same session. How do I pull the data apart so that I can look at average times per account with and with out other accounts opened in the same session? Hope this makes sense... any thoughts?

Thanks!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I have no idea what you are trying to accomplish but it sounds like you need to 'time' users for each account in sessions.

Maybe something like an array like your title suggests is needed.
Everytime a user opens an account, you can set an array with a start time by using Timer function.
Code:
'Public variable
Dim Start(1 To 1) As Double, count As Long
'count starts from 1
Sub EveryTimeUserLogsOn()
Dim ub As Long
'Everytime user logs on.
ub = UBound(Start) + 1
ReDim Preserve Start(1 To ub)
Start(count) = Timer
 
End Sub

adn then end the timer in a similar manner and get the difference.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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