Kevin_Nugent
New Member
- Joined
- Jan 18, 2015
- Messages
- 5
Dear Forum:
Windows 7 64-bit
Excel 2000
Mine is not a problem but a request for an explanation of a working formula.
Background...
I'm using Excel to track my monthly EZ-Pass transactions. I Copy them from the EZ-Pass website and Paste them into Excel.
I created a workbook with a main page displaying a table of charges, fees, running bals, etc. along with a graph of the monthly charges.
I created separate monthly pages: Jan, Feb, Mar and so on thru to Dec so as to Copy & Paste the data from EZ-Pass.
I defined a Named Range "Txn_ALL" to =Jan:Dec!$C:$C.
Txn_ALL contains the cells that receive my account number 123456789 (not my real account number) from the Pasted EZ-Pass data.
My desire was that if my account number were to be Pasted into 'Txn_ALL' then the account number would be displayed in a cell on the main page, else 'No Txns' would be displayed.
This is the formula that I was provided with:
=IF(INDEX(FREQUENCY(Txn_ALL,123456789-{0.5;0}),2),123456789,"No Txns")
I have a fairly good understanding of the IF function.
I've been reading up on INDEX and FREQUENCY in Excel's help.
Two questions:
1. How does the equation 123456789-{0.5;0} restrict FREQUENCY to finding ONLY 123456789 from within Txn_ALL? The way I understand it, this equation represents the Bins_array but I'm having trouble understanding the relevance of the -{0.5;0} portion of it and it's influence on the outcome.
2. Why does INDEX need to use '2' as row_num and not '1' as row_num?
It has been a fun project building this spreadsheet. I just wish I understood a little better how this formula works.
Thank you in advance for any insights.
-Kevin N.
Windows 7 64-bit
Excel 2000
Mine is not a problem but a request for an explanation of a working formula.
Background...
I'm using Excel to track my monthly EZ-Pass transactions. I Copy them from the EZ-Pass website and Paste them into Excel.
I created a workbook with a main page displaying a table of charges, fees, running bals, etc. along with a graph of the monthly charges.
I created separate monthly pages: Jan, Feb, Mar and so on thru to Dec so as to Copy & Paste the data from EZ-Pass.
I defined a Named Range "Txn_ALL" to =Jan:Dec!$C:$C.
Txn_ALL contains the cells that receive my account number 123456789 (not my real account number) from the Pasted EZ-Pass data.
My desire was that if my account number were to be Pasted into 'Txn_ALL' then the account number would be displayed in a cell on the main page, else 'No Txns' would be displayed.
This is the formula that I was provided with:
=IF(INDEX(FREQUENCY(Txn_ALL,123456789-{0.5;0}),2),123456789,"No Txns")
I have a fairly good understanding of the IF function.
I've been reading up on INDEX and FREQUENCY in Excel's help.
Two questions:
1. How does the equation 123456789-{0.5;0} restrict FREQUENCY to finding ONLY 123456789 from within Txn_ALL? The way I understand it, this equation represents the Bins_array but I'm having trouble understanding the relevance of the -{0.5;0} portion of it and it's influence on the outcome.
2. Why does INDEX need to use '2' as row_num and not '1' as row_num?
It has been a fun project building this spreadsheet. I just wish I understood a little better how this formula works.
Thank you in advance for any insights.
-Kevin N.