Hello all and thanks in advance for the help.
Hopefully some of you more seasoned excel users can give some suggestions for this one:
[TABLE="width: 100"]
<tbody>[TR]
[TD]DATE
[/TD]
[TD]AMT
[/TD]
[/TR]
[TR]
[TD]2/25/16
[/TD]
[TD]$50
[/TD]
[/TR]
[TR]
[TD]3/4/16
[/TD]
[TD]$100
[/TD]
[/TR]
[TR]
[TD]3/7/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/16/16
[/TD]
[TD]$500
[/TD]
[/TR]
[TR]
[TD]3/21/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/21/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/23/16
[/TD]
[TD]$300
[/TD]
[/TR]
</tbody>[/TABLE]
I need to evaluate this data and return true if the following criteria is met:
If the transaction occurs on a single, consecutive or alternating business day = TRUE, then sum the totals of the transactions that meet the criteria. If the sum is => $500, then return TRUE. For example, the transactions that occur on 3/4 and 3/7 should return true for consecutive business days given that they are Friday-Monday transactions. Since this is TRUE, then I would like to determine if the sum of the combined transactions is => $500. The transaction on 2/25 should return FALSE as this transaction does not aggregate over $500 on single, consecutive, or alternating business days. Any suggestions with the use of VBA or a formula would be nice but the end result will be coded in VBA as a macro. However, I would like to avoid performing a big loop as the data that I am working from can easily consist of thousands of transactions.
Thanks again for all of the suggestions, and please let me know if you need any further detail.
JR
Hopefully some of you more seasoned excel users can give some suggestions for this one:
[TABLE="width: 100"]
<tbody>[TR]
[TD]DATE
[/TD]
[TD]AMT
[/TD]
[/TR]
[TR]
[TD]2/25/16
[/TD]
[TD]$50
[/TD]
[/TR]
[TR]
[TD]3/4/16
[/TD]
[TD]$100
[/TD]
[/TR]
[TR]
[TD]3/7/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/16/16
[/TD]
[TD]$500
[/TD]
[/TR]
[TR]
[TD]3/21/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/21/16
[/TD]
[TD]$300
[/TD]
[/TR]
[TR]
[TD]3/23/16
[/TD]
[TD]$300
[/TD]
[/TR]
</tbody>[/TABLE]
I need to evaluate this data and return true if the following criteria is met:
If the transaction occurs on a single, consecutive or alternating business day = TRUE, then sum the totals of the transactions that meet the criteria. If the sum is => $500, then return TRUE. For example, the transactions that occur on 3/4 and 3/7 should return true for consecutive business days given that they are Friday-Monday transactions. Since this is TRUE, then I would like to determine if the sum of the combined transactions is => $500. The transaction on 2/25 should return FALSE as this transaction does not aggregate over $500 on single, consecutive, or alternating business days. Any suggestions with the use of VBA or a formula would be nice but the end result will be coded in VBA as a macro. However, I would like to avoid performing a big loop as the data that I am working from can easily consist of thousands of transactions.
Thanks again for all of the suggestions, and please let me know if you need any further detail.
JR